[03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:04]accept exits with 9 [03:16:04]New connection [03:16:04]New thread 3067256164 created [03:16:04]Thread 3067399524 joined [03:16:04]Waiting for new connection... [03:16:04] Sock 9.Parse request [03:16:04]Sock 9.Check first char [03:16:04]Sock 9.First char is OK [03:16:04]request: POST /json_proto HTTP/1.0 [03:16:04]Method: POST [03:16:04]URL: /json_proto [03:16:04]Method is POST - this is cgi request [03:16:04]url: /json_proto [03:16:04]query_string will be loaded in cgi processing [03:16:04]execute_cgi json_proto POST (null) [03:16:04]execute_cgi path=json_proto method=POST [03:16:04]POST find Content-Length [03:16:04]Host: 172.17.57.71:8080 [03:16:04]Content-Length: 1418 [03:16:04]Content-Type: application/json [03:16:04] [03:16:04]POST finish read [03:16:04]Found Content-Length = 1418 [03:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127135", "tax_sys" : 0, "items" : [ { "code": "4620021193565", "name": "\u041D\u0435\u0441\u0442\u043B\u0435\u0414\u0435\u043B\u044E\u043A\u0441\u041C\u0438\u043D\u0434\u0430\u043B\u044C 90\u0433", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077609077", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445 Multicake \u0441 \u043A\u0430\u043A\u0430\u043E 180 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 470.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:04]execute_script... [03:16: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 : (3)127135", "tax_sys" : 0, "items" : [ { "code": "4620021193565", "name": "\u041D\u0435\u0441\u0442\u043B\u0435\u0414\u0435\u043B\u044E\u043A\u0441\u041C\u0438\u043D\u0434\u0430\u043B\u044C 90\u0433", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077609077", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445 Multicake \u0441 \u043A\u0430\u043A\u0430\u043E 180 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 470.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:04]POST & json_proto [03:16:04]process_json_proto [03:16:04]json parsed OK: [03:16:04]protocol is kg_v1.0 [03:16:04]action value=close_receipt [03:16:04]process_action close_receipt [03:16:04]cmd_close_receipt [03:16:04]MH_GetDate [03:16:04]Write to MH i2c: F0 00 00 AB 57 F1 [03:16:04]Write i2c OK [03:16:04]MH_I2C_Read... [03:16:04]Read from MH i2c: F0 [03:16:04]MH_I2C_Read... [03:16:04]Read from MH i2c: F0 09 00 [03:16:04]MH_I2C_Read... [03:16:04]Read from MH i2c: F0 09 00 AB 57 00 7D AE E3 66 33 3A A4 66 E5 [03:16:04]GetLastDocTimeStamp 1726197029 [03:16:04]current date 1726197373 [03:16:04]FM_GetShiftState [03:16:04]SAM_PROTO_GetShiftState [03:16:04]wFMCommunicate request_size=4 [03:16:04]MH_SAM_APDU [03:16:04]CAPDU: 80 13 01 00 [03:16:04]Write to MH i2c: E2 08 00 AC 57 80 13 01 00 00 00 00 00 80 [03:16:04]Write i2c OK [03:16:04]MH_I2C_Read... [03:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:05]Read from MH i2c: E2 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 0E 00 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 0E 00 AC 57 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0C [03:16:05]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:16:05]wFMCommunicate OK [03:16:05]SAM_PROTO_GetShiftState done [03:16:05]FM_GetShiftState done [03:16:05]opened in 1726186930 [03:16:05]opened+sec_in_day 1726273330 [03:16:05]quantity*price = 14500 [03:16:05]sum+1 = 14501 [03:16:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4670003195728 Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л 1.000 * 225.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077609077 Печ.сах Multicake с какао 180 гр 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 470.00 НСП 1% : 4.15 НДС 12% : 49.91 Наличными: 0.00 Безнал.: 470.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 10 13.09.2024 03:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92202 ФПД: 107928793139724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T031614&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92202&fm=107928793139724&tin=02508201610067®Number=0000000000091423&sum=47000 0 [03:16:05]StoreToDocumentArchive [03:16:05]shift 505 fd 92202 [03:16:05]save to /storage/0505/doc_00092202 [03:16:05]save last doc name /storage/0505/doc_00092202 to /storage/kkm_last_doc_name [03:16:05]save OK [03:16:05]Clear old archive folders... [03:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=529 [03:16:05]tlvbuf is 01602C40 [03:16:05]SAM_PROTO_ClearQueue [03:16:05]wFMCommunicate request_size=4 [03:16:05]MH_SAM_APDU [03:16:05]CAPDU: 80 09 00 00 [03:16:05]Write to MH i2c: E2 08 00 B9 57 80 09 00 00 00 00 00 00 82 [03:16:05]Write i2c OK [03:16:05]MH_I2C_Read... [03:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:05]Read from MH i2c: E2 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 03 00 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 03 00 B9 57 00 90 00 84 [03:16:05]RAPDU: 90 00 [03:16:05]wFMCommunicate OK [03:16:05]SAM_PROTO_ClearQueue done [03:16:05]KKMCreateOFDPacket [03:16:05]OFDProtocolAddRootSTLVToBuf [03:16:05]FM_MakeSignedData [03:16:05]FM_MakeSignedData [03:16:05]SAM_PROTO_SignData [03:16:05]wFMCommunicate request_size=4 [03:16:05]MH_SAM_APDU [03:16:05]CAPDU: 80 0D 01 02 [03:16:05]Write to MH i2c: E2 08 00 BA 57 80 0D 01 02 00 00 00 00 8A [03:16:05]Write i2c OK [03:16:05]MH_I2C_Read... [03:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:05]Read from MH i2c: E2 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 03 00 [03:16:05]MH_I2C_Read... [03:16:05]Read from MH i2c: E2 03 00 BA 57 00 90 00 85 [03:16:05]RAPDU: 90 00 [03:16:05]wFMCommunicate OK [03:16:05]wFMCommunicate request_size=255 [03:16:05]MH_SAM_APDU [03:16:05]CAPDU: 80 0D 02 02 FA 03 00 11 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 35 36 35 06 04 2B 00 D0 9D D0 B5 D1 81 D1 82 D0 BB D0 B5 D0 94 D0 B5 D0 BB D1 8E D0 BA D1 81 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [03:16:06]Write to MH i2c: E2 02 01 BB 57 80 0D 02 02 FA 00 03 00 11 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 35 36 35 06 04 2B 00 D0 9D D0 B5 D1 81 D1 82 D0 BB D0 B5 D0 94 D0 B5 D0 BB D1 8E D0 BA D1 81 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 B2 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:06]Read from MH i2c: E2 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 BB 57 00 90 00 86 [03:16:06]RAPDU: 90 00 [03:16:06]wFMCommunicate OK [03:16:06]wFMCommunicate request_size=255 [03:16:06]MH_SAM_APDU [03:16:06]CAPDU: 80 0D 02 02 FA 23 04 72 00 8A 04 0D 00 34 38 32 33 30 37 37 36 30 39 30 37 37 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 31 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7E AE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 [03:16:06]Write to MH i2c: E2 02 01 BC 57 80 0D 02 02 FA 00 23 04 72 00 8A 04 0D 00 34 38 32 33 30 37 37 36 30 39 30 37 37 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 31 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7E AE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 00 00 92 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:06]Read from MH i2c: E2 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 BC 57 00 90 00 87 [03:16:06]RAPDU: 90 00 [03:16:06]wFMCommunicate OK [03:16:06]wFMCommunicate request_size=38 [03:16:06]MH_SAM_APDU [03:16:06]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 68 01 00 35 04 06 00 62 29 21 60 4A 0C [03:16:06]Write to MH i2c: E2 29 00 BD 57 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 68 01 00 35 04 06 00 62 29 21 60 4A 0C 00 00 10 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:06]Read from MH i2c: E2 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 03 00 BD 57 00 90 00 88 [03:16:06]RAPDU: 90 00 [03:16:06]wFMCommunicate OK [03:16:06]wFMCommunicate request_size=4 [03:16:06]MH_SAM_APDU [03:16:06]CAPDU: 80 0D 03 02 [03:16:06]Write to MH i2c: E2 08 00 BE 57 80 0D 03 02 00 00 00 00 90 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:06]Read from MH i2c: E2 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 0B 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 0B 00 BE 57 00 BD 15 76 4C 11 CA DC CE 90 00 AA [03:16:06]RAPDU: BD 15 76 4C 11 CA DC CE 90 00 [03:16:06]wFMCommunicate OK [03:16:06]SAM_PROTO_SignData done [03:16:06]FM_MakeSignedData done [03:16:06]CreateOFDProtocolMessage [03:16:06]wFMCommunicate request_size=4 [03:16:06]MH_SAM_APDU [03:16:06]CAPDU: 80 11 00 00 [03:16:06]Write to MH i2c: E2 08 00 BF 57 80 11 00 00 00 00 00 00 90 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:06]Read from MH i2c: E2 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 17 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: E2 17 00 BF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E7 [03:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:16:06]wFMCommunicate OK [03:16:06]CreateOFDProtocolMessage done [03:16:06]OFDSenderStorePacket 92202 [03:16:06]StoreOFDPacket docnum=92202 [03:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 02 00 00 12 D6 1D 02 37 08 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 35 36 35 06 04 2B 00 D0 9D D0 B5 D1 81 D1 82 D0 BB D0 B5 D0 94 D0 B5 D0 BB D1 8E D0 BA D1 81 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 32 33 30 37 37 36 30 39 30 37 37 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 31 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7E AE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 68 01 00 35 04 06 00 62 29 21 60 4A 0C BD 15 76 4C 11 CA DC CE [03:16:06]CheckFolder [03:16:06]dirname=/storage/ofd_packets [03:16:06]CheckFolder done [03:16:06]ProducePacketName [03:16:06]name=ofd_packets/00092202 [03:16:06]NVStorageSaveData ofd_packets/00092202 [03:16:06]File name is /storage/ofd_packets/00092202 [03:16:06]Write 579 bytes [03:16:06]NVStorageSaveData done [03:16:06]OFDSenderStorePacket done [03:16:06]KKMCreateOFDPacket done [03:16:06]NVStorageSaveData kkm_last_timestamp [03:16:06]File name is /storage/kkm_last_timestamp [03:16:06]Write 4 bytes [03:16:06]NVStorageSaveData done [03:16:06]ExternCall_PrintAddStr [03:16:06]wPrintStart [03:16:06]Write to MH i2c: 01 00 00 C0 57 17 [03:16:06]Write i2c OK [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: 01 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: 01 07 00 [03:16:06]MH_I2C_Read... [03:16:06]Read from MH i2c: 01 07 00 C0 57 00 00 00 00 00 FF 0F 2C [03:16:06]RasterBufferAndPrint [03:16:06]line Счет N : (3)127135 [03:16:06]line ИНН: 02508201610067 [03:16:06]line Контрольно-Кассовый Чек [03:16:06]line ПРОДАЖА [03:16:06]line Товар: 4620021193565 [03:16:06]line НестлеДелюксМиндаль 90г [03:16:06]line 1.000 * 145.00 [03:16:06]line = 145.00 [03:16:06]line НДС 12% НСП 1% [03:16:06]line > о реализуемом товаре [03:16:06]line Товар: 4670003195728 [03:16:06]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [03:16:06]line 1.000 * 225.00 [03:16:06]line = 225.00 [03:16:06]line НДС 12% НСП 1% [03:16:06]line > о реализуемом товаре [03:16:06]line Товар: 4823077609077 [03:16:06]line Печ.сах Multicake с какао 180 гр [03:16:06]line 1.000 * 100.00 [03:16:06]line = 100.00 [03:16:06]line НДС 12% НСП 1% [03:16:06]line > о реализуемом товаре [03:16:06]line ИТОГО: 470.00 [03:16:06]line НСП 1% : 4.15 [03:16:06]line НДС 12% : 49.91 [03:16:06]line Наличными: 0.00 [03:16:06]line Безнал.: 470.00 [03:16:06]line Место: АЗС № 5 "Партнер Нефть" [03:16:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:16:06]line СНО: Общий режим [03:16:06]line Чек 10 13.09.2024 03:16 [03:16:06]line Смена: 505 ФФД: 1.0 [03:16:06]line ЗНМ: 03000000022 [03:16:06]line РНМ: 0000000000091423 [03:16:06]line Версия ККМ: 001 [03:16:06]line Платежная система: Бакай Банк [03:16:06]line ФМ: 0000000000874692 [03:16:06]line ФД: 92202 [03:16:06]line ФПД: 107928793139724 [03:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T031614&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92202&fm=107928793139724&tin=02508201610067®Number=0000000000091423&sum=47000 [03:16:07]line 0 [03:16:07]OFD Sender: Processing packet 92202 [packets to send 63, broken 62] [03:16:07]ProducePacketName [03:16:07]name=ofd_packets/00092202 [03:16:07]OFD Sender: To server: pG, [03:16:07]CommunicateWithHost lk.salyk.kg:30040 [03:16:07]ConnectInit lk.salyk.kg [03:16:07]written 0, free lines is 4095 [03:16:07]Connected sock=10 [03:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 02 00 00 12 D6 1D 02 37 08 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 35 36 35 06 04 2B 00 D0 9D D0 B5 D1 81 D1 82 D0 BB D0 B5 D0 94 D0 B5 D0 BB D1 8E D0 BA D1 81 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 32 33 30 37 37 36 30 39 30 37 37 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 31 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7E AE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 68 01 00 35 04 06 00 62 29 21 60 4A 0C BD 15 76 4C 11 CA DC CE [03:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 41 30 47 00 A4 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 34 36 39 32 10 04 04 00 2A 68 01 00 F4 03 04 00 FE 56 E3 66 B6 04 01 00 00 0C 31 7A 39 DA DF 27 5B [03:16:07]CommunicateWithHost err = 0 [03:16:07]CheckOFDResponse [03:16:07]1017 (14) - 77093643461234 [03:16:07]1041 (16) - 0000000000874692 [03:16:07]1040 (4) - 92202 [03:16:07]1012 (4) - 12.09.2024 21:02 [03:16:07]1206 (1) - 0 [03:16:07]OFD Sender: Remove packet 92202 [03:16:07]ProducePacketName [03:16:07]name=ofd_packets/00092202 [03:16:07]NVStorageDeleteData [03:16:07]Write to MH i2c: 01 00 00 F8 57 4F [03:16:07]Write i2c OK [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: 01 [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: 01 07 00 [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: 01 07 00 F8 57 00 00 00 00 00 52 0C B4 [03:16:07]RasterBufferAndPrint [03:16:07]line [03:16:07]line [03:16:07]line [03:16:07]line [03:16:07]line [03:16:07]written 0, free lines is 3163 [03:16:07]MH_Cut [03:16:07]Write to MH i2c: D1 01 00 FF 57 01 28 [03:16:07]Write i2c OK [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: D1 [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: D1 01 00 [03:16:07]MH_I2C_Read... [03:16:07]Read from MH i2c: D1 01 00 FF 57 00 27 [03:16:07]Write to MH i2c: 01 00 00 00 58 58 [03:16:07]Write i2c OK [03:16:07]MH_I2C_Read... [03:16:08]OFD Sender: No OFD packet to send [03:16:08]*** Cut start [03:16:08]*** Purtial cut [03:16:08]*** Stage 1: CUTSNS_PIN = 1 [03:16:10]Read from MH i2c: 01 [03:16:10]MH_I2C_Read... [03:16:10]*** Stop cut motor [03:16:10]*** Cut end [03:16:10]Read from MH i2c: 01 07 00 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: 01 07 00 00 58 00 00 00 00 00 FF 0F 6D [03:16:10]process_action close_receipt done [03:16:10]requested_data is exist [03:16:10]produce_requested_data [03:16:10]requested_item fm.sn is exist - process it [03:16:10]wFMCommunicate request_size=4 [03:16:10]MH_SAM_APDU [03:16:10]CAPDU: 80 11 00 00 [03:16:10]Write to MH i2c: E2 08 00 01 58 80 11 00 00 00 00 00 00 D3 [03:16:10]Write i2c OK [03:16:10]MH_I2C_Read... [03:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:10]Read from MH i2c: E2 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 17 00 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 17 00 01 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2A [03:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:16:10]wFMCommunicate OK [03:16:10]requested_item fd.num is exist - process it [03:16:10]SAM_PROTO_GetFieldsCounters [03:16:10]wFMCommunicate request_size=4 [03:16:10]MH_SAM_APDU [03:16:10]CAPDU: 80 13 00 00 [03:16:10]Write to MH i2c: E2 08 00 02 58 80 13 00 00 00 00 00 00 D6 [03:16:10]Write i2c OK [03:16:10]MH_I2C_Read... [03:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:10]Read from MH i2c: E2 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 62 00 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 62 00 02 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [03:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:16:10]wFMCommunicate OK [03:16:10]SAM_PROTO_GetFieldsCounters done [03:16:10]requested_item shift.num is exist - process it [03:16:10]requested_item shift.opened is exist - process it [03:16:10]req_shift_opened [03:16:10]FM_GetShiftState [03:16:10]SAM_PROTO_GetShiftState [03:16:10]wFMCommunicate request_size=4 [03:16:10]MH_SAM_APDU [03:16:10]CAPDU: 80 13 01 00 [03:16:10]Write to MH i2c: E2 08 00 03 58 80 13 01 00 00 00 00 00 D8 [03:16:10]Write i2c OK [03:16:10]MH_I2C_Read... [03:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:10]Read from MH i2c: E2 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 0E 00 [03:16:10]MH_I2C_Read... [03:16:10]Read from MH i2c: E2 0E 00 03 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 64 [03:16:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:16:10]wFMCommunicate OK [03:16:10]SAM_PROTO_GetShiftState done [03:16:10]FM_GetShiftState done [03:16:10]req_shift_opened done [03:16:10]requested_item shift.open_date is exist - process it [03:16:10]req_shift_open_date [03:16:10]req_shift_open_date done [03:16:10]produce_requested_data done [03:16:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92202,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [03:16:10]process_action_free close_receipt [03:16:10]json_value_free [03:16:10]json_value_free done [03:16:10]process_json_proto returns [03:16:10]Send response to host [03:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92202,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [03:16:10]free response buf [03:16:10]execute_script done [03:16:10]execute_script returns [03:16:10]free content buf [03:16:10]Sock 9.Close socket [03:16:10]Sock 9.Thread stoped [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:26]accept exits with 8 [03:25:26]New connection [03:25:26]New thread 3067399524 created [03:25:26]Thread 3067256164 joined [03:25:26]Waiting for new connection... [03:25:26] Sock 8.Parse request [03:25:26]Sock 8.Check first char [03:25:26]Sock 8.First char is OK [03:25:26]request: POST /json_proto HTTP/1.0 [03:25:26]Method: POST [03:25:26]URL: /json_proto [03:25:26]Method is POST - this is cgi request [03:25:26]url: /json_proto [03:25:26]query_string will be loaded in cgi processing [03:25:26]execute_cgi json_proto POST (null) [03:25:26]execute_cgi path=json_proto method=POST [03:25:26]POST find Content-Length [03:25:26]Host: 172.17.57.71:8080 [03:25:26]Content-Length: 682 [03:25:26]Content-Type: application/json [03:25:26] [03:25:26]POST finish read [03:25:26]Found Content-Length = 682 [03:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:26]execute_script... [03:25: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)646605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:26]POST & json_proto [03:25:26]process_json_proto [03:25:26]json parsed OK: [03:25:26]protocol is kg_v1.0 [03:25:26]action value=close_receipt [03:25:26]process_action close_receipt [03:25:26]cmd_close_receipt [03:25:26]MH_GetDate [03:25:26]Write to MH i2c: F0 00 00 04 58 4B [03:25:26]Write i2c OK [03:25:26]MH_I2C_Read... [03:25:26]Read from MH i2c: F0 [03:25:26]MH_I2C_Read... [03:25:26]Read from MH i2c: F0 09 00 [03:25:26]MH_I2C_Read... [03:25:26]Read from MH i2c: F0 09 00 04 58 00 AF B0 E3 66 33 3A A4 66 73 [03:25:26]GetLastDocTimeStamp 1726197374 [03:25:26]current date 1726197935 [03:25:26]FM_GetShiftState [03:25:26]SAM_PROTO_GetShiftState [03:25:26]wFMCommunicate request_size=4 [03:25:26]MH_SAM_APDU [03:25:26]CAPDU: 80 13 01 00 [03:25:26]Write to MH i2c: E2 08 00 05 58 80 13 01 00 00 00 00 00 DA [03:25:26]Write i2c OK [03:25:26]MH_I2C_Read... [03:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:26]Read from MH i2c: E2 [03:25:26]MH_I2C_Read... [03:25:26]Read from MH i2c: E2 0E 00 [03:25:26]MH_I2C_Read... [03:25:26]Read from MH i2c: E2 0E 00 05 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 66 [03:25:26]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:25:26]wFMCommunicate OK [03:25:26]SAM_PROTO_GetShiftState done [03:25:26]FM_GetShiftState done [03:25:26]opened in 1726186930 [03:25:26]opened+sec_in_day 1726273330 [03:25:26]quantity*price = 100060 [03:25:26]sum+1 = 100062 [03:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 11 13.09.2024 03:25 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92203 ФПД: 213857928958674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T032535&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92203&fm=213857928958674&tin=02508201610067®Number=0000000000091423&sum=100000 [03:25:27]StoreToDocumentArchive [03:25:27]shift 505 fd 92203 [03:25:27]save to /storage/0505/doc_00092203 [03:25:27]save last doc name /storage/0505/doc_00092203 to /storage/kkm_last_doc_name [03:25:27]save OK [03:25:27]Clear old archive folders... [03:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:25:27]tlvbuf is 015D5DA0 [03:25:27]SAM_PROTO_ClearQueue [03:25:27]wFMCommunicate request_size=4 [03:25:27]MH_SAM_APDU [03:25:27]CAPDU: 80 09 00 00 [03:25:27]Write to MH i2c: E2 08 00 12 58 80 09 00 00 00 00 00 00 DC [03:25:27]Write i2c OK [03:25:27]MH_I2C_Read... [03:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:25:27]Read from MH i2c: E2 [03:25:27]MH_I2C_Read... [03:25:27]Read from MH i2c: E2 03 00 [03:25:27]MH_I2C_Read... [03:25:27]Read from MH i2c: E2 03 00 12 58 00 90 00 DE [03:25:27]RAPDU: 90 00 [03:25:27]wFMCommunicate OK [03:25:27]SAM_PROTO_ClearQueue done [03:25:27]KKMCreateOFDPacket [03:25:27]OFDProtocolAddRootSTLVToBuf [03:25:27]FM_MakeSignedData [03:25:27]FM_MakeSignedData [03:25:27]SAM_PROTO_SignData [03:25:27]wFMCommunicate request_size=4 [03:25:27]MH_SAM_APDU [03:25:27]CAPDU: 80 0D 01 02 [03:25:27]Write to MH i2c: E2 08 00 13 58 80 0D 01 02 00 00 00 00 E4 [03:25:27]Write i2c OK [03:25:27]MH_I2C_Read... [03:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:25:27]Read from MH i2c: E2 [03:25:27]MH_I2C_Read... [03:25:27]Read from MH i2c: E2 03 00 [03:25:27]MH_I2C_Read... [03:25:27]Read from MH i2c: E2 03 00 13 58 00 90 00 DF [03:25:27]RAPDU: 90 00 [03:25:27]wFMCommunicate OK [03:25:27]wFMCommunicate request_size=255 [03:25:27]MH_SAM_APDU [03:25: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 AF B0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 68 01 00 35 04 06 00 C2 [03:25:27]Write to MH i2c: E2 02 01 14 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 AF B0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 68 01 00 35 04 06 00 C2 00 00 DA [03:25:27]Write i2c OK [03:25:27]MH_I2C_Read... [03:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:28]Read from MH i2c: E2 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 03 00 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 03 00 14 58 00 90 00 E0 [03:25:28]RAPDU: 90 00 [03:25:28]wFMCommunicate OK [03:25:28]wFMCommunicate request_size=10 [03:25:28]MH_SAM_APDU [03:25:28]CAPDU: 80 0D 02 02 05 80 AD E3 52 D2 [03:25:28]Write to MH i2c: E2 0D 00 15 58 80 0D 02 02 05 00 80 AD E3 52 D2 00 00 25 [03:25:28]Write i2c OK [03:25:28]MH_I2C_Read... [03:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:28]Read from MH i2c: E2 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 03 00 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 03 00 15 58 00 90 00 E1 [03:25:28]RAPDU: 90 00 [03:25:28]wFMCommunicate OK [03:25:28]wFMCommunicate request_size=4 [03:25:28]MH_SAM_APDU [03:25:28]CAPDU: 80 0D 03 02 [03:25:28]Write to MH i2c: E2 08 00 16 58 80 0D 03 02 00 00 00 00 E9 [03:25:28]Write i2c OK [03:25:28]MH_I2C_Read... [03:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:25:28]Read from MH i2c: E2 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 0B 00 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 0B 00 16 58 00 9E 06 D0 11 E0 DB 51 7A 90 00 F5 [03:25:28]RAPDU: 9E 06 D0 11 E0 DB 51 7A 90 00 [03:25:28]wFMCommunicate OK [03:25:28]SAM_PROTO_SignData done [03:25:28]FM_MakeSignedData done [03:25:28]CreateOFDProtocolMessage [03:25:28]wFMCommunicate request_size=4 [03:25:28]MH_SAM_APDU [03:25:28]CAPDU: 80 11 00 00 [03:25:28]Write to MH i2c: E2 08 00 17 58 80 11 00 00 00 00 00 00 E9 [03:25:28]Write i2c OK [03:25:28]MH_I2C_Read... [03:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:28]Read from MH i2c: E2 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 17 00 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: E2 17 00 17 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 40 [03:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:25:28]wFMCommunicate OK [03:25:28]CreateOFDProtocolMessage done [03:25:28]OFDSenderStorePacket 92203 [03:25:28]StoreOFDPacket docnum=92203 [03:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 D4 09 07 01 FE 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 AF B0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 68 01 00 35 04 06 00 C2 80 AD E3 52 D2 9E 06 D0 11 E0 DB 51 7A [03:25:28]CheckFolder [03:25:28]dirname=/storage/ofd_packets [03:25:28]CheckFolder done [03:25:28]ProducePacketName [03:25:28]name=ofd_packets/00092203 [03:25:28]NVStorageSaveData ofd_packets/00092203 [03:25:28]File name is /storage/ofd_packets/00092203 [03:25:28]Write 301 bytes [03:25:28]NVStorageSaveData done [03:25:28]OFDSenderStorePacket done [03:25:28]KKMCreateOFDPacket done [03:25:28]NVStorageSaveData kkm_last_timestamp [03:25:28]File name is /storage/kkm_last_timestamp [03:25:28]Write 4 bytes [03:25:28]NVStorageSaveData done [03:25:28]ExternCall_PrintAddStr [03:25:28]wPrintStart [03:25:28]Write to MH i2c: 01 00 00 18 58 70 [03:25:28]Write i2c OK [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: 01 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: 01 07 00 [03:25:28]MH_I2C_Read... [03:25:28]Read from MH i2c: 01 07 00 18 58 00 00 00 00 00 FF 0F 85 [03:25:28]RasterBufferAndPrint [03:25:28]line Счет N : (1)646605 [03:25:28]line ИНН: 02508201610067 [03:25:28]line Контрольно-Кассовый Чек [03:25:28]line ПРОДАЖА [03:25:28]line ТРК (МРК, ГНК) : 22 [03:25:28]line Товар: 2710124500 [03:25:28]line Аи-95-К-5 [03:25:28]line 13.540 * 73.90 [03:25:28]line = 1000.61 [03:25:28]line НДС 12% НСП 1% [03:25:28]line > о реализуемом товаре [03:25:28]line ОКРУГЛЕНИЕ: -0.61 [03:25:28]line ИТОГО: 1000.00 [03:25:28]line Внесено: 1000.00 [03:25:28]line СДАЧА: 0.00 [03:25:28]line НСП 1% : 8.85 [03:25:28]line НДС 12% : 106.26 [03:25:28]line Наличными: 1000.00 [03:25:28]line Безнал.: 0.00 [03:25:28]line Место: АЗС № 5 "Партнер Нефть" [03:25:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:25:28]line СНО: Общий режим [03:25:28]line Чек 11 13.09.2024 03:25 [03:25:28]line Смена: 505 ФФД: 1.0 [03:25:28]line ЗНМ: 03000000022 [03:25:28]line РНМ: 0000000000091423 [03:25:28]line Версия ККМ: 001 [03:25:28]line ФМ: 0000000000874692 [03:25:28]line ФД: 92203 [03:25:28]line ФПД: 213857928958674 [03:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T032535&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92203&fm=213857928958674&tin=02508201610067®Number=0000000000091423&sum=100000 [03:25:28]OFD Sender: Processing packet 92203 [packets to send 63, broken 62] [03:25:28]ProducePacketName [03:25:28]name=ofd_packets/00092203 [03:25:28]OFD Sender: To server: pG, [03:25:28]CommunicateWithHost lk.salyk.kg:30040 [03:25:28]ConnectInit lk.salyk.kg [03:25:28]written 0, free lines is 4095 [03:25:28]Connected sock=10 [03:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 D4 09 07 01 FE 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 AF B0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 68 01 00 35 04 06 00 C2 80 AD E3 52 D2 9E 06 D0 11 E0 DB 51 7A [03:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B4 0F 47 00 CD 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 34 36 39 32 10 04 04 00 2B 68 01 00 F4 03 04 00 2F 59 E3 66 B6 04 01 00 00 47 F0 C8 8E 91 8E 73 1C [03:25:28]CommunicateWithHost err = 0 [03:25:28]CheckOFDResponse [03:25:28]1017 (14) - 77093643461234 [03:25:28]1041 (16) - 0000000000874692 [03:25:28]1040 (4) - 92203 [03:25:28]1012 (4) - 12.09.2024 21:12 [03:25:28]1206 (1) - 0 [03:25:28]OFD Sender: Remove packet 92203 [03:25:28]ProducePacketName [03:25:28]name=ofd_packets/00092203 [03:25:28]NVStorageDeleteData [03:25:29]Write to MH i2c: 01 00 00 43 58 9B [03:25:29]Write i2c OK [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: 01 [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: 01 07 00 [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: 01 07 00 43 58 00 00 00 00 00 F0 0C 9E [03:25:29]RasterBufferAndPrint [03:25:29]line [03:25:29]line [03:25:29]line [03:25:29]line [03:25:29]line [03:25:29]written 0, free lines is 3320 [03:25:29]MH_Cut [03:25:29]Write to MH i2c: D1 01 00 4A 58 01 74 [03:25:29]Write i2c OK [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: D1 [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: D1 01 00 [03:25:29]MH_I2C_Read... [03:25:29]Read from MH i2c: D1 01 00 4A 58 00 73 [03:25:29]Write to MH i2c: 01 00 00 4B 58 A3 [03:25:29]Write i2c OK [03:25:29]MH_I2C_Read... [03:25:29]OFD Sender: No OFD packet to send [03:25:29]*** Cut start [03:25:29]*** Purtial cut [03:25:29]*** Stage 1: CUTSNS_PIN = 1 [03:25:31]Read from MH i2c: 01 [03:25:31]MH_I2C_Read... [03:25:31]*** Stop cut motor [03:25:31]*** Cut end [03:25:31]Read from MH i2c: 01 07 00 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: 01 07 00 4B 58 00 00 00 00 00 FF 0F B8 [03:25:31]process_action close_receipt done [03:25:31]requested_data is exist [03:25:31]produce_requested_data [03:25:31]requested_item fm.sn is exist - process it [03:25:31]wFMCommunicate request_size=4 [03:25:31]MH_SAM_APDU [03:25:31]CAPDU: 80 11 00 00 [03:25:31]Write to MH i2c: E2 08 00 4C 58 80 11 00 00 00 00 00 00 1E [03:25:31]Write i2c OK [03:25:31]MH_I2C_Read... [03:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:31]Read from MH i2c: E2 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 17 00 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 17 00 4C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 75 [03:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:25:31]wFMCommunicate OK [03:25:31]requested_item fd.num is exist - process it [03:25:31]SAM_PROTO_GetFieldsCounters [03:25:31]wFMCommunicate request_size=4 [03:25:31]MH_SAM_APDU [03:25:31]CAPDU: 80 13 00 00 [03:25:31]Write to MH i2c: E2 08 00 4D 58 80 13 00 00 00 00 00 00 21 [03:25:31]Write i2c OK [03:25:31]MH_I2C_Read... [03:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:25:31]Read from MH i2c: E2 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 62 00 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 62 00 4D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [03:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:25:31]wFMCommunicate OK [03:25:31]SAM_PROTO_GetFieldsCounters done [03:25:31]requested_item shift.num is exist - process it [03:25:31]requested_item shift.opened is exist - process it [03:25:31]req_shift_opened [03:25:31]FM_GetShiftState [03:25:31]SAM_PROTO_GetShiftState [03:25:31]wFMCommunicate request_size=4 [03:25:31]MH_SAM_APDU [03:25:31]CAPDU: 80 13 01 00 [03:25:31]Write to MH i2c: E2 08 00 4E 58 80 13 01 00 00 00 00 00 23 [03:25:31]Write i2c OK [03:25:31]MH_I2C_Read... [03:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:31]Read from MH i2c: E2 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 0E 00 [03:25:31]MH_I2C_Read... [03:25:31]Read from MH i2c: E2 0E 00 4E 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AF [03:25:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:25:31]wFMCommunicate OK [03:25:31]SAM_PROTO_GetShiftState done [03:25:31]FM_GetShiftState done [03:25:31]req_shift_opened done [03:25:31]requested_item shift.open_date is exist - process it [03:25:31]req_shift_open_date [03:25:31]req_shift_open_date done [03:25:31]produce_requested_data done [03:25:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92203,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [03:25:31]process_action_free close_receipt [03:25:31]json_value_free [03:25:31]json_value_free done [03:25:31]process_json_proto returns [03:25:31]Send response to host [03:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92203,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [03:25:31]free response buf [03:25:31]execute_script done [03:25:31]execute_script returns [03:25:31]free content buf [03:25:31]Sock 8.Close socket [03:25:31]Sock 8.Thread stoped [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:43]accept exits with 9 [03:40:43]New connection [03:40:43]New thread 3067256164 created [03:40:43]Thread 3067399524 joined [03:40:43]Waiting for new connection... [03:40:43] Sock 9.Parse request [03:40:43]Sock 9.Check first char [03:40:43]Sock 9.First char is OK [03:40:43]request: POST /json_proto HTTP/1.0 [03:40:43]Method: POST [03:40:43]URL: /json_proto [03:40:43]Method is POST - this is cgi request [03:40:43]url: /json_proto [03:40:43]query_string will be loaded in cgi processing [03:40:43]execute_cgi json_proto POST (null) [03:40:43]execute_cgi path=json_proto method=POST [03:40:43]POST find Content-Length [03:40:43]Host: 172.17.57.71:8080 [03:40:43]Content-Length: 1029 [03:40:43]Content-Type: application/json [03:40:43] [03:40:43]POST finish read [03:40:43]Found Content-Length = 1029 [03:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127136", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:43]execute_script... [03: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 : (3)127136", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:43]POST & json_proto [03:40:43]process_json_proto [03:40:43]json parsed OK: [03:40:43]protocol is kg_v1.0 [03:40:43]action value=close_receipt [03:40:43]process_action close_receipt [03:40:43]cmd_close_receipt [03:40:43]MH_GetDate [03:40:43]Write to MH i2c: F0 00 00 4F 58 96 [03:40:43]Write i2c OK [03:40:43]MH_I2C_Read... [03:40:43]Read from MH i2c: F0 [03:40:43]MH_I2C_Read... [03:40:43]Read from MH i2c: F0 09 00 [03:40:43]MH_I2C_Read... [03:40:43]Read from MH i2c: F0 09 00 4F 58 00 44 B4 E3 66 33 3A A4 66 57 [03:40:43]GetLastDocTimeStamp 1726197935 [03:40:43]current date 1726198852 [03:40:43]FM_GetShiftState [03:40:43]SAM_PROTO_GetShiftState [03:40:43]wFMCommunicate request_size=4 [03:40:43]MH_SAM_APDU [03:40:43]CAPDU: 80 13 01 00 [03:40:43]Write to MH i2c: E2 08 00 50 58 80 13 01 00 00 00 00 00 25 [03:40:43]Write i2c OK [03:40:43]MH_I2C_Read... [03:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:43]Read from MH i2c: E2 [03:40:43]MH_I2C_Read... [03:40:43]Read from MH i2c: E2 0E 00 [03:40:43]MH_I2C_Read... [03:40:43]Read from MH i2c: E2 0E 00 50 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B1 [03:40:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:40:43]wFMCommunicate OK [03:40:43]SAM_PROTO_GetShiftState done [03:40:43]FM_GetShiftState done [03:40:43]opened in 1726186930 [03:40:43]opened+sec_in_day 1726273330 [03:40:43]quantity*price = 18000 [03:40:43]sum+1 = 18001 [03:40:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46177872 Жев Orbit подушки Citrus 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 12 13.09.2024 03:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92204 ФПД: 108887058033720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92204&fm=108887058033720&tin=02508201610067®Number=0000000000091423&sum=22000 0 [03:40:44]StoreToDocumentArchive [03:40:44]shift 505 fd 92204 [03:40:44]save to /storage/0505/doc_00092204 [03:40:44]save last doc name /storage/0505/doc_00092204 to /storage/kkm_last_doc_name [03:40:44]save OK [03:40:44]Clear old archive folders... [03:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=380 [03:40:44]tlvbuf is 01783B60 [03:40:44]SAM_PROTO_ClearQueue [03:40:44]wFMCommunicate request_size=4 [03:40:44]MH_SAM_APDU [03:40:44]CAPDU: 80 09 00 00 [03:40:44]Write to MH i2c: E2 08 00 5D 58 80 09 00 00 00 00 00 00 27 [03:40:44]Write i2c OK [03:40:44]MH_I2C_Read... [03:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:44]Read from MH i2c: E2 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 5D 58 00 90 00 29 [03:40:44]RAPDU: 90 00 [03:40:44]wFMCommunicate OK [03:40:44]SAM_PROTO_ClearQueue done [03:40:44]KKMCreateOFDPacket [03:40:44]OFDProtocolAddRootSTLVToBuf [03:40:44]FM_MakeSignedData [03:40:44]FM_MakeSignedData [03:40:44]SAM_PROTO_SignData [03:40:44]wFMCommunicate request_size=4 [03:40:44]MH_SAM_APDU [03:40:44]CAPDU: 80 0D 01 02 [03:40:44]Write to MH i2c: E2 08 00 5E 58 80 0D 01 02 00 00 00 00 2F [03:40:44]Write i2c OK [03:40:44]MH_I2C_Read... [03:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:44]Read from MH i2c: E2 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 5E 58 00 90 00 2A [03:40:44]RAPDU: 90 00 [03:40:44]wFMCommunicate OK [03:40:44]wFMCommunicate request_size=255 [03:40:44]MH_SAM_APDU [03:40:44]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 [03:40:44]Write to MH i2c: E2 02 01 5F 58 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 0A [03:40:44]Write i2c OK [03:40:44]MH_I2C_Read... [03:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:44]Read from MH i2c: E2 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 [03:40:44]MH_I2C_Read... [03:40:44]Read from MH i2c: E2 03 00 5F 58 00 90 00 2B [03:40:44]RAPDU: 90 00 [03:40:44]wFMCommunicate OK [03:40:44]wFMCommunicate request_size=139 [03:40:44]MH_SAM_APDU [03:40:44]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 B4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 68 01 00 35 04 06 00 63 08 3E 6A 2C 38 [03:40:44]Write to MH i2c: E2 8E 00 60 58 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 B4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 68 01 00 35 04 06 00 63 08 3E 6A 2C 38 00 00 2A [03:40:44]Write i2c OK [03:40:44]MH_I2C_Read... [03:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:45]Read from MH i2c: E2 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 03 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 03 00 60 58 00 90 00 2C [03:40:45]RAPDU: 90 00 [03:40:45]wFMCommunicate OK [03:40:45]wFMCommunicate request_size=4 [03:40:45]MH_SAM_APDU [03:40:45]CAPDU: 80 0D 03 02 [03:40:45]Write to MH i2c: E2 08 00 61 58 80 0D 03 02 00 00 00 00 34 [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:45]Read from MH i2c: E2 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 0B 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 0B 00 61 58 00 92 9E 0A 86 B1 7F F1 2E 90 00 44 [03:40:45]RAPDU: 92 9E 0A 86 B1 7F F1 2E 90 00 [03:40:45]wFMCommunicate OK [03:40:45]SAM_PROTO_SignData done [03:40:45]FM_MakeSignedData done [03:40:45]CreateOFDProtocolMessage [03:40:45]wFMCommunicate request_size=4 [03:40:45]MH_SAM_APDU [03:40:45]CAPDU: 80 11 00 00 [03:40:45]Write to MH i2c: E2 08 00 62 58 80 11 00 00 00 00 00 00 34 [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:45]Read from MH i2c: E2 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 17 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: E2 17 00 62 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8B [03:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:40:45]wFMCommunicate OK [03:40:45]CreateOFDProtocolMessage done [03:40:45]OFDSenderStorePacket 92204 [03:40:45]StoreOFDPacket docnum=92204 [03:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 01 00 00 02 AE 88 01 BB AE 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 B4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 68 01 00 35 04 06 00 63 08 3E 6A 2C 38 92 9E 0A 86 B1 7F F1 2E [03:40:45]CheckFolder [03:40:45]dirname=/storage/ofd_packets [03:40:45]CheckFolder done [03:40:45]ProducePacketName [03:40:45]name=ofd_packets/00092204 [03:40:45]NVStorageSaveData ofd_packets/00092204 [03:40:45]File name is /storage/ofd_packets/00092204 [03:40:45]Write 430 bytes [03:40:45]NVStorageSaveData done [03:40:45]OFDSenderStorePacket done [03:40:45]KKMCreateOFDPacket done [03:40:45]NVStorageSaveData kkm_last_timestamp [03:40:45]File name is /storage/kkm_last_timestamp [03:40:45]Write 4 bytes [03:40:45]NVStorageSaveData done [03:40:45]ExternCall_PrintAddStr [03:40:45]wPrintStart [03:40:45]Write to MH i2c: 01 00 00 63 58 BB [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:45]OFD Sender: Processing packet 92204 [packets to send 63, broken 62] [03:40:45]Read from MH i2c: ProducePacketName [03:40:45]01 name=ofd_packets/00092204 [03:40:45] [03:40:45]OFD Sender: To server: pG, [03:40:45]MH_I2C_Read... [03:40:45]CommunicateWithHost lk.salyk.kg:30040 [03:40:45]ConnectInit lk.salyk.kg [03:40:45]Read from MH i2c: 01 07 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: 01 07 00 63 58 00 00 00 00 00 FF 0F D0 [03:40:45]RasterBufferAndPrint [03:40:45]line Счет N : (3)127136 [03:40:45]line ИНН: 02508201610067 [03:40:45]line Контрольно-Кассовый Чек [03:40:45]line ПРОДАЖА [03:40:45]line Товар: 4650243871781 [03:40:45]line Gorilla эн нап Orange 0,45 ж/б [03:40:45]line 2.000 * 90.00 [03:40:45]line = 180.00 [03:40:45]line НДС 12% НСП 1% [03:40:45]line > о реализуемом товаре [03:40:45]line Товар: 46177872 [03:40:45]line Жев Orbit подушки Citrus [03:40:45]line 1.000 * 40.00 [03:40:45]line = 40.00 [03:40:45]line НДС 12% НСП 1% [03:40:45]line > о реализуемом товаре [03:40:45]line ИТОГО: 220.00 [03:40:45]line НСП 1% : 1.94 [03:40:45]line НДС 12% : 23.36 [03:40:45]line Наличными: 0.00 [03:40:45]line Безнал.: 220.00 [03:40:45]line Место: АЗС № 5 "Партнер Нефть" [03:40:45]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:40:45]line СНО: Общий режим [03:40:45]line Чек 12 13.09.2024 03:40 [03:40:45]line Смена: 505 ФФД: 1.0 [03:40:45]line ЗНМ: 03000000022 [03:40:45]line РНМ: 0000000000091423 [03:40:45]line Версия ККМ: 001 [03:40:45]line Платежная система: О! деньги [03:40:45]line ФМ: 0000000000874692 [03:40:45]line ФД: 92204 [03:40:45]line ФПД: 108887058033720 [03:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034052&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92204&fm=108887058033720&tin=02508201610067®Number=0000000000091423&sum=22000 [03:40:45]line 0 [03:40:45]written 0, free lines is 4095 [03:40:45]Connected sock=11 [03: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 34 36 39 32 90 01 00 00 02 AE 88 01 BB AE 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 B4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 68 01 00 35 04 06 00 63 08 3E 6A 2C 38 92 9E 0A 86 B1 7F F1 2E [03:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1E D4 47 00 E6 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 68 01 00 F4 03 04 00 C4 5C E3 66 B6 04 01 00 00 58 26 00 EF 2C 8A B0 CB [03:40:45]CommunicateWithHost err = 0 [03:40:45]CheckOFDResponse [03:40:45]1017 (14) - 77093643461234 [03:40:45]1041 (16) - 0000000000874692 [03:40:45]1040 (4) - 92204 [03:40:45]1012 (4) - 12.09.2024 21:27 [03:40:45]1206 (1) - 0 [03:40:45]OFD Sender: Remove packet 92204 [03:40:45]ProducePacketName [03:40:45]name=ofd_packets/00092204 [03:40:45]NVStorageDeleteData [03:40:45]Write to MH i2c: 01 00 00 93 58 EB [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: 01 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: 01 07 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: 01 07 00 93 58 00 00 00 00 00 BF 0C BD [03:40:45]RasterBufferAndPrint [03:40:45]line [03:40:45]line [03:40:45]line [03:40:45]line [03:40:45]line [03:40:45]written 0, free lines is 3271 [03:40:45]MH_Cut [03:40:45]Write to MH i2c: D1 01 00 9A 58 01 C4 [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: D1 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: D1 01 00 [03:40:45]MH_I2C_Read... [03:40:45]Read from MH i2c: D1 01 00 9A 58 00 C3 [03:40:45]Write to MH i2c: 01 00 00 9B 58 F3 [03:40:45]Write i2c OK [03:40:45]MH_I2C_Read... [03:40:46]OFD Sender: No OFD packet to send [03:40:46]*** Cut start [03:40:46]*** Purtial cut [03:40:46]*** Stage 1: CUTSNS_PIN = 1 [03:40:48]Read from MH i2c: 01 [03:40:48]MH_I2C_Read... [03:40:48]*** Stop cut motor [03:40:48]*** Cut end [03:40:48]Read from MH i2c: 01 07 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: 01 07 00 9B 58 00 00 00 00 00 FF 0F 08 [03:40:48]process_action close_receipt done [03:40:48]requested_data is exist [03:40:48]produce_requested_data [03:40:48]requested_item fm.sn is exist - process it [03:40:48]wFMCommunicate request_size=4 [03:40:48]MH_SAM_APDU [03:40:48]CAPDU: 80 11 00 00 [03:40:48]Write to MH i2c: E2 08 00 9C 58 80 11 00 00 00 00 00 00 6E [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:48]Read from MH i2c: E2 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 17 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 17 00 9C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [03:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:40:48]wFMCommunicate OK [03:40:48]requested_item fd.num is exist - process it [03:40:48]SAM_PROTO_GetFieldsCounters [03:40:48]wFMCommunicate request_size=4 [03:40:48]MH_SAM_APDU [03:40:48]CAPDU: 80 13 00 00 [03:40:48]Write to MH i2c: E2 08 00 9D 58 80 13 00 00 00 00 00 00 71 [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:40:48]Read from MH i2c: E2 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 62 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 62 00 9D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [03: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:40:48]wFMCommunicate OK [03:40:48]SAM_PROTO_GetFieldsCounters done [03:40:48]requested_item shift.num is exist - process it [03:40:48]requested_item shift.opened is exist - process it [03:40:48]req_shift_opened [03:40:48]FM_GetShiftState [03:40:48]SAM_PROTO_GetShiftState [03:40:48]wFMCommunicate request_size=4 [03:40:48]MH_SAM_APDU [03:40:48]CAPDU: 80 13 01 00 [03:40:48]Write to MH i2c: E2 08 00 9E 58 80 13 01 00 00 00 00 00 73 [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 [03:40:48]MH_I2C_Read... [03:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:48]Read from MH i2c: E2 0E 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 0E 00 9E 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 FF [03:40:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:40:48]wFMCommunicate OK [03:40:48]SAM_PROTO_GetShiftState done [03:40:48]FM_GetShiftState done [03:40:48]req_shift_opened done [03:40:48]requested_item shift.open_date is exist - process it [03:40:48]req_shift_open_date [03:40:48]req_shift_open_date done [03:40:48]produce_requested_data done [03:40:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92204,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [03:40:48]process_action_free close_receipt [03:40:48]json_value_free [03:40:48]json_value_free done [03:40:48]process_json_proto returns [03:40:48]Send response to host [03:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92204,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [03:40:48]free response buf [03:40:48]execute_script done [03:40:48]execute_script returns [03:40:48]free content buf [03:40:48]Sock 9.Close socket [03:40:48]Sock 9.Thread stoped [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:45:59]accept exits with 8 [03:45:59]New connection [03:45:59]New thread 3067399524 created [03:45:59]Thread 3067256164 joined [03:45:59]Waiting for new connection... [03:45:59] Sock 8.Parse request [03:45:59]Sock 8.Check first char [03:45:59]Sock 8.First char is OK [03:45:59]request: POST /json_proto HTTP/1.0 [03:45:59]Method: POST [03:45:59]URL: /json_proto [03:45:59]Method is POST - this is cgi request [03:45:59]url: /json_proto [03:45:59]query_string will be loaded in cgi processing [03:45:59]execute_cgi json_proto POST (null) [03:45:59]execute_cgi path=json_proto method=POST [03:45:59]POST find Content-Length [03:45:59]Host: 172.17.57.71:8080 [03:45:59]Content-Length: 682 [03:45:59]Content-Type: application/json [03:45:59] [03:45:59]POST finish read [03:45:59]Found Content-Length = 682 [03:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [03:45:59]execute_script... [03:45:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [03:45:59]POST & json_proto [03:45:59]process_json_proto [03:45:59]json parsed OK: [03:45:59]protocol is kg_v1.0 [03:45:59]action value=close_receipt [03:45:59]process_action close_receipt [03:45:59]cmd_close_receipt [03:45:59]MH_GetDate [03:45:59]Write to MH i2c: F0 00 00 9F 58 E6 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: F0 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: F0 09 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: F0 09 00 9F 58 00 80 B5 E3 66 33 3A A4 66 E4 [03:45:59]GetLastDocTimeStamp 1726198852 [03:45:59]current date 1726199168 [03:45:59]FM_GetShiftState [03:45:59]SAM_PROTO_GetShiftState [03:45:59]wFMCommunicate request_size=4 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 13 01 00 [03:45:59]Write to MH i2c: E2 08 00 A0 58 80 13 01 00 00 00 00 00 75 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 0E 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 0E 00 A0 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 01 [03:45:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:45:59]wFMCommunicate OK [03:45:59]SAM_PROTO_GetShiftState done [03:45:59]FM_GetShiftState done [03:45:59]opened in 1726186930 [03:45:59]opened+sec_in_day 1726273330 [03:45:59]quantity*price = 150056 [03:45:59]sum+1 = 150058 [03:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 13 13.09.2024 03:46 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92205 ФПД: 212136769077887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034608&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92205&fm=212136769077887&tin=02508201610067®Number=0000000000091423&sum=150000 [03:46:00]StoreToDocumentArchive [03:46:00]shift 505 fd 92205 [03:46:00]save to /storage/0505/doc_00092205 [03:46:00]save last doc name /storage/0505/doc_00092205 to /storage/kkm_last_doc_name [03:46:00]save OK [03:46:00]Clear old archive folders... [03:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:46:00]tlvbuf is 016E78C0 [03:46:00]SAM_PROTO_ClearQueue [03:46:00]wFMCommunicate request_size=4 [03:46:00]MH_SAM_APDU [03:46:00]CAPDU: 80 09 00 00 [03:46:00]Write to MH i2c: E2 08 00 AD 58 80 09 00 00 00 00 00 00 77 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 AD 58 00 90 00 79 [03:46:00]RAPDU: 90 00 [03:46:00]wFMCommunicate OK [03:46:00]SAM_PROTO_ClearQueue done [03:46:00]KKMCreateOFDPacket [03:46:00]OFDProtocolAddRootSTLVToBuf [03:46:00]FM_MakeSignedData [03:46:00]FM_MakeSignedData [03:46:00]SAM_PROTO_SignData [03:46:00]wFMCommunicate request_size=4 [03:46:00]MH_SAM_APDU [03:46:00]CAPDU: 80 0D 01 02 [03:46:00]Write to MH i2c: E2 08 00 AE 58 80 0D 01 02 00 00 00 00 7F [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 AE 58 00 90 00 7A [03:46:00]RAPDU: 90 00 [03:46:00]wFMCommunicate OK [03:46:00]wFMCommunicate request_size=255 [03:46:00]MH_SAM_APDU [03:46: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 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 0D 00 00 00 F4 03 04 00 80 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 68 01 00 35 04 06 00 C0 [03:46:00]Write to MH i2c: E2 02 01 AF 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 80 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 68 01 00 35 04 06 00 C0 00 00 30 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 AF 58 00 90 00 7B [03:46:00]RAPDU: 90 00 [03:46:00]wFMCommunicate OK [03:46:00]wFMCommunicate request_size=10 [03:46:00]MH_SAM_APDU [03:46:00]CAPDU: 80 0D 02 02 05 EF F0 C3 C2 7F [03:46:00]Write to MH i2c: E2 0D 00 B0 58 80 0D 02 02 05 00 EF F0 C3 C2 7F 00 00 6F [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 03 00 B0 58 00 90 00 7C [03:46:00]RAPDU: 90 00 [03:46:00]wFMCommunicate OK [03:46:00]wFMCommunicate request_size=4 [03:46:00]MH_SAM_APDU [03:46:00]CAPDU: 80 0D 03 02 [03:46:00]Write to MH i2c: E2 08 00 B1 58 80 0D 03 02 00 00 00 00 84 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 0B 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 0B 00 B1 58 00 29 4B 9C A2 2C 76 A4 A4 90 00 21 [03:46:00]RAPDU: 29 4B 9C A2 2C 76 A4 A4 90 00 [03:46:00]wFMCommunicate OK [03:46:00]SAM_PROTO_SignData done [03:46:00]FM_MakeSignedData done [03:46:00]CreateOFDProtocolMessage [03:46:00]wFMCommunicate request_size=4 [03:46:00]MH_SAM_APDU [03:46:00]CAPDU: 80 11 00 00 [03:46:00]Write to MH i2c: E2 08 00 B2 58 80 11 00 00 00 00 00 00 84 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 17 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 17 00 B2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DB [03:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:46:00]wFMCommunicate OK [03:46:00]CreateOFDProtocolMessage done [03:46:00]OFDSenderStorePacket 92205 [03:46:00]StoreOFDPacket docnum=92205 [03:46:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 3D 6E 07 01 D1 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 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 0D 00 00 00 F4 03 04 00 80 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 68 01 00 35 04 06 00 C0 EF F0 C3 C2 7F 29 4B 9C A2 2C 76 A4 A4 [03:46:00]CheckFolder [03:46:00]dirname=/storage/ofd_packets [03:46:00]CheckFolder done [03:46:00]ProducePacketName [03:46:00]name=ofd_packets/00092205 [03:46:00]NVStorageSaveData ofd_packets/00092205 [03:46:00]File name is /storage/ofd_packets/00092205 [03:46:00]Write 301 bytes [03:46:00]NVStorageSaveData done [03:46:00]OFDSenderStorePacket done [03:46:00]KKMCreateOFDPacket done [03:46:00]NVStorageSaveData kkm_last_timestamp [03:46:00]File name is /storage/kkm_last_timestamp [03:46:00]Write 4 bytes [03:46:00]NVStorageSaveData done [03:46:00]ExternCall_PrintAddStr [03:46:00]wPrintStart [03:46:00]Write to MH i2c: 01 00 00 B3 58 0B [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 B3 58 00 00 00 00 00 FF 0F 20 [03:46:00]RasterBufferAndPrint [03:46:00]line Счет N : (1)646606 [03:46:00]line ИНН: 02508201610067 [03:46:00]line Контрольно-Кассовый Чек [03:46:00]line ПРОДАЖА [03:46:00]line ТРК (МРК, ГНК) : 13 [03:46:00]line Товар: 2710124130 [03:46:00]line Аи-92-К-5 [03:46:00]line 22.430 * 66.90 [03:46:00]line = 1500.57 [03:46:00]line НДС 12% НСП 1% [03:46:00]line > о реализуемом товаре [03:46:00]line ОКРУГЛЕНИЕ: -0.57 [03:46:00]line ИТОГО: 1500.00 [03:46:00]line Внесено: 1500.00 [03:46:00]line СДАЧА: 0.00 [03:46:00]line НСП 1% : 13.28 [03:46:00]line НДС 12% : 159.35 [03:46:00]line Наличными: 1500.00 [03:46:00]line Безнал.: 0.00 [03:46:00]line Место: АЗС № 5 "Партнер Нефть" [03:46:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:46:00]line СНО: Общий режим [03:46:00]line Чек 13 13.09.2024 03:46 [03:46:00]line Смена: 505 ФФД: 1.0 [03:46:00]line ЗНМ: 03000000022 [03:46:00]line РНМ: 0000000000091423 [03:46:00]line Версия ККМ: 001 [03:46:00]line ФМ: 0000000000874692 [03:46:00]line ФД: 92205 [03:46:00]line ФПД: 212136769077887 [03:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034608&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92205&fm=212136769077887&tin=02508201610067®Number=0000000000091423&sum=150000 [03:46:01]OFD Sender: Processing packet 92205 [packets to send 63, broken 62] [03:46:01]ProducePacketName [03:46:01]name=ofd_packets/00092205 [03:46:01]OFD Sender: To server: pG, [03:46:01]CommunicateWithHost lk.salyk.kg:30040 [03:46:01]ConnectInit lk.salyk.kg [03:46:01]written 0, free lines is 4095 [03:46:01]Connected sock=10 [03:46:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 3D 6E 07 01 D1 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 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 0D 00 00 00 F4 03 04 00 80 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 68 01 00 35 04 06 00 C0 EF F0 C3 C2 7F 29 4B 9C A2 2C 76 A4 A4 [03:46:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 89 6D 47 00 3D 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 68 01 00 F4 03 04 00 00 5E E3 66 B6 04 01 00 00 DF F0 87 7F AC 25 FB D2 [03:46:01]CommunicateWithHost err = 0 [03:46:01]CheckOFDResponse [03:46:01]1017 (14) - 77093643461234 [03:46:01]1041 (16) - 0000000000874692 [03:46:01]1040 (4) - 92205 [03:46:01]1012 (4) - 12.09.2024 21:32 [03:46:01]1206 (1) - 0 [03:46:01]OFD Sender: Remove packet 92205 [03:46:01]ProducePacketName [03:46:01]name=ofd_packets/00092205 [03:46:01]NVStorageDeleteData [03:46:01]Write to MH i2c: 01 00 00 DE 58 36 [03:46:01]Write i2c OK [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: 01 [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: 01 07 00 [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: 01 07 00 DE 58 00 00 00 00 00 F5 0C 3E [03:46:01]RasterBufferAndPrint [03:46:01]line [03:46:01]line [03:46:01]line [03:46:01]line [03:46:01]line [03:46:01]written 0, free lines is 3324 [03:46:01]MH_Cut [03:46:01]Write to MH i2c: D1 01 00 E5 58 01 0F [03:46:01]Write i2c OK [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: D1 [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: D1 01 00 [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: D1 01 00 E5 58 00 0E [03:46:01]Write to MH i2c: 01 00 00 E6 58 3E [03:46:01]Write i2c OK [03:46:01]MH_I2C_Read... [03:46:01]OFD Sender: No OFD packet to send [03:46:02]*** Cut start [03:46:02]*** Purtial cut [03:46:02]*** Stage 1: CUTSNS_PIN = 1 [03:46:04]Read from MH i2c: 01 [03:46:04]MH_I2C_Read... [03:46:04]*** Stop cut motor [03:46:04]*** Cut end [03:46:04]Read from MH i2c: 01 07 00 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: 01 07 00 E6 58 00 00 00 00 00 FF 0F 53 [03:46:04]process_action close_receipt done [03:46:04]requested_data is exist [03:46:04]produce_requested_data [03:46:04]requested_item fm.sn is exist - process it [03:46:04]wFMCommunicate request_size=4 [03:46:04]MH_SAM_APDU [03:46:04]CAPDU: 80 11 00 00 [03:46:04]Write to MH i2c: E2 08 00 E7 58 80 11 00 00 00 00 00 00 B9 [03:46:04]Write i2c OK [03:46:04]MH_I2C_Read... [03:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:04]Read from MH i2c: E2 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 17 00 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 17 00 E7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 10 [03:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:46:04]wFMCommunicate OK [03:46:04]requested_item fd.num is exist - process it [03:46:04]SAM_PROTO_GetFieldsCounters [03:46:04]wFMCommunicate request_size=4 [03:46:04]MH_SAM_APDU [03:46:04]CAPDU: 80 13 00 00 [03:46:04]Write to MH i2c: E2 08 00 E8 58 80 13 00 00 00 00 00 00 BC [03:46:04]Write i2c OK [03:46:04]MH_I2C_Read... [03:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:04]Read from MH i2c: E2 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 62 00 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 62 00 E8 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [03:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:04]wFMCommunicate OK [03:46:04]SAM_PROTO_GetFieldsCounters done [03:46:04]requested_item shift.num is exist - process it [03:46:04]requested_item shift.opened is exist - process it [03:46:04]req_shift_opened [03:46:04]FM_GetShiftState [03:46:04]SAM_PROTO_GetShiftState [03:46:04]wFMCommunicate request_size=4 [03:46:04]MH_SAM_APDU [03:46:04]CAPDU: 80 13 01 00 [03:46:04]Write to MH i2c: E2 08 00 E9 58 80 13 01 00 00 00 00 00 BE [03:46:04]Write i2c OK [03:46:04]MH_I2C_Read... [03:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:04]Read from MH i2c: E2 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 0E 00 [03:46:04]MH_I2C_Read... [03:46:04]Read from MH i2c: E2 0E 00 E9 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 4A [03:46:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:46:04]wFMCommunicate OK [03:46:04]SAM_PROTO_GetShiftState done [03:46:04]FM_GetShiftState done [03:46:04]req_shift_opened done [03:46:04]requested_item shift.open_date is exist - process it [03:46:04]req_shift_open_date [03:46:04]req_shift_open_date done [03:46:04]produce_requested_data done [03:46:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92205,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [03:46:04]process_action_free close_receipt [03:46:04]json_value_free [03:46:04]json_value_free done [03:46:04]process_json_proto returns [03:46:04]Send response to host [03:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92205,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [03:46:04]free response buf [03:46:04]execute_script done [03:46:04]execute_script returns [03:46:04]free content buf [03:46:04]Sock 8.Close socket [03:46:04]Sock 8.Thread stoped [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:54]accept exits with 9 [03:46:54]New connection [03:46:54]New thread 3067256164 created [03:46:54]Thread 3067399524 joined [03:46:54]Waiting for new connection... [03:46:54] Sock 9.Parse request [03:46:54]Sock 9.Check first char [03:46:54]Sock 9.First char is OK [03:46:54]request: POST /json_proto HTTP/1.0 [03:46:54]Method: POST [03:46:54]URL: /json_proto [03:46:54]Method is POST - this is cgi request [03:46:54]url: /json_proto [03:46:54]query_string will be loaded in cgi processing [03:46:54]execute_cgi json_proto POST (null) [03:46:54]execute_cgi path=json_proto method=POST [03:46:54]POST find Content-Length [03:46:54]Host: 172.17.57.71:8080 [03:46:54]Content-Length: 934 [03:46:54]Content-Type: application/json [03:46:54] [03:46:54]POST finish read [03:46:54]Found Content-Length = 934 [03:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127137", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:54]execute_script... [03:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127137", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:54]POST & json_proto [03:46:54]process_json_proto [03:46:54]json parsed OK: [03:46:54]protocol is kg_v1.0 [03:46:54]action value=close_receipt [03:46:54]process_action close_receipt [03:46:54]cmd_close_receipt [03:46:54]MH_GetDate [03:46:54]Write to MH i2c: F0 00 00 EA 58 31 [03:46:54]Write i2c OK [03:46:54]MH_I2C_Read... [03:46:54]Read from MH i2c: F0 [03:46:54]MH_I2C_Read... [03:46:54]Read from MH i2c: F0 09 00 [03:46:54]MH_I2C_Read... [03:46:54]Read from MH i2c: F0 09 00 EA 58 00 B7 B5 E3 66 33 3A A4 66 66 [03:46:54]GetLastDocTimeStamp 1726199168 [03:46:54]current date 1726199223 [03:46:54]FM_GetShiftState [03:46:54]SAM_PROTO_GetShiftState [03:46:54]wFMCommunicate request_size=4 [03:46:54]MH_SAM_APDU [03:46:54]CAPDU: 80 13 01 00 [03:46:54]Write to MH i2c: E2 08 00 EB 58 80 13 01 00 00 00 00 00 C0 [03:46:54]Write i2c OK [03:46:54]MH_I2C_Read... [03:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:54]Read from MH i2c: E2 [03:46:54]MH_I2C_Read... [03:46:54]Read from MH i2c: E2 0E 00 [03:46:54]MH_I2C_Read... [03:46:54]Read from MH i2c: E2 0E 00 EB 58 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 4C [03:46:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:46:54]wFMCommunicate OK [03:46:54]SAM_PROTO_GetShiftState done [03:46:54]FM_GetShiftState done [03:46:54]opened in 1726186930 [03:46:54]opened+sec_in_day 1726273330 [03:46:54]quantity*price = 14400 [03:46:54]sum+1 = 14401 [03:46:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 249.00 НСП 1% : 2.20 НДС 12% : 26.44 Наличными: 249.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 14 13.09.2024 03:47 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92206 ФПД: 187110308897590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034703&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92206&fm=187110308897590&tin=02508201610067®Number=0000000000091423&sum=24900 0 [03:46:55]StoreToDocumentArchive [03:46:55]shift 505 fd 92206 [03:46:55]save to /storage/0505/doc_00092206 [03:46:55]save last doc name /storage/0505/doc_00092206 to /storage/kkm_last_doc_name [03:46:55]save OK [03:46:55]Clear old archive folders... [03:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=388 [03:46:55]tlvbuf is 0165E150 [03:46:55]SAM_PROTO_ClearQueue [03:46:55]wFMCommunicate request_size=4 [03:46:55]MH_SAM_APDU [03:46:55]CAPDU: 80 09 00 00 [03:46:55]Write to MH i2c: E2 08 00 F8 58 80 09 00 00 00 00 00 00 C2 [03:46:55]Write i2c OK [03:46:55]MH_I2C_Read... [03:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:55]Read from MH i2c: E2 [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 03 00 [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 03 00 F8 58 00 90 00 C4 [03:46:55]RAPDU: 90 00 [03:46:55]wFMCommunicate OK [03:46:55]SAM_PROTO_ClearQueue done [03:46:55]KKMCreateOFDPacket [03:46:55]OFDProtocolAddRootSTLVToBuf [03:46:55]FM_MakeSignedData [03:46:55]FM_MakeSignedData [03:46:55]SAM_PROTO_SignData [03:46:55]wFMCommunicate request_size=4 [03:46:55]MH_SAM_APDU [03:46:55]CAPDU: 80 0D 01 02 [03:46:55]Write to MH i2c: E2 08 00 F9 58 80 0D 01 02 00 00 00 00 CA [03:46:55]Write i2c OK [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 [03:46:55]MH_I2C_Read... [03:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:55]Read from MH i2c: E2 03 00 [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 03 00 F9 58 00 90 00 C5 [03:46:55]RAPDU: 90 00 [03:46:55]wFMCommunicate OK [03:46:55]wFMCommunicate request_size=255 [03:46:55]MH_SAM_APDU [03:46:55]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [03:46:55]Write to MH i2c: E2 02 01 FA 58 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 1D [03:46:55]Write i2c OK [03:46:55]MH_I2C_Read... [03:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:55]Read from MH i2c: E2 [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 03 00 [03:46:55]MH_I2C_Read... [03:46:55]Read from MH i2c: E2 03 00 FA 58 00 90 00 C6 [03:46:55]RAPDU: 90 00 [03:46:55]wFMCommunicate OK [03:46:55]wFMCommunicate request_size=147 [03:46:55]MH_SAM_APDU [03:46:55]CAPDU: 80 0D 02 02 8E F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 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 0E 00 00 00 F4 03 04 00 B7 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 68 01 00 35 04 06 00 AA 2D 03 7E E3 36 [03:46:55]Write to MH i2c: E2 96 00 FB 58 80 0D 02 02 8E 00 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 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 0E 00 00 00 F4 03 04 00 B7 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 68 01 00 35 04 06 00 AA 2D 03 7E E3 36 00 00 B8 [03:46:55]Write i2c OK [03:46:55]MH_I2C_Read... [03:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:56]Read from MH i2c: E2 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 03 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 03 00 FB 58 00 90 00 C7 [03:46:56]RAPDU: 90 00 [03:46:56]wFMCommunicate OK [03:46:56]wFMCommunicate request_size=4 [03:46:56]MH_SAM_APDU [03:46:56]CAPDU: 80 0D 03 02 [03:46:56]Write to MH i2c: E2 08 00 FC 58 80 0D 03 02 00 00 00 00 CF [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:56]Read from MH i2c: E2 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 0B 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 0B 00 FC 58 00 D2 EA 60 F7 9F F3 AF A8 90 00 CC [03:46:56]RAPDU: D2 EA 60 F7 9F F3 AF A8 90 00 [03:46:56]wFMCommunicate OK [03:46:56]SAM_PROTO_SignData done [03:46:56]FM_MakeSignedData done [03:46:56]CreateOFDProtocolMessage [03:46:56]wFMCommunicate request_size=4 [03:46:56]MH_SAM_APDU [03:46:56]CAPDU: 80 11 00 00 [03:46:56]Write to MH i2c: E2 08 00 FD 58 80 11 00 00 00 00 00 00 CF [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:56]Read from MH i2c: E2 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 17 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: E2 17 00 FD 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [03:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:46:56]wFMCommunicate OK [03:46:56]CreateOFDProtocolMessage done [03:46:56]OFDSenderStorePacket 92206 [03:46:56]StoreOFDPacket docnum=92206 [03:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 50 2A 90 01 CC B6 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 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 0E 00 00 00 F4 03 04 00 B7 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 68 01 00 35 04 06 00 AA 2D 03 7E E3 36 D2 EA 60 F7 9F F3 AF A8 [03:46:56]CheckFolder [03:46:56]dirname=/storage/ofd_packets [03:46:56]CheckFolder done [03:46:56]ProducePacketName [03:46:56]name=ofd_packets/00092206 [03:46:56]NVStorageSaveData ofd_packets/00092206 [03:46:56]File name is /storage/ofd_packets/00092206 [03:46:56]Write 438 bytes [03:46:56]NVStorageSaveData done [03:46:56]OFDSenderStorePacket done [03:46:56]KKMCreateOFDPacket done [03:46:56]NVStorageSaveData kkm_last_timestamp [03:46:56]File name is /storage/kkm_last_timestamp [03:46:56]Write 4 bytes [03:46:56]NVStorageSaveData done [03:46:56]ExternCall_PrintAddStr [03:46:56]wPrintStart [03:46:56]Write to MH i2c: 01 00 00 FE 58 56 [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 07 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 07 00 FE 58 00 00 00 00 00 FF 0F 6B [03:46:56]RasterBufferAndPrint [03:46:56]line Счет N : (3)127137 [03:46:56]line ИНН: 02508201610067 [03:46:56]line Контрольно-Кассовый Чек [03:46:56]line ПРОДАЖА [03:46:56]line Товар: 4605664012121 [03:46:56]line Пиво бут Амстердам 0,5 [03:46:56]line 1.000 * 144.00 [03:46:56]line = 144.00 [03:46:56]line НДС 12% НСП 1% [03:46:56]line > о реализуемом товаре [03:46:56]line Товар: 5449000054227 [03:46:56]line Напиток Кока-Кола 1л [03:46:56]line 1.000 * 105.00 [03:46:56]line = 105.00 [03:46:56]line НДС 12% НСП 1% [03:46:56]line > о реализуемом товаре [03:46:56]line ИТОГО: 249.00 [03:46:56]line НСП 1% : 2.20 [03:46:56]line НДС 12% : 26.44 [03:46:56]line Наличными: 249.00 [03:46:56]line Безнал.: 0.00 [03:46:56]line Место: АЗС № 5 "Партнер Нефть" [03:46:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:46:56]line СНО: Общий режим [03:46:56]line Чек 14 13.09.2024 03:47 [03:46:56]line Смена: 505 ФФД: 1.0 [03:46:56]line ЗНМ: 03000000022 [03:46:56]line РНМ: 0000000000091423 [03:46:56]line Версия ККМ: 001 [03:46:56]line ФМ: 0000000000874692 [03:46:56]line ФД: 92206 [03:46:56]line ФПД: 187110308897590 [03:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T034703&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92206&fm=187110308897590&tin=02508201610067®Number=0000000000091423&sum=24900 [03:46:56]line 0 [03:46:56]written 0, free lines is 4095 [03:46:56]OFD Sender: Processing packet 92206 [packets to send 63, broken 62] [03:46:56]ProducePacketName [03:46:56]name=ofd_packets/00092206 [03:46:56]OFD Sender: To server: pG, [03:46:56]CommunicateWithHost lk.salyk.kg:30040 [03:46:56]ConnectInit lk.salyk.kg [03:46:56]Connected sock=8 [03:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 50 2A 90 01 CC B6 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 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 0E 00 00 00 F4 03 04 00 B7 B5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 68 01 00 35 04 06 00 AA 2D 03 7E E3 36 D2 EA 60 F7 9F F3 AF A8 [03:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9F AC 47 00 27 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 68 01 00 F4 03 04 00 37 5E E3 66 B6 04 01 00 00 E3 EE 93 3B BD AD 61 A5 [03:46:56]CommunicateWithHost err = 0 [03:46:56]CheckOFDResponse [03:46:56]1017 (14) - 77093643461234 [03:46:56]1041 (16) - 0000000000874692 [03:46:56]1040 (4) - 92206 [03:46:56]1012 (4) - 12.09.2024 21:33 [03:46:56]1206 (1) - 0 [03:46:56]OFD Sender: Remove packet 92206 [03:46:56]ProducePacketName [03:46:56]name=ofd_packets/00092206 [03:46:56]NVStorageDeleteData [03:46:56]Write to MH i2c: 01 00 00 2C 59 85 [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 07 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: 01 07 00 2C 59 00 00 00 00 00 E1 0C 79 [03:46:56]RasterBufferAndPrint [03:46:56]line [03:46:56]line [03:46:56]line [03:46:56]line [03:46:56]line [03:46:56]written 0, free lines is 3303 [03:46:56]MH_Cut [03:46:56]Write to MH i2c: D1 01 00 33 59 01 5E [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: D1 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: D1 01 00 [03:46:56]MH_I2C_Read... [03:46:56]Read from MH i2c: D1 01 00 33 59 00 5D [03:46:56]Write to MH i2c: 01 00 00 34 59 8D [03:46:56]Write i2c OK [03:46:56]MH_I2C_Read... [03:46:56]OFD Sender: No OFD packet to send [03:46:57]*** Cut start [03:46:57]*** Purtial cut [03:46:57]*** Stage 1: CUTSNS_PIN = 1 [03:46:59]Read from MH i2c: 01 [03:46:59]MH_I2C_Read... [03:46:59]*** Stop cut motor [03:46:59]*** Cut end [03:46:59]Read from MH i2c: 01 07 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: 01 07 00 34 59 00 00 00 00 00 FF 0F A2 [03:46:59]process_action close_receipt done [03:46:59]requested_data is exist [03:46:59]produce_requested_data [03:46:59]requested_item fm.sn is exist - process it [03:46:59]wFMCommunicate request_size=4 [03:46:59]MH_SAM_APDU [03:46:59]CAPDU: 80 11 00 00 [03:46:59]Write to MH i2c: E2 08 00 35 59 80 11 00 00 00 00 00 00 08 [03:46:59]Write i2c OK [03:46:59]MH_I2C_Read... [03:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:59]Read from MH i2c: E2 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 17 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 17 00 35 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5F [03:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:46:59]wFMCommunicate OK [03:46:59]requested_item fd.num is exist - process it [03:46:59]SAM_PROTO_GetFieldsCounters [03:46:59]wFMCommunicate request_size=4 [03:46:59]MH_SAM_APDU [03:46:59]CAPDU: 80 13 00 00 [03:46:59]Write to MH i2c: E2 08 00 36 59 80 13 00 00 00 00 00 00 0B [03:46:59]Write i2c OK [03:46:59]MH_I2C_Read... [03:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:59]Read from MH i2c: E2 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 62 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 62 00 36 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [03:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:59]wFMCommunicate OK [03:46:59]SAM_PROTO_GetFieldsCounters done [03:46:59]requested_item shift.num is exist - process it [03:46:59]requested_item shift.opened is exist - process it [03:46:59]req_shift_opened [03:46:59]FM_GetShiftState [03:46:59]SAM_PROTO_GetShiftState [03:46:59]wFMCommunicate request_size=4 [03:46:59]MH_SAM_APDU [03:46:59]CAPDU: 80 13 01 00 [03:46:59]Write to MH i2c: E2 08 00 37 59 80 13 01 00 00 00 00 00 0D [03:46:59]Write i2c OK [03:46:59]MH_I2C_Read... [03:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:59]Read from MH i2c: E2 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 0E 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 0E 00 37 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 99 [03:46:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [03:46:59]wFMCommunicate OK [03:46:59]SAM_PROTO_GetShiftState done [03:46:59]FM_GetShiftState done [03:46:59]req_shift_opened done [03:46:59]requested_item shift.open_date is exist - process it [03:46:59]req_shift_open_date [03:46:59]req_shift_open_date done [03:46:59]produce_requested_data done [03:46:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92206,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [03:46:59]process_action_free close_receipt [03:46:59]json_value_free [03:46:59]json_value_free done [03:46:59]process_json_proto returns [03:46:59]Send response to host [03:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92206,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [03:46:59]free response buf [03:46:59]execute_script done [03:46:59]execute_script returns [03:46:59]free content buf [03:46:59]Sock 9.Close socket [03:46:59]Sock 9.Thread stoped [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]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:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:48]accept exits with 10 [05:14:48]New connection [05:14:48]New thread 3067399524 created [05:14:48]Thread 3067256164 joined [05:14:48]Waiting for new connection... [05:14:48] Sock 10.Parse request [05:14:48]Sock 10.Check first char [05:14:48]Sock 10.First char is OK [05:14:48]request: POST /json_proto HTTP/1.0 [05:14:48]Method: POST [05:14:48]URL: /json_proto [05:14:48]Method is POST - this is cgi request [05:14:48]url: /json_proto [05:14:48]query_string will be loaded in cgi processing [05:14:48]execute_cgi json_proto POST (null) [05:14:48]execute_cgi path=json_proto method=POST [05:14:48]POST find Content-Length [05:14:48]Host: 172.17.57.71:8080 [05:14:48]Content-Length: 620 [05:14:48]Content-Type: application/json [05:14:48] [05:14:48]POST finish read [05:14:48]Found Content-Length = 620 [05:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127138", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:48]execute_script... [05:14: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 : (3)127138", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:48]POST & json_proto [05:14:48]process_json_proto [05:14:48]json parsed OK: [05:14:48]protocol is kg_v1.0 [05:14:48]action value=close_receipt [05:14:48]process_action close_receipt [05:14:48]cmd_close_receipt [05:14:48]MH_GetDate [05:14:48]Write to MH i2c: F0 00 00 38 59 80 [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 09 00 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 09 00 38 59 00 52 CA E3 66 33 3A A4 66 65 [05:14:48]GetLastDocTimeStamp 1726199223 [05:14:48]current date 1726204498 [05:14:48]FM_GetShiftState [05:14:48]SAM_PROTO_GetShiftState [05:14:48]wFMCommunicate request_size=4 [05:14:48]MH_SAM_APDU [05:14:48]CAPDU: 80 13 01 00 [05:14:48]Write to MH i2c: E2 08 00 39 59 80 13 01 00 00 00 00 00 0F [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0E 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0E 00 39 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9B [05:14:49]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [05:14:49]wFMCommunicate OK [05:14:49]SAM_PROTO_GetShiftState done [05:14:49]FM_GetShiftState done [05:14:49]opened in 1726186930 [05:14:49]opened+sec_in_day 1726273330 [05:14:49]quantity*price = 15000 [05:14:49]sum+1 = 15001 [05:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 15 13.09.2024 05:14 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92207 ФПД: 49213942876079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T051458&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92207&fm=49213942876079&tin=02508201610067®Number=0000000000091423&sum=15000 0 [05:14:50]StoreToDocumentArchive [05:14:50]shift 505 fd 92207 [05:14:50]save to /storage/0505/doc_00092207 [05:14:50]save last doc name /storage/0505/doc_00092207 to /storage/kkm_last_doc_name [05:14:50]save OK [05:14:50]Clear old archive folders... [05:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:14:50]tlvbuf is 0160BF60 [05:14:50]SAM_PROTO_ClearQueue [05:14:50]wFMCommunicate request_size=4 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 09 00 00 [05:14:50]Write to MH i2c: E2 08 00 46 59 80 09 00 00 00 00 00 00 11 [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 46 59 00 90 00 13 [05:14:50]RAPDU: 90 00 [05:14:50]wFMCommunicate OK [05:14:50]SAM_PROTO_ClearQueue done [05:14:50]KKMCreateOFDPacket [05:14:50]OFDProtocolAddRootSTLVToBuf [05:14:50]FM_MakeSignedData [05:14:50]FM_MakeSignedData [05:14:50]SAM_PROTO_SignData [05:14:50]wFMCommunicate request_size=4 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 0D 01 02 [05:14:50]Write to MH i2c: E2 08 00 47 59 80 0D 01 02 00 00 00 00 19 [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 47 59 00 90 00 14 [05:14:50]RAPDU: 90 00 [05:14:50]wFMCommunicate OK [05:14:50]wFMCommunicate request_size=255 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 52 CA E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [05:14:50]Write to MH i2c: E2 02 01 48 59 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 52 CA E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 09 [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 48 59 00 90 00 15 [05:14:50]RAPDU: 90 00 [05:14:50]wFMCommunicate OK [05:14:50]wFMCommunicate request_size=31 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 2F 68 01 00 35 04 06 00 2C C2 83 95 47 AF [05:14:50]Write to MH i2c: E2 22 00 49 59 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 2F 68 01 00 35 04 06 00 2C C2 83 95 47 AF 00 00 DF [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 03 00 49 59 00 90 00 16 [05:14:50]RAPDU: 90 00 [05:14:50]wFMCommunicate OK [05:14:50]wFMCommunicate request_size=4 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 0D 03 02 [05:14:50]Write to MH i2c: E2 08 00 4A 59 80 0D 03 02 00 00 00 00 1E [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 0B 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 0B 00 4A 59 00 B1 80 50 54 CF 3C 2C 7A 90 00 A5 [05:14:50]RAPDU: B1 80 50 54 CF 3C 2C 7A 90 00 [05:14:50]wFMCommunicate OK [05:14:50]SAM_PROTO_SignData done [05:14:50]FM_MakeSignedData done [05:14:50]CreateOFDProtocolMessage [05:14:50]wFMCommunicate request_size=4 [05:14:50]MH_SAM_APDU [05:14:50]CAPDU: 80 11 00 00 [05:14:50]Write to MH i2c: E2 08 00 4B 59 80 11 00 00 00 00 00 00 1E [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:50]Read from MH i2c: E2 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 17 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: E2 17 00 4B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 75 [05:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:14:50]wFMCommunicate OK [05:14:50]CreateOFDProtocolMessage done [05:14:50]OFDSenderStorePacket 92207 [05:14:50]StoreOFDPacket docnum=92207 [05:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 DB 28 1C 01 D6 B0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 52 CA E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 68 01 00 35 04 06 00 2C C2 83 95 47 AF B1 80 50 54 CF 3C 2C 7A [05:14:50]CheckFolder [05:14:50]dirname=/storage/ofd_packets [05:14:50]CheckFolder done [05:14:50]ProducePacketName [05:14:50]name=ofd_packets/00092207 [05:14:50]NVStorageSaveData ofd_packets/00092207 [05:14:50]File name is /storage/ofd_packets/00092207 [05:14:50]Write 322 bytes [05:14:50]NVStorageSaveData done [05:14:50]OFDSenderStorePacket done [05:14:50]KKMCreateOFDPacket done [05:14:50]NVStorageSaveData kkm_last_timestamp [05:14:50]File name is /storage/kkm_last_timestamp [05:14:50]Write 4 bytes [05:14:50]NVStorageSaveData done [05:14:50]ExternCall_PrintAddStr [05:14:50]wPrintStart [05:14:50]Write to MH i2c: 01 00 00 4C 59 A5 [05:14:50]OFD Sender: Processing packet 92207 [packets to send 63, broken 62] [05:14:50]ProducePacketName [05:14:50]name=ofd_packets/00092207 [05:14:50]OFD Sender: To server: pG, [05:14:50]CommunicateWithHost lk.salyk.kg:30040 [05:14:50]ConnectInit lk.salyk.kg [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 07 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 07 00 4C 59 00 00 00 00 00 FF 0F BA [05:14:50]RasterBufferAndPrint [05:14:50]line Счет N : (3)127138 [05:14:50]line ИНН: 02508201610067 [05:14:50]line Контрольно-Кассовый Чек [05:14:50]line ПРОДАЖА [05:14:50]line Товар: 4640030091607 [05:14:50]line Сигареты ESSE Exchange [05:14:50]line 1.000 * 150.00 [05:14:50]line = 150.00 [05:14:50]line НДС 12% НСП 1% [05:14:50]line > о реализуемом товаре [05:14:50]line ИТОГО: 150.00 [05:14:50]line НСП 1% : 1.33 [05:14:50]line НДС 12% : 15.93 [05:14:50]line Наличными: 150.00 [05:14:50]line Безнал.: 0.00 [05:14:50]line Место: АЗС № 5 "Партнер Нефть" [05:14:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [05:14:50]line СНО: Общий режим [05:14:50]line Чек 15 13.09.2024 05:14 [05:14:50]line Смена: 505 ФФД: 1.0 [05:14:50]line ЗНМ: 03000000022 [05:14:50]line РНМ: 0000000000091423 [05:14:50]line Версия ККМ: 001 [05:14:50]line ФМ: 0000000000874692 [05:14:50]line ФД: 92207 [05:14:50]line ФПД: 49213942876079 [05:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T051458&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92207&fm=49213942876079&tin=02508201610067®Number=0000000000091423&sum=15000 [05:14:51]Connected sock=9 [05:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 DB 28 1C 01 D6 B0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 52 CA E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 68 01 00 35 04 06 00 2C C2 83 95 47 AF B1 80 50 54 CF 3C 2C 7A [05:14:51]line 0 [05:14:51]written 0, free lines is 4095 [05:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 58 46 47 00 3A 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 68 01 00 F4 03 04 00 D2 72 E3 66 B6 04 01 00 00 42 3A AD FA 1F D3 DC B8 [05:14:51]CommunicateWithHost err = 0 [05:14:51]CheckOFDResponse [05:14:51]1017 (14) - 77093643461234 [05:14:51]1041 (16) - 0000000000874692 [05:14:51]1040 (4) - 92207 [05:14:51]1012 (4) - 12.09.2024 23:01 [05:14:51]1206 (1) - 0 [05:14:51]OFD Sender: Remove packet 92207 [05:14:51]ProducePacketName [05:14:51]name=ofd_packets/00092207 [05:14:51]NVStorageDeleteData [05:14:51]Write to MH i2c: 01 00 00 74 59 CD [05:14:51]Write i2c OK [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: 01 [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: 01 07 00 [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: 01 07 00 74 59 00 00 00 00 00 1F 0D 00 [05:14:51]RasterBufferAndPrint [05:14:51]line [05:14:51]line [05:14:51]line [05:14:51]line [05:14:51]line [05:14:51]written 0, free lines is 3365 [05:14:51]MH_Cut [05:14:51]Write to MH i2c: D1 01 00 7B 59 01 A6 [05:14:51]Write i2c OK [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: D1 [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: D1 01 00 [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: D1 01 00 7B 59 00 A5 [05:14:51]Write to MH i2c: 01 00 00 7C 59 D5 [05:14:51]Write i2c OK [05:14:51]MH_I2C_Read... [05:14:51]OFD Sender: No OFD packet to send [05:14:52]*** Cut start [05:14:52]*** Purtial cut [05:14:52]*** Stage 1: CUTSNS_PIN = 1 [05:14:54]Read from MH i2c: 01 [05:14:54]MH_I2C_Read... [05:14:54]*** Stop cut motor [05:14:54]*** Cut end [05:14:54]Read from MH i2c: 01 07 00 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: 01 07 00 7C 59 00 00 00 00 00 FF 0F EA [05:14:54]process_action close_receipt done [05:14:54]requested_data is exist [05:14:54]produce_requested_data [05:14:54]requested_item fm.sn is exist - process it [05:14:54]wFMCommunicate request_size=4 [05:14:54]MH_SAM_APDU [05:14:54]CAPDU: 80 11 00 00 [05:14:54]Write to MH i2c: E2 08 00 7D 59 80 11 00 00 00 00 00 00 50 [05:14:54]Write i2c OK [05:14:54]MH_I2C_Read... [05:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:54]Read from MH i2c: E2 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 17 00 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 17 00 7D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A7 [05:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:14:54]wFMCommunicate OK [05:14:54]requested_item fd.num is exist - process it [05:14:54]SAM_PROTO_GetFieldsCounters [05:14:54]wFMCommunicate request_size=4 [05:14:54]MH_SAM_APDU [05:14:54]CAPDU: 80 13 00 00 [05:14:54]Write to MH i2c: E2 08 00 7E 59 80 13 00 00 00 00 00 00 53 [05:14:54]Write i2c OK [05:14:54]MH_I2C_Read... [05:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:54]Read from MH i2c: E2 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 62 00 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 62 00 7E 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [05:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:14:54]wFMCommunicate OK [05:14:54]SAM_PROTO_GetFieldsCounters done [05:14:54]requested_item shift.num is exist - process it [05:14:54]requested_item shift.opened is exist - process it [05:14:54]req_shift_opened [05:14:54]FM_GetShiftState [05:14:54]SAM_PROTO_GetShiftState [05:14:54]wFMCommunicate request_size=4 [05:14:54]MH_SAM_APDU [05:14:54]CAPDU: 80 13 01 00 [05:14:54]Write to MH i2c: E2 08 00 7F 59 80 13 01 00 00 00 00 00 55 [05:14:54]Write i2c OK [05:14:54]MH_I2C_Read... [05:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:54]Read from MH i2c: E2 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 0E 00 [05:14:54]MH_I2C_Read... [05:14:54]Read from MH i2c: E2 0E 00 7F 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E1 [05:14:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [05:14:54]wFMCommunicate OK [05:14:54]SAM_PROTO_GetShiftState done [05:14:54]FM_GetShiftState done [05:14:54]req_shift_opened done [05:14:54]requested_item shift.open_date is exist - process it [05:14:54]req_shift_open_date [05:14:54]req_shift_open_date done [05:14:54]produce_requested_data done [05:14:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92207,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [05:14:54]process_action_free close_receipt [05:14:54]json_value_free [05:14:54]json_value_free done [05:14:54]process_json_proto returns [05:14:54]Send response to host [05:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92207,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [05:14:54]free response buf [05:14:54]execute_script done [05:14:54]execute_script returns [05:14:54]free content buf [05:14:54]Sock 10.Close socket [05:14:54]Sock 10.Thread stoped [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]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: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:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53: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:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16: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:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:08]accept exits with 8 [06:38:08]New connection [06:38:08]New thread 3067256164 created [06:38:08]Thread 3067399524 joined [06:38:08]Waiting for new connection... [06:38:08] Sock 8.Parse request [06:38:08]Sock 8.Check first char [06:38:08]Sock 8.First char is OK [06:38:08]request: POST /json_proto HTTP/1.0 [06:38:08]Method: POST [06:38:08]URL: /json_proto [06:38:08]Method is POST - this is cgi request [06:38:08]url: /json_proto [06:38:08]query_string will be loaded in cgi processing [06:38:08]execute_cgi json_proto POST (null) [06:38:08]execute_cgi path=json_proto method=POST [06:38:08]POST find Content-Length [06:38:08]Host: 172.17.57.71:8080 [06:38:08]Content-Length: 786 [06:38:08]Content-Type: application/json [06:38:08] [06:38:08]POST finish read [06:38:08]Found Content-Length = 786 [06:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127139", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:08]execute_script... [06:38: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 : (3)127139", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:08]POST & json_proto [06:38:08]process_json_proto [06:38:08]json parsed OK: [06:38:08]protocol is kg_v1.0 [06:38:08]action value=close_receipt [06:38:08]process_action close_receipt [06:38:08]cmd_close_receipt [06:38:08]MH_GetDate [06:38:08]Write to MH i2c: F0 00 00 80 59 C8 [06:38:08]Write i2c OK [06:38:08]MH_I2C_Read... [06:38:08]Read from MH i2c: F0 [06:38:08]MH_I2C_Read... [06:38:08]Read from MH i2c: F0 09 00 [06:38:08]MH_I2C_Read... [06:38:08]Read from MH i2c: F0 09 00 80 59 00 DA DD E3 66 33 3A A4 66 48 [06:38:08]GetLastDocTimeStamp 1726204498 [06:38:08]current date 1726209498 [06:38:08]FM_GetShiftState [06:38:08]SAM_PROTO_GetShiftState [06:38:08]wFMCommunicate request_size=4 [06:38:08]MH_SAM_APDU [06:38:08]CAPDU: 80 13 01 00 [06:38:08]Write to MH i2c: E2 08 00 81 59 80 13 01 00 00 00 00 00 57 [06:38:08]Write i2c OK [06:38:08]MH_I2C_Read... [06:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:08]Read from MH i2c: E2 [06:38:08]MH_I2C_Read... [06:38:08]Read from MH i2c: E2 0E 00 [06:38:08]MH_I2C_Read... [06:38:08]Read from MH i2c: E2 0E 00 81 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E3 [06:38:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [06:38:08]wFMCommunicate OK [06:38:08]SAM_PROTO_GetShiftState done [06:38:08]FM_GetShiftState done [06:38:08]opened in 1726186930 [06:38:08]opened+sec_in_day 1726273330 [06:38:08]quantity*price = 9000 [06:38:08]sum+1 = 9001 [06:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 16 13.09.2024 06:38 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92208 ФПД: 152258890618553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T063818&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92208&fm=152258890618553&tin=02508201610067®Number=0000000000091423&sum=9000 0 [06:38:10]StoreToDocumentArchive [06:38:10]shift 505 fd 92208 [06:38:10]save to /storage/0505/doc_00092208 [06:38:10]save last doc name /storage/0505/doc_00092208 to /storage/kkm_last_doc_name [06:38:10]save OK [06:38:10]Clear old archive folders... [06:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=279 [06:38:10]tlvbuf is 0165E360 [06:38:10]SAM_PROTO_ClearQueue [06:38:10]wFMCommunicate request_size=4 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 09 00 00 [06:38:10]Write to MH i2c: E2 08 00 8E 59 80 09 00 00 00 00 00 00 59 [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 8E 59 00 90 00 5B [06:38:10]RAPDU: 90 00 [06:38:10]wFMCommunicate OK [06:38:10]SAM_PROTO_ClearQueue done [06:38:10]KKMCreateOFDPacket [06:38:10]OFDProtocolAddRootSTLVToBuf [06:38:10]FM_MakeSignedData [06:38:10]FM_MakeSignedData [06:38:10]SAM_PROTO_SignData [06:38:10]wFMCommunicate request_size=4 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 0D 01 02 [06:38:10]Write to MH i2c: E2 08 00 8F 59 80 0D 01 02 00 00 00 00 61 [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 8F 59 00 90 00 5C [06:38:10]RAPDU: 90 00 [06:38:10]wFMCommunicate OK [06:38:10]wFMCommunicate request_size=255 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA DD E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 [06:38:10]Write to MH i2c: E2 02 01 90 59 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA DD E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 00 00 25 [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 90 59 00 90 00 5D [06:38:10]RAPDU: 90 00 [06:38:10]wFMCommunicate OK [06:38:10]wFMCommunicate request_size=38 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 68 01 00 35 04 06 00 8A 7A 89 16 D6 B9 [06:38:10]Write to MH i2c: E2 29 00 91 59 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 68 01 00 35 04 06 00 8A 7A 89 16 D6 B9 00 00 BC [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 03 00 91 59 00 90 00 5E [06:38:10]RAPDU: 90 00 [06:38:10]wFMCommunicate OK [06:38:10]wFMCommunicate request_size=4 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 0D 03 02 [06:38:10]Write to MH i2c: E2 08 00 92 59 80 0D 03 02 00 00 00 00 66 [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 0B 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 0B 00 92 59 00 03 1C 79 F9 B6 4E 0F 8B 90 00 96 [06:38:10]RAPDU: 03 1C 79 F9 B6 4E 0F 8B 90 00 [06:38:10]wFMCommunicate OK [06:38:10]SAM_PROTO_SignData done [06:38:10]FM_MakeSignedData done [06:38:10]CreateOFDProtocolMessage [06:38:10]wFMCommunicate request_size=4 [06:38:10]MH_SAM_APDU [06:38:10]CAPDU: 80 11 00 00 [06:38:10]Write to MH i2c: E2 08 00 93 59 80 11 00 00 00 00 00 00 66 [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:10]Read from MH i2c: E2 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 17 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: E2 17 00 93 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BD [06:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:38:10]wFMCommunicate OK [06:38:10]CreateOFDProtocolMessage done [06:38:10]OFDSenderStorePacket 92208 [06:38:10]StoreOFDPacket docnum=92208 [06:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 B9 DA 23 01 64 3F 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA DD E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 68 01 00 35 04 06 00 8A 7A 89 16 D6 B9 03 1C 79 F9 B6 4E 0F 8B [06:38:10]CheckFolder [06:38:10]dirname=/storage/ofd_packets [06:38:10]CheckFolder done [06:38:10]ProducePacketName [06:38:10]name=ofd_packets/00092208 [06:38:10]NVStorageSaveData ofd_packets/00092208 [06:38:10]File name is /storage/ofd_packets/00092208 [06:38:10]Write 329 bytes [06:38:10]NVStorageSaveData done [06:38:10]OFDSenderStorePacket done [06:38:10]KKMCreateOFDPacket done [06:38:10]NVStorageSaveData kkm_last_timestamp [06:38:10]File name is /storage/kkm_last_timestamp [06:38:10]Write 4 bytes [06:38:10]NVStorageSaveData done [06:38:10]ExternCall_PrintAddStr [06:38:10]wPrintStart [06:38:10]Write to MH i2c: 01 00 00 94 59 ED [06:38:10]Write i2c OK [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: 01 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: 01 07 00 [06:38:10]MH_I2C_Read... [06:38:10]Read from MH i2c: 01 07 00 94 59 00 00 00 00 00 FF 0F 02 [06:38:10]RasterBufferAndPrint [06:38:10]line Счет N : (3)127139 [06:38:10]line ИНН: 02508201610067 [06:38:10]line Контрольно-Кассовый Чек [06:38:10]line ПРОДАЖА [06:38:10]line Товар: 4650243871781 [06:38:10]line Gorilla эн нап Orange 0,45 ж/б [06:38:10]line 1.000 * 90.00 [06:38:10]line = 90.00 [06:38:10]line НДС 12% НСП 1% [06:38:10]line > о реализуемом товаре [06:38:10]line ИТОГО: 90.00 [06:38:10]line НСП 1% : 0.80 [06:38:10]line НДС 12% : 9.56 [06:38:10]line Наличными: 0.00 [06:38:10]line Безнал.: 90.00 [06:38:10]line Место: АЗС № 5 "Партнер Нефть" [06:38:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [06:38:10]line СНО: Общий режим [06:38:10]line Чек 16 13.09.2024 06:38 [06:38:10]line Смена: 505 ФФД: 1.0 [06:38:10]line ЗНМ: 03000000022 [06:38:10]line РНМ: 0000000000091423 [06:38:10]line Версия ККМ: 001 [06:38:10]line Платежная система: О! деньги [06:38:10]line ФМ: 0000000000874692 [06:38:10]line ФД: 92208 [06:38:10]line ФПД: 152258890618553 [06:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T063818&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92208&fm=152258890618553&tin=02508201610067®Number=0000000000091423&sum=9000 [06:38:10]OFD Sender: Processing packet 92208 [packets to send 63, broken 62] [06:38:10]ProducePacketName [06:38:10]name=ofd_packets/00092208 [06:38:10]OFD Sender: To server: pG, [06:38:10]CommunicateWithHost lk.salyk.kg:30040 [06:38:10]ConnectInit lk.salyk.kg [06:38:10]line 0 [06:38:10]written 0, free lines is 4095 [06:38:11]Connected sock=10 [06:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 B9 DA 23 01 64 3F 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA DD E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 68 01 00 35 04 06 00 8A 7A 89 16 D6 B9 03 1C 79 F9 B6 4E 0F 8B [06:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D7 87 47 00 E6 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 68 01 00 F4 03 04 00 5A 86 E3 66 B6 04 01 00 00 40 10 AD 4A F7 BE AA EB [06:38:11]CommunicateWithHost err = 0 [06:38:11]CheckOFDResponse [06:38:11]1017 (14) - 77093643461234 [06:38:11]1041 (16) - 0000000000874692 [06:38:11]1040 (4) - 92208 [06:38:11]1012 (4) - 13.09.2024 00:24 [06:38:11]1206 (1) - 0 [06:38:11]OFD Sender: Remove packet 92208 [06:38:11]ProducePacketName [06:38:11]name=ofd_packets/00092208 [06:38:11]NVStorageDeleteData [06:38:11]Write to MH i2c: 01 00 00 BE 59 17 [06:38:11]Write i2c OK [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: 01 [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: 01 07 00 [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: 01 07 00 BE 59 00 00 00 00 00 13 0D 3E [06:38:11]RasterBufferAndPrint [06:38:11]line [06:38:11]line [06:38:11]line [06:38:11]line [06:38:11]line [06:38:11]written 0, free lines is 3356 [06:38:11]MH_Cut [06:38:11]Write to MH i2c: D1 01 00 C5 59 01 F0 [06:38:11]Write i2c OK [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: D1 [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: D1 01 00 [06:38:11]MH_I2C_Read... [06:38:11]Read from MH i2c: D1 01 00 C5 59 00 EF [06:38:11]Write to MH i2c: 01 00 00 C6 59 1F [06:38:11]Write i2c OK [06:38:11]MH_I2C_Read... [06:38:11]OFD Sender: No OFD packet to send [06:38:12]*** Cut start [06:38:12]*** Purtial cut [06:38:12]*** Stage 1: CUTSNS_PIN = 1 [06:38:14]Read from MH i2c: 01 [06:38:14]MH_I2C_Read... [06:38:14]*** Stop cut motor [06:38:14]*** Cut end [06:38:14]Read from MH i2c: 01 07 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 07 00 C6 59 00 00 00 00 00 FF 0F 34 [06:38:14]process_action close_receipt done [06:38:14]requested_data is exist [06:38:14]produce_requested_data [06:38:14]requested_item fm.sn is exist - process it [06:38:14]wFMCommunicate request_size=4 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 11 00 00 [06:38:14]Write to MH i2c: E2 08 00 C7 59 80 11 00 00 00 00 00 00 9A [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 17 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 17 00 C7 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F1 [06:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:38:14]wFMCommunicate OK [06:38:14]requested_item fd.num is exist - process it [06:38:14]SAM_PROTO_GetFieldsCounters [06:38:14]wFMCommunicate request_size=4 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 13 00 00 [06:38:14]Write to MH i2c: E2 08 00 C8 59 80 13 00 00 00 00 00 00 9D [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 62 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 62 00 C8 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [06:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:14]wFMCommunicate OK [06:38:14]SAM_PROTO_GetFieldsCounters done [06:38:14]requested_item shift.num is exist - process it [06:38:14]requested_item shift.opened is exist - process it [06:38:14]req_shift_opened [06:38:14]FM_GetShiftState [06:38:14]SAM_PROTO_GetShiftState [06:38:14]wFMCommunicate request_size=4 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 13 01 00 [06:38:14]Write to MH i2c: E2 08 00 C9 59 80 13 01 00 00 00 00 00 9F [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 0E 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 0E 00 C9 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2B [06:38:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [06:38:14]wFMCommunicate OK [06:38:14]SAM_PROTO_GetShiftState done [06:38:14]FM_GetShiftState done [06:38:14]req_shift_opened done [06:38:14]requested_item shift.open_date is exist - process it [06:38:14]req_shift_open_date [06:38:14]req_shift_open_date done [06:38:14]produce_requested_data done [06:38:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92208,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [06:38:14]process_action_free close_receipt [06:38:14]json_value_free [06:38:14]json_value_free done [06:38:14]process_json_proto returns [06:38:14]Send response to host [06:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92208,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [06:38:14]free response buf [06:38:14]execute_script done [06:38:14]execute_script returns [06:38:14]free content buf [06:38:14]Sock 8.Close socket [06:38:14]Sock 8.Thread stoped [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:12]accept exits with 9 [06:39:12]New connection [06:39:12]New thread 3067399524 created [06:39:12]Thread 3067256164 joined [06:39:12]Waiting for new connection... [06:39:12] Sock 9.Parse request [06:39:12]Sock 9.Check first char [06:39:12]Sock 9.First char is OK [06:39:12]request: POST /json_proto HTTP/1.0 [06:39:12]Method: POST [06:39:12]URL: /json_proto [06:39:12]Method is POST - this is cgi request [06:39:12]url: /json_proto [06:39:12]query_string will be loaded in cgi processing [06:39:12]execute_cgi json_proto POST (null) [06:39:12]execute_cgi path=json_proto method=POST [06:39:12]POST find Content-Length [06:39:12]Host: 172.17.57.71:8080 [06:39:12]Content-Length: 924 [06:39:12]Content-Type: application/json [06:39:12] [06:39:12]POST finish read [06:39:12]Found Content-Length = 924 [06:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127140", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:12]execute_script... [06:39: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 : (3)127140", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:12]POST & json_proto [06:39:12]process_json_proto [06:39:12]json parsed OK: [06:39:12]protocol is kg_v1.0 [06:39:12]action value=close_receipt [06:39:12]process_action close_receipt [06:39:12]cmd_close_receipt [06:39:12]MH_GetDate [06:39:12]Write to MH i2c: F0 00 00 CA 59 12 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: F0 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: F0 09 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: F0 09 00 CA 59 00 1A DE E3 66 33 3A A4 66 D3 [06:39:12]GetLastDocTimeStamp 1726209498 [06:39:12]current date 1726209562 [06:39:12]FM_GetShiftState [06:39:12]SAM_PROTO_GetShiftState [06:39:12]wFMCommunicate request_size=4 [06:39:12]MH_SAM_APDU [06:39:12]CAPDU: 80 13 01 00 [06:39:12]Write to MH i2c: E2 08 00 CB 59 80 13 01 00 00 00 00 00 A1 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 0E 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 0E 00 CB 59 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2D [06:39:12]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [06:39:12]wFMCommunicate OK [06:39:12]SAM_PROTO_GetShiftState done [06:39:12]FM_GetShiftState done [06:39:12]opened in 1726186930 [06:39:12]opened+sec_in_day 1726273330 [06:39:12]quantity*price = 10500 [06:39:12]sum+1 = 10501 [06:39:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 17 13.09.2024 06:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92209 ФПД: 161500590984751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T063922&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92209&fm=161500590984751&tin=02508201610067®Number=0000000000091423&sum=16500 0 [06:39:14]StoreToDocumentArchive [06:39:14]shift 505 fd 92209 [06:39:14]save to /storage/0505/doc_00092209 [06:39:14]save last doc name /storage/0505/doc_00092209 to /storage/kkm_last_doc_name [06:39:14]save OK [06:39:14]Clear old archive folders... [06:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=388 [06:39:14]tlvbuf is 01783F90 [06:39:14]SAM_PROTO_ClearQueue [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 09 00 00 [06:39:14]Write to MH i2c: E2 08 00 D8 59 80 09 00 00 00 00 00 00 A3 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 D8 59 00 90 00 A5 [06:39:14]RAPDU: 90 00 [06:39:14]wFMCommunicate OK [06:39:14]SAM_PROTO_ClearQueue done [06:39:14]KKMCreateOFDPacket [06:39:14]OFDProtocolAddRootSTLVToBuf [06:39:14]FM_MakeSignedData [06:39:14]FM_MakeSignedData [06:39:14]SAM_PROTO_SignData [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 0D 01 02 [06:39:14]Write to MH i2c: E2 08 00 D9 59 80 0D 01 02 00 00 00 00 AB [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 D9 59 00 90 00 A6 [06:39:14]RAPDU: 90 00 [06:39:14]wFMCommunicate OK [06:39:14]wFMCommunicate request_size=255 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [06:39:14]Write to MH i2c: E2 02 01 DA 59 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 54 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 DA 59 00 90 00 A7 [06:39:14]RAPDU: 90 00 [06:39:14]wFMCommunicate OK [06:39:14]wFMCommunicate request_size=147 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 0D 02 02 8E F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1A DE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 68 01 00 35 04 06 00 92 E2 49 5B 4E 2F [06:39:14]Write to MH i2c: E2 96 00 DB 59 80 0D 02 02 8E 00 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1A DE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 68 01 00 35 04 06 00 92 E2 49 5B 4E 2F 00 00 94 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 03 00 DB 59 00 90 00 A8 [06:39:14]RAPDU: 90 00 [06:39:14]wFMCommunicate OK [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 0D 03 02 [06:39:14]Write to MH i2c: E2 08 00 DC 59 80 0D 03 02 00 00 00 00 B0 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 0B 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 0B 00 DC 59 00 80 11 C8 38 AF D3 24 87 90 00 6F [06:39:14]RAPDU: 80 11 C8 38 AF D3 24 87 90 00 [06:39:14]wFMCommunicate OK [06:39:14]SAM_PROTO_SignData done [06:39:14]FM_MakeSignedData done [06:39:14]CreateOFDProtocolMessage [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 11 00 00 [06:39:14]Write to MH i2c: E2 08 00 DD 59 80 11 00 00 00 00 00 00 B0 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 17 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 17 00 DD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 07 [06:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:39:14]wFMCommunicate OK [06:39:14]CreateOFDProtocolMessage done [06:39:14]OFDSenderStorePacket 92209 [06:39:14]StoreOFDPacket docnum=92209 [06:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 EE D0 90 01 C9 50 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1A DE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 68 01 00 35 04 06 00 92 E2 49 5B 4E 2F 80 11 C8 38 AF D3 24 87 [06:39:14]CheckFolder [06:39:14]dirname=/storage/ofd_packets [06:39:14]CheckFolder done [06:39:14]ProducePacketName [06:39:14]name=ofd_packets/00092209 [06:39:14]NVStorageSaveData ofd_packets/00092209 [06:39:14]File name is /storage/ofd_packets/00092209 [06:39:14]Write 438 bytes [06:39:14]NVStorageSaveData done [06:39:14]OFDSenderStorePacket done [06:39:14]KKMCreateOFDPacket done [06:39:14]NVStorageSaveData kkm_last_timestamp [06:39:14]File name is /storage/kkm_last_timestamp [06:39:14]Write 4 bytes [06:39:14]NVStorageSaveData done [06:39:14]ExternCall_PrintAddStr [06:39:14]wPrintStart [06:39:14]Write to MH i2c: 01 00 00 DE 59 37 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: 01 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: 01 07 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: 01 07 00 DE 59 00 00 00 00 00 FF 0F 4C [06:39:14]RasterBufferAndPrint [06:39:14]line Счет N : (3)127140 [06:39:14]line ИНН: 02508201610067 [06:39:14]line Контрольно-Кассовый Чек [06:39:14]line ПРОДАЖА [06:39:14]line Товар: 5449000189332 [06:39:15]line Холодный чай Fuse персик 1л [06:39:15]line 1.000 * 105.00 [06:39:15]line = 105.00 [06:39:15]line НДС 12% НСП 1% [06:39:15]line > о реализуемом товаре [06:39:15]line Товар: 4700000160204 [06:39:15]line Вода Легенда 1,5л [06:39:15]line 1.000 * 60.00 [06:39:15]line = 60.00 [06:39:15]line НДС 12% НСП 1% [06:39:15]line > о реализуемом товаре [06:39:15]line ИТОГО: 165.00 [06:39:15]line НСП 1% : 1.46 [06:39:15]line НДС 12% : 17.52 [06:39:15]line Наличными: 165.00 [06:39:15]line Безнал.: 0.00 [06:39:15]line Место: АЗС № 5 "Партнер Нефть" [06:39:15]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [06:39:15]line СНО: Общий режим [06:39:15]line Чек 17 13.09.2024 06:39 [06:39:15]line Смена: 505 ФФД: 1.0 [06:39:15]line ЗНМ: 03000000022 [06:39:15]line РНМ: 0000000000091423 [06:39:15]line Версия ККМ: 001 [06:39:15]line ФМ: 0000000000874692 [06:39:15]line ФД: 92209 [06:39:15]line ФПД: 161500590984751 [06:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T063922&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92209&fm=161500590984751&tin=02508201610067®Number=0000000000091423&sum=16500 [06:39:15]OFD Sender: Processing packet 92209 [packets to send 63, broken 62] [06:39:15]ProducePacketName [06:39:15]name=ofd_packets/00092209 [06:39:15]OFD Sender: To server: pG, [06:39:15]CommunicateWithHost lk.salyk.kg:30040 [06:39:15]ConnectInit lk.salyk.kg [06:39:15]line 0 [06:39:15]written 0, free lines is 4095 [06:39:15]Connected sock=10 [06:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 EE D0 90 01 C9 50 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1A DE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 68 01 00 35 04 06 00 92 E2 49 5B 4E 2F 80 11 C8 38 AF D3 24 87 [06:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7A D5 47 00 87 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 68 01 00 F4 03 04 00 9A 86 E3 66 B6 04 01 00 00 E6 A1 C6 6B 79 A2 6B DC [06:39:15]CommunicateWithHost err = 0 [06:39:15]CheckOFDResponse [06:39:15]1017 (14) - 77093643461234 [06:39:15]1041 (16) - 0000000000874692 [06:39:15]1040 (4) - 92209 [06:39:15]1012 (4) - 13.09.2024 00:26 [06:39:15]1206 (1) - 0 [06:39:15]OFD Sender: Remove packet 92209 [06:39:15]ProducePacketName [06:39:15]name=ofd_packets/00092209 [06:39:15]NVStorageDeleteData [06:39:15]Write to MH i2c: 01 00 00 0C 5A 66 [06:39:15]Write i2c OK [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: 01 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: 01 07 00 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: 01 07 00 0C 5A 00 00 00 00 00 DA 0C 53 [06:39:15]RasterBufferAndPrint [06:39:15]line [06:39:15]line [06:39:15]line [06:39:15]line [06:39:15]line [06:39:15]written 0, free lines is 3298 [06:39:15]MH_Cut [06:39:15]Write to MH i2c: D1 01 00 13 5A 01 3F [06:39:15]Write i2c OK [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: D1 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: D1 01 00 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: D1 01 00 13 5A 00 3E [06:39:15]Write to MH i2c: 01 00 00 14 5A 6E [06:39:15]Write i2c OK [06:39:15]MH_I2C_Read... [06:39:15]OFD Sender: No OFD packet to send [06:39:16]*** Cut start [06:39:16]*** Purtial cut [06:39:16]*** Stage 1: CUTSNS_PIN = 1 [06:39:18]Read from MH i2c: 01 [06:39:18]MH_I2C_Read... [06:39:18]*** Stop cut motor [06:39:18]*** Cut end [06:39:18]Read from MH i2c: 01 07 00 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: 01 07 00 14 5A 00 00 00 00 00 FF 0F 83 [06:39:18]process_action close_receipt done [06:39:18]requested_data is exist [06:39:18]produce_requested_data [06:39:18]requested_item fm.sn is exist - process it [06:39:18]wFMCommunicate request_size=4 [06:39:18]MH_SAM_APDU [06:39:18]CAPDU: 80 11 00 00 [06:39:18]Write to MH i2c: E2 08 00 15 5A 80 11 00 00 00 00 00 00 E9 [06:39:18]Write i2c OK [06:39:18]MH_I2C_Read... [06:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:18]Read from MH i2c: E2 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 17 00 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 17 00 15 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 40 [06:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:39:18]wFMCommunicate OK [06:39:18]requested_item fd.num is exist - process it [06:39:18]SAM_PROTO_GetFieldsCounters [06:39:18]wFMCommunicate request_size=4 [06:39:18]MH_SAM_APDU [06:39:18]CAPDU: 80 13 00 00 [06:39:18]Write to MH i2c: E2 08 00 16 5A 80 13 00 00 00 00 00 00 EC [06:39:18]Write i2c OK [06:39:18]MH_I2C_Read... [06:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:18]Read from MH i2c: E2 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 62 00 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 62 00 16 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 31 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [06: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 31 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:39:18]wFMCommunicate OK [06:39:18]SAM_PROTO_GetFieldsCounters done [06:39:18]requested_item shift.num is exist - process it [06:39:18]requested_item shift.opened is exist - process it [06:39:18]req_shift_opened [06:39:18]FM_GetShiftState [06:39:18]SAM_PROTO_GetShiftState [06:39:18]wFMCommunicate request_size=4 [06:39:18]MH_SAM_APDU [06:39:18]CAPDU: 80 13 01 00 [06:39:18]Write to MH i2c: E2 08 00 17 5A 80 13 01 00 00 00 00 00 EE [06:39:18]Write i2c OK [06:39:18]MH_I2C_Read... [06:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:18]Read from MH i2c: E2 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 0E 00 [06:39:18]MH_I2C_Read... [06:39:18]Read from MH i2c: E2 0E 00 17 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7A [06:39:18]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [06:39:18]wFMCommunicate OK [06:39:18]SAM_PROTO_GetShiftState done [06:39:18]FM_GetShiftState done [06:39:18]req_shift_opened done [06:39:18]requested_item shift.open_date is exist - process it [06:39:18]req_shift_open_date [06:39:18]req_shift_open_date done [06:39:18]produce_requested_data done [06:39:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92209,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [06:39:18]process_action_free close_receipt [06:39:18]json_value_free [06:39:18]json_value_free done [06:39:18]process_json_proto returns [06:39:18]Send response to host [06:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92209,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [06:39:18]free response buf [06:39:18]execute_script done [06:39:18]execute_script returns [06:39:18]free content buf [06:39:18]Sock 9.Close socket [06:39:18]Sock 9.Thread stoped [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:18]accept exits with 8 [07:11:18]New connection [07:11:18]New thread 3067256164 created [07:11:18]Thread 3067399524 joined [07:11:18]Waiting for new connection... [07:11:18] Sock 8.Parse request [07:11:18]Sock 8.Check first char [07:11:18]Sock 8.First char is OK [07:11:18]request: POST /json_proto HTTP/1.0 [07:11:18]Method: POST [07:11:18]URL: /json_proto [07:11:18]Method is POST - this is cgi request [07:11:18]url: /json_proto [07:11:18]query_string will be loaded in cgi processing [07:11:18]execute_cgi json_proto POST (null) [07:11:18]execute_cgi path=json_proto method=POST [07:11:18]POST find Content-Length [07:11:18]Host: 172.17.57.71:8080 [07:11:18]Content-Length: 625 [07:11:18]Content-Type: application/json [07:11:18] [07:11:18]POST finish read [07:11:18]Found Content-Length = 625 [07:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127141", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:18]execute_script... [07:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127141", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:18]POST & json_proto [07:11:18]process_json_proto [07:11:18]json parsed OK: [07:11:18]protocol is kg_v1.0 [07:11:18]action value=close_receipt [07:11:18]process_action close_receipt [07:11:18]cmd_close_receipt [07:11:18]MH_GetDate [07:11:18]Write to MH i2c: F0 00 00 18 5A 61 [07:11:18]Write i2c OK [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: F0 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: F0 09 00 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: F0 09 00 18 5A 00 A0 E5 E3 66 33 3A A4 66 AF [07:11:18]GetLastDocTimeStamp 1726209562 [07:11:18]current date 1726211488 [07:11:18]FM_GetShiftState [07:11:18]SAM_PROTO_GetShiftState [07:11:18]wFMCommunicate request_size=4 [07:11:18]MH_SAM_APDU [07:11:18]CAPDU: 80 13 01 00 [07:11:18]Write to MH i2c: E2 08 00 19 5A 80 13 01 00 00 00 00 00 F0 [07:11:18]Write i2c OK [07:11:18]MH_I2C_Read... [07:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:18]Read from MH i2c: E2 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 0E 00 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 0E 00 19 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7C [07:11:18]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:11:18]wFMCommunicate OK [07:11:18]SAM_PROTO_GetShiftState done [07:11:18]FM_GetShiftState done [07:11:18]opened in 1726186930 [07:11:18]opened+sec_in_day 1726273330 [07:11:18]quantity*price = 15400 [07:11:18]sum+1 = 15401 [07:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 18 13.09.2024 07:11 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92210 ФПД: 241048752661448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T071128&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92210&fm=241048752661448&tin=02508201610067®Number=0000000000091423&sum=15400 0 [07:11:19]StoreToDocumentArchive [07:11:19]shift 505 fd 92210 [07:11:19]save to /storage/0505/doc_00092210 [07:11:19]save last doc name /storage/0505/doc_00092210 to /storage/kkm_last_doc_name [07:11:19]save OK [07:11:19]Clear old archive folders... [07:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=277 [07:11:19]tlvbuf is 015D5D00 [07:11:19]SAM_PROTO_ClearQueue [07:11:19]wFMCommunicate request_size=4 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 09 00 00 [07:11:19]Write to MH i2c: E2 08 00 26 5A 80 09 00 00 00 00 00 00 F2 [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 26 5A 00 90 00 F4 [07:11:19]RAPDU: 90 00 [07:11:19]wFMCommunicate OK [07:11:19]SAM_PROTO_ClearQueue done [07:11:19]KKMCreateOFDPacket [07:11:19]OFDProtocolAddRootSTLVToBuf [07:11:19]FM_MakeSignedData [07:11:19]FM_MakeSignedData [07:11:19]SAM_PROTO_SignData [07:11:19]wFMCommunicate request_size=4 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 0D 01 02 [07:11:19]Write to MH i2c: E2 08 00 27 5A 80 0D 01 02 00 00 00 00 FA [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 27 5A 00 90 00 F5 [07:11:19]RAPDU: 90 00 [07:11:19]wFMCommunicate OK [07:11:19]wFMCommunicate request_size=255 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A0 E5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [07:11:19]Write to MH i2c: E2 02 01 28 5A 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A0 E5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 2B [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:20]Read from MH i2c: E2 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 03 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 03 00 28 5A 00 90 00 F6 [07:11:20]RAPDU: 90 00 [07:11:20]wFMCommunicate OK [07:11:20]wFMCommunicate request_size=36 [07:11:20]MH_SAM_APDU [07:11:20]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 68 01 00 35 04 06 00 DB 3B 89 46 A3 C8 [07:11:20]Write to MH i2c: E2 27 00 29 5A 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 68 01 00 35 04 06 00 DB 3B 89 46 A3 C8 00 00 11 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:20]Read from MH i2c: E2 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 03 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 03 00 29 5A 00 90 00 F7 [07:11:20]RAPDU: 90 00 [07:11:20]wFMCommunicate OK [07:11:20]wFMCommunicate request_size=4 [07:11:20]MH_SAM_APDU [07:11:20]CAPDU: 80 0D 03 02 [07:11:20]Write to MH i2c: E2 08 00 2A 5A 80 0D 03 02 00 00 00 00 FF [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:20]Read from MH i2c: E2 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 0B 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 0B 00 2A 5A 00 C2 35 8D E8 DA 09 69 B5 90 00 6D [07:11:20]RAPDU: C2 35 8D E8 DA 09 69 B5 90 00 [07:11:20]wFMCommunicate OK [07:11:20]SAM_PROTO_SignData done [07:11:20]FM_MakeSignedData done [07:11:20]CreateOFDProtocolMessage [07:11:20]wFMCommunicate request_size=4 [07:11:20]MH_SAM_APDU [07:11:20]CAPDU: 80 11 00 00 [07:11:20]Write to MH i2c: E2 08 00 2B 5A 80 11 00 00 00 00 00 00 FF [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:20]Read from MH i2c: E2 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 17 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 17 00 2B 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 56 [07:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:11:20]wFMCommunicate OK [07:11:20]CreateOFDProtocolMessage done [07:11:20]OFDSenderStorePacket 92210 [07:11:20]StoreOFDPacket docnum=92210 [07:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 EB C2 21 01 22 02 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A0 E5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 68 01 00 35 04 06 00 DB 3B 89 46 A3 C8 C2 35 8D E8 DA 09 69 B5 [07:11:20]CheckFolder [07:11:20]dirname=/storage/ofd_packets [07:11:20]CheckFolder done [07:11:20]ProducePacketName [07:11:20]name=ofd_packets/00092210 [07:11:20]NVStorageSaveData ofd_packets/00092210 [07:11:20]File name is /storage/ofd_packets/00092210 [07:11:20]Write 327 bytes [07:11:20]NVStorageSaveData done [07:11:20]OFDSenderStorePacket done [07:11:20]KKMCreateOFDPacket done [07:11:20]NVStorageSaveData kkm_last_timestamp [07:11:20]File name is /storage/kkm_last_timestamp [07:11:20]Write 4 bytes [07:11:20]NVStorageSaveData done [07:11:20]ExternCall_PrintAddStr [07:11:20]wPrintStart [07:11:20]Write to MH i2c: 01 00 00 2C 5A 86 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: 01 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: 01 07 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: 01 07 00 2C 5A 00 00 00 00 00 FF 0F 9B [07:11:20]RasterBufferAndPrint [07:11:20]line Счет N : (3)127141 [07:11:20]line ИНН: 02508201610067 [07:11:20]line Контрольно-Кассовый Чек [07:11:20]line ПРОДАЖА [07:11:20]line Товар: 46230607 [07:11:20]line Сигареты Richmond Bronze Edition [07:11:20]line 1.000 * 154.00 [07:11:20]line = 154.00 [07:11:20]line НДС 12% НСП 1% [07:11:20]line > о реализуемом товаре [07:11:20]line ИТОГО: 154.00 [07:11:20]line НСП 1% : 1.36 [07:11:20]line НДС 12% : 16.35 [07:11:20]line Наличными: 154.00 [07:11:20]line Безнал.: 0.00 [07:11:20]line Место: АЗС № 5 "Партнер Нефть" [07:11:20]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:11:20]line СНО: Общий режим [07:11:20]line Чек 18 13.09.2024 07:11 [07:11:20]line Смена: 505 ФФД: 1.0 [07:11:20]line ЗНМ: 03000000022 [07:11:20]line РНМ: 0000000000091423 [07:11:20]line Версия ККМ: 001 [07:11:20]line ФМ: 0000000000874692 [07:11:20]line ФД: 92210 [07:11:20]line ФПД: 241048752661448 [07:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T071128&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92210&fm=241048752661448&tin=02508201610067®Number=0000000000091423&sum=15400 [07:11:20]line 0 [07:11:20]OFD Sender: Processing packet 92210 [packets to send 63, broken 62] [07:11:20]ProducePacketName [07:11:20]name=ofd_packets/00092210 [07:11:20]OFD Sender: To server: pG, [07:11:20]CommunicateWithHost lk.salyk.kg:30040 [07:11:20]ConnectInit lk.salyk.kg [07:11:20]written 0, free lines is 4095 [07:11:20]Connected sock=10 [07:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 EB C2 21 01 22 02 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A0 E5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 68 01 00 35 04 06 00 DB 3B 89 46 A3 C8 C2 35 8D E8 DA 09 69 B5 [07:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2D C9 47 00 53 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 68 01 00 F4 03 04 00 20 8E E3 66 B6 04 01 00 00 D6 D3 F5 84 16 51 8F A6 [07:11:21]CommunicateWithHost err = 0 [07:11:21]CheckOFDResponse [07:11:21]1017 (14) - 77093643461234 [07:11:21]1041 (16) - 0000000000874692 [07:11:21]1040 (4) - 92210 [07:11:21]1012 (4) - 13.09.2024 00:58 [07:11:21]1206 (1) - 0 [07:11:21]OFD Sender: Remove packet 92210 [07:11:21]ProducePacketName [07:11:21]name=ofd_packets/00092210 [07:11:21]NVStorageDeleteData [07:11:21]Write to MH i2c: 01 00 00 55 5A AF [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: 01 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: 01 07 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: 01 07 00 55 5A 00 00 00 00 00 FE 0C C0 [07:11:21]RasterBufferAndPrint [07:11:21]line [07:11:21]line [07:11:21]line [07:11:21]line [07:11:21]line [07:11:21]written 0, free lines is 3333 [07:11:21]MH_Cut [07:11:21]Write to MH i2c: D1 01 00 5C 5A 01 88 [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: D1 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: D1 01 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: D1 01 00 5C 5A 00 87 [07:11:21]Write to MH i2c: 01 00 00 5D 5A B7 [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]OFD Sender: No OFD packet to send [07:11:21]*** Cut start [07:11:21]*** Purtial cut [07:11:21]*** Stage 1: CUTSNS_PIN = 1 [07:11:23]Read from MH i2c: 01 [07:11:23]MH_I2C_Read... [07:11:23]*** Stop cut motor [07:11:23]*** Cut end [07:11:23]Read from MH i2c: 01 07 00 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: 01 07 00 5D 5A 00 00 00 00 00 FF 0F CC [07:11:23]process_action close_receipt done [07:11:23]requested_data is exist [07:11:23]produce_requested_data [07:11:23]requested_item fm.sn is exist - process it [07:11:23]wFMCommunicate request_size=4 [07:11:23]MH_SAM_APDU [07:11:23]CAPDU: 80 11 00 00 [07:11:23]Write to MH i2c: E2 08 00 5E 5A 80 11 00 00 00 00 00 00 32 [07:11:23]Write i2c OK [07:11:23]MH_I2C_Read... [07:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:23]Read from MH i2c: E2 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: E2 17 00 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: E2 17 00 5E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 89 [07:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:11:23]wFMCommunicate OK [07:11:23]requested_item fd.num is exist - process it [07:11:23]SAM_PROTO_GetFieldsCounters [07:11:23]wFMCommunicate request_size=4 [07:11:23]MH_SAM_APDU [07:11:23]CAPDU: 80 13 00 00 [07:11:23]Write to MH i2c: E2 08 00 5F 5A 80 13 00 00 00 00 00 00 35 [07:11:23]Write i2c OK [07:11:23]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 62 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 62 00 5F 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 32 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [07:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 32 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:24]wFMCommunicate OK [07:11:24]SAM_PROTO_GetFieldsCounters done [07:11:24]requested_item shift.num is exist - process it [07:11:24]requested_item shift.opened is exist - process it [07:11:24]req_shift_opened [07:11:24]FM_GetShiftState [07:11:24]SAM_PROTO_GetShiftState [07:11:24]wFMCommunicate request_size=4 [07:11:24]MH_SAM_APDU [07:11:24]CAPDU: 80 13 01 00 [07:11:24]Write to MH i2c: E2 08 00 60 5A 80 13 01 00 00 00 00 00 37 [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 60 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C3 [07:11:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:11:24]wFMCommunicate OK [07:11:24]SAM_PROTO_GetShiftState done [07:11:24]FM_GetShiftState done [07:11:24]req_shift_opened done [07:11:24]requested_item shift.open_date is exist - process it [07:11:24]req_shift_open_date [07:11:24]req_shift_open_date done [07:11:24]produce_requested_data done [07:11:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92210,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:11:24]process_action_free close_receipt [07:11:24]json_value_free [07:11:24]json_value_free done [07:11:24]process_json_proto returns [07:11:24]Send response to host [07:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92210,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:11:24]free response buf [07:11:24]execute_script done [07:11:24]execute_script returns [07:11:24]free content buf [07:11:24]Sock 8.Close socket [07:11:24]Sock 8.Thread stoped [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]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:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:25]accept exits with 9 [07:24:25]New connection [07:24:25]New thread 3067399524 created [07:24:25]Thread 3067256164 joined [07:24:25]Waiting for new connection... [07:24:25] Sock 9.Parse request [07:24:25]Sock 9.Check first char [07:24:25]Sock 9.First char is OK [07:24:25]request: POST /json_proto HTTP/1.0 [07:24:25]Method: POST [07:24:25]URL: /json_proto [07:24:25]Method is POST - this is cgi request [07:24:25]url: /json_proto [07:24:25]query_string will be loaded in cgi processing [07:24:25]execute_cgi json_proto POST (null) [07:24:25]execute_cgi path=json_proto method=POST [07:24:25]POST find Content-Length [07:24:25]Host: 172.17.57.71:8080 [07:24:25]Content-Length: 873 [07:24:25]Content-Type: application/json [07:24:25] [07:24:25]POST finish read [07:24:25]Found Content-Length = 873 [07:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127143", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:25]execute_script... [07:24: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 : (3)127143", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:25]POST & json_proto [07:24:25]process_json_proto [07:24:25]json parsed OK: [07:24:25]protocol is kg_v1.0 [07:24:25]action value=close_receipt [07:24:25]process_action close_receipt [07:24:25]cmd_close_receipt [07:24:25]MH_GetDate [07:24:25]Write to MH i2c: F0 00 00 61 5A AA [07:24:25]Write i2c OK [07:24:25]MH_I2C_Read... [07:24:25]Read from MH i2c: F0 [07:24:25]MH_I2C_Read... [07:24:25]Read from MH i2c: F0 09 00 [07:24:25]MH_I2C_Read... [07:24:25]Read from MH i2c: F0 09 00 61 5A 00 B3 E8 E3 66 33 3A A4 66 0E [07:24:25]GetLastDocTimeStamp 1726211488 [07:24:25]current date 1726212275 [07:24:25]FM_GetShiftState [07:24:25]SAM_PROTO_GetShiftState [07:24:25]wFMCommunicate request_size=4 [07:24:25]MH_SAM_APDU [07:24:25]CAPDU: 80 13 01 00 [07:24:25]Write to MH i2c: E2 08 00 62 5A 80 13 01 00 00 00 00 00 39 [07:24:25]Write i2c OK [07:24:25]MH_I2C_Read... [07:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:25]Read from MH i2c: E2 [07:24:25]MH_I2C_Read... [07:24:25]Read from MH i2c: E2 0E 00 [07:24:25]MH_I2C_Read... [07:24:25]Read from MH i2c: E2 0E 00 62 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C5 [07:24:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:24:25]wFMCommunicate OK [07:24:25]SAM_PROTO_GetShiftState done [07:24:25]FM_GetShiftState done [07:24:25]opened in 1726186930 [07:24:25]opened+sec_in_day 1726273330 [07:24:25]quantity*price = 5000 [07:24:25]sum+1 = 5001 [07:24:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741224 Сигареты Winston Super Slims Blue 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 19 13.09.2024 07:24 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92211 ФПД: 47346717880395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T072435&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92211&fm=47346717880395&tin=02508201610067®Number=0000000000091423&sum=18900 0 [07:24:26]StoreToDocumentArchive [07:24:26]shift 505 fd 92211 [07:24:26]save to /storage/0505/doc_00092211 [07:24:26]save last doc name /storage/0505/doc_00092211 to /storage/kkm_last_doc_name [07:24:27]save OK [07:24:27]Clear old archive folders... [07:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=377 [07:24:27]tlvbuf is 0159EFD0 [07:24:27]SAM_PROTO_ClearQueue [07:24:27]wFMCommunicate request_size=4 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 09 00 00 [07:24:27]Write to MH i2c: E2 08 00 6F 5A 80 09 00 00 00 00 00 00 3B [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 6F 5A 00 90 00 3D [07:24:27]RAPDU: 90 00 [07:24:27]wFMCommunicate OK [07:24:27]SAM_PROTO_ClearQueue done [07:24:27]KKMCreateOFDPacket [07:24:27]OFDProtocolAddRootSTLVToBuf [07:24:27]FM_MakeSignedData [07:24:27]FM_MakeSignedData [07:24:27]SAM_PROTO_SignData [07:24:27]wFMCommunicate request_size=4 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 0D 01 02 [07:24:27]Write to MH i2c: E2 08 00 70 5A 80 0D 01 02 00 00 00 00 43 [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 70 5A 00 90 00 3E [07:24:27]RAPDU: 90 00 [07:24:27]wFMCommunicate OK [07:24:27]wFMCommunicate request_size=255 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE [07:24:27]Write to MH i2c: E2 02 01 71 5A 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 00 00 CB [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]OFD Sender: No OFD packet to send [07:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 71 5A 00 90 00 3F [07:24:27]RAPDU: 90 00 [07:24:27]wFMCommunicate OK [07:24:27]wFMCommunicate request_size=136 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B3 E8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 68 01 00 35 04 06 00 2B 0F C4 4C F0 4B [07:24:27]Write to MH i2c: E2 8B 00 72 5A 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B3 E8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 68 01 00 35 04 06 00 2B 0F C4 4C F0 4B 00 00 96 [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 03 00 72 5A 00 90 00 40 [07:24:27]RAPDU: 90 00 [07:24:27]wFMCommunicate OK [07:24:27]wFMCommunicate request_size=4 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 0D 03 02 [07:24:27]Write to MH i2c: E2 08 00 73 5A 80 0D 03 02 00 00 00 00 48 [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 0B 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 0B 00 73 5A 00 A1 B8 9A 1A F0 27 EA 6A 90 00 C1 [07:24:27]RAPDU: A1 B8 9A 1A F0 27 EA 6A 90 00 [07:24:27]wFMCommunicate OK [07:24:27]SAM_PROTO_SignData done [07:24:27]FM_MakeSignedData done [07:24:27]CreateOFDProtocolMessage [07:24:27]wFMCommunicate request_size=4 [07:24:27]MH_SAM_APDU [07:24:27]CAPDU: 80 11 00 00 [07:24:27]Write to MH i2c: E2 08 00 74 5A 80 11 00 00 00 00 00 00 48 [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:27]Read from MH i2c: E2 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 17 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: E2 17 00 74 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9F [07:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:24:27]wFMCommunicate OK [07:24:27]CreateOFDProtocolMessage done [07:24:27]OFDSenderStorePacket 92211 [07:24:27]StoreOFDPacket docnum=92211 [07:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 5D 98 85 01 0A 3C 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B3 E8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 68 01 00 35 04 06 00 2B 0F C4 4C F0 4B A1 B8 9A 1A F0 27 EA 6A [07:24:27]CheckFolder [07:24:27]dirname=/storage/ofd_packets [07:24:27]CheckFolder done [07:24:27]ProducePacketName [07:24:27]name=ofd_packets/00092211 [07:24:27]NVStorageSaveData ofd_packets/00092211 [07:24:27]File name is /storage/ofd_packets/00092211 [07:24:27]Write 427 bytes [07:24:27]NVStorageSaveData done [07:24:27]OFDSenderStorePacket done [07:24:27]KKMCreateOFDPacket done [07:24:27]NVStorageSaveData kkm_last_timestamp [07:24:27]File name is /storage/kkm_last_timestamp [07:24:27]Write 4 bytes [07:24:27]NVStorageSaveData done [07:24:27]ExternCall_PrintAddStr [07:24:27]wPrintStart [07:24:27]Write to MH i2c: 01 00 00 75 5A CF [07:24:27]Write i2c OK [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: 01 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: 01 07 00 [07:24:27]MH_I2C_Read... [07:24:27]Read from MH i2c: 01 07 00 75 5A 00 00 00 00 00 FF 0F E4 [07:24:27]RasterBufferAndPrint [07:24:27]line Счет N : (3)127143 [07:24:27]line ИНН: 02508201610067 [07:24:27]line Контрольно-Кассовый Чек [07:24:27]line ПРОДАЖА [07:24:27]line Товар: 4700000160358 [07:24:27]line Вода Легенда 1л [07:24:27]line 1.000 * 50.00 [07:24:27]line = 50.00 [07:24:27]line НДС 12% НСП 1% [07:24:27]line > о реализуемом товаре [07:24:27]line Товар: 48741224 [07:24:27]line Сигареты Winston Super Slims Blue [07:24:27]line 1.000 * 139.00 [07:24:27]line = 139.00 [07:24:27]line НДС 12% НСП 1% [07:24:27]line > о реализуемом товаре [07:24:27]line ИТОГО: 189.00 [07:24:27]line НСП 1% : 1.67 [07:24:27]line НДС 12% : 20.07 [07:24:27]line Наличными: 189.00 [07:24:27]line Безнал.: 0.00 [07:24:27]line Место: АЗС № 5 "Партнер Нефть" [07:24:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:24:27]line СНО: Общий режим [07:24:27]line Чек 19 13.09.2024 07:24 [07:24:27]line Смена: 505 ФФД: 1.0 [07:24:27]line ЗНМ: 03000000022 [07:24:27]line РНМ: 0000000000091423 [07:24:27]line Версия ККМ: 001 [07:24:27]line ФМ: 0000000000874692 [07:24:27]line ФД: 92211 [07:24:27]line ФПД: 47346717880395 [07:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T072435&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92211&fm=47346717880395&tin=02508201610067®Number=0000000000091423&sum=18900 [07:24:27]line 0 [07:24:27]OFD Sender: Processing packet 92211 [packets to send 63, broken 62] [07:24:27]ProducePacketName [07:24:27]name=ofd_packets/00092211 [07:24:27]OFD Sender: To server: pG, [07:24:27]CommunicateWithHost lk.salyk.kg:30040 [07:24:27]ConnectInit lk.salyk.kg [07:24:27]written 0, free lines is 4095 [07:24:28]Connected sock=10 [07:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 5D 98 85 01 0A 3C 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B3 E8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 68 01 00 35 04 06 00 2B 0F C4 4C F0 4B A1 B8 9A 1A F0 27 EA 6A [07:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B0 FD 47 00 1A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 68 01 00 F4 03 04 00 33 91 E3 66 B6 04 01 00 00 F2 B8 C8 A6 3F DF 0D 71 [07:24:28]CommunicateWithHost err = 0 [07:24:28]CheckOFDResponse [07:24:28]1017 (14) - 77093643461234 [07:24:28]1041 (16) - 0000000000874692 [07:24:28]1040 (4) - 92211 [07:24:28]1012 (4) - 13.09.2024 01:11 [07:24:28]1206 (1) - 0 [07:24:28]OFD Sender: Remove packet 92211 [07:24:28]ProducePacketName [07:24:28]name=ofd_packets/00092211 [07:24:28]NVStorageDeleteData [07:24:28]Write to MH i2c: 01 00 00 A4 5A FE [07:24:28]Write i2c OK [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: 01 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: 01 07 00 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: 01 07 00 A4 5A 00 00 00 00 00 BA 0C CB [07:24:28]RasterBufferAndPrint [07:24:28]line [07:24:28]line [07:24:28]line [07:24:28]line [07:24:28]line [07:24:28]written 0, free lines is 3264 [07:24:28]MH_Cut [07:24:28]Write to MH i2c: D1 01 00 AB 5A 01 D7 [07:24:28]Write i2c OK [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: D1 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: D1 01 00 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: D1 01 00 AB 5A 00 D6 [07:24:28]Write to MH i2c: 01 00 00 AC 5A 06 [07:24:28]Write i2c OK [07:24:28]MH_I2C_Read... [07:24:28]OFD Sender: No OFD packet to send [07:24:29]*** Cut start [07:24:29]*** Purtial cut [07:24:29]*** Stage 1: CUTSNS_PIN = 1 [07:24:31]Read from MH i2c: 01 [07:24:31]MH_I2C_Read... [07:24:31]*** Stop cut motor [07:24:31]*** Cut end [07:24:31]Read from MH i2c: 01 07 00 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: 01 07 00 AC 5A 00 00 00 00 00 FF 0F 1B [07:24:31]process_action close_receipt done [07:24:31]requested_data is exist [07:24:31]produce_requested_data [07:24:31]requested_item fm.sn is exist - process it [07:24:31]wFMCommunicate request_size=4 [07:24:31]MH_SAM_APDU [07:24:31]CAPDU: 80 11 00 00 [07:24:31]Write to MH i2c: E2 08 00 AD 5A 80 11 00 00 00 00 00 00 81 [07:24:31]Write i2c OK [07:24:31]MH_I2C_Read... [07:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:31]Read from MH i2c: E2 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 17 00 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 17 00 AD 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D8 [07:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:24:31]wFMCommunicate OK [07:24:31]requested_item fd.num is exist - process it [07:24:31]SAM_PROTO_GetFieldsCounters [07:24:31]wFMCommunicate request_size=4 [07:24:31]MH_SAM_APDU [07:24:31]CAPDU: 80 13 00 00 [07:24:31]Write to MH i2c: E2 08 00 AE 5A 80 13 00 00 00 00 00 00 84 [07:24:31]Write i2c OK [07:24:31]MH_I2C_Read... [07:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:31]Read from MH i2c: E2 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 62 00 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 62 00 AE 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 33 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [07:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 33 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:31]wFMCommunicate OK [07:24:31]SAM_PROTO_GetFieldsCounters done [07:24:31]requested_item shift.num is exist - process it [07:24:31]requested_item shift.opened is exist - process it [07:24:31]req_shift_opened [07:24:31]FM_GetShiftState [07:24:31]SAM_PROTO_GetShiftState [07:24:31]wFMCommunicate request_size=4 [07:24:31]MH_SAM_APDU [07:24:31]CAPDU: 80 13 01 00 [07:24:31]Write to MH i2c: E2 08 00 AF 5A 80 13 01 00 00 00 00 00 86 [07:24:31]Write i2c OK [07:24:31]MH_I2C_Read... [07:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:31]Read from MH i2c: E2 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 0E 00 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: E2 0E 00 AF 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 12 [07:24:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:24:31]wFMCommunicate OK [07:24:31]SAM_PROTO_GetShiftState done [07:24:31]FM_GetShiftState done [07:24:31]req_shift_opened done [07:24:31]requested_item shift.open_date is exist - process it [07:24:31]req_shift_open_date [07:24:31]req_shift_open_date done [07:24:31]produce_requested_data done [07:24:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92211,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:24:31]process_action_free close_receipt [07:24:31]json_value_free [07:24:31]json_value_free done [07:24:31]process_json_proto returns [07:24:31]Send response to host [07:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92211,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:24:31]free response buf [07:24:31]execute_script done [07:24:31]execute_script returns [07:24:31]free content buf [07:24:31]Sock 9.Close socket [07:24:31]Sock 9.Thread stoped [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:45]accept exits with 8 [07:40:45]New connection [07:40:45]New thread 3067256164 created [07:40:45]Thread 3067399524 joined [07:40:45]Waiting for new connection... [07:40:45] Sock 8.Parse request [07:40:45]Sock 8.Check first char [07:40:45]Sock 8.First char is OK [07:40:45]request: POST /json_proto HTTP/1.0 [07:40:45]Method: POST [07:40:45]URL: /json_proto [07:40:45]Method is POST - this is cgi request [07:40:45]url: /json_proto [07:40:45]query_string will be loaded in cgi processing [07:40:45]execute_cgi json_proto POST (null) [07:40:45]execute_cgi path=json_proto method=POST [07:40:45]POST find Content-Length [07:40:45]Host: 172.17.57.71:8080 [07:40:45]Content-Length: 659 [07:40:45]Content-Type: application/json [07:40:45] [07:40:45]POST finish read [07:40:45]Found Content-Length = 659 [07:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127144", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:45]execute_script... [07:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127144", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:45]POST & json_proto [07:40:45]process_json_proto [07:40:45]json parsed OK: [07:40:45]protocol is kg_v1.0 [07:40:45]action value=close_receipt [07:40:45]process_action close_receipt [07:40:45]cmd_close_receipt [07:40:45]MH_GetDate [07:40:45]Write to MH i2c: F0 00 00 B0 5A F9 [07:40:45]Write i2c OK [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 09 00 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 09 00 B0 5A 00 87 EC E3 66 33 3A A4 66 35 [07:40:45]GetLastDocTimeStamp 1726212275 [07:40:45]current date 1726213255 [07:40:45]FM_GetShiftState [07:40:45]SAM_PROTO_GetShiftState [07:40:45]wFMCommunicate request_size=4 [07:40:45]MH_SAM_APDU [07:40:45]CAPDU: 80 13 01 00 [07:40:45]Write to MH i2c: E2 08 00 B1 5A 80 13 01 00 00 00 00 00 88 [07:40:45]Write i2c OK [07:40:45]MH_I2C_Read... [07:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:45]Read from MH i2c: E2 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: E2 0E 00 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: E2 0E 00 B1 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 14 [07:40:45]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:40:45]wFMCommunicate OK [07:40:45]SAM_PROTO_GetShiftState done [07:40:45]FM_GetShiftState done [07:40:45]opened in 1726186930 [07:40:45]opened+sec_in_day 1726273330 [07:40:45]quantity*price = 7500 [07:40:45]sum+1 = 7501 [07:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 20 13.09.2024 07:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92212 ФПД: 65354811375810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074055&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92212&fm=65354811375810&tin=02508201610067®Number=0000000000091423&sum=7500 0 [07:40:46]StoreToDocumentArchive [07:40:46]shift 505 fd 92212 [07:40:46]save to /storage/0505/doc_00092212 [07:40:46]save last doc name /storage/0505/doc_00092212 to /storage/kkm_last_doc_name [07:40:46]save OK [07:40:46]Clear old archive folders... [07:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=290 [07:40:46]tlvbuf is 017658C0 [07:40:46]SAM_PROTO_ClearQueue [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 09 00 00 [07:40:46]Write to MH i2c: E2 08 00 BE 5A 80 09 00 00 00 00 00 00 8A [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 BE 5A 00 90 00 8C [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]SAM_PROTO_ClearQueue done [07:40:46]KKMCreateOFDPacket [07:40:46]OFDProtocolAddRootSTLVToBuf [07:40:46]FM_MakeSignedData [07:40:46]FM_MakeSignedData [07:40:46]SAM_PROTO_SignData [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 0D 01 02 [07:40:46]Write to MH i2c: E2 08 00 BF 5A 80 0D 01 02 00 00 00 00 92 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 BF 5A 00 90 00 8D [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]wFMCommunicate request_size=255 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 87 EC E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [07:40:46]Write to MH i2c: E2 02 01 C0 5A 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 87 EC E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 E9 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:47]Read from MH i2c: E2 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 03 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 03 00 C0 5A 00 90 00 8E [07:40:47]RAPDU: 90 00 [07:40:47]wFMCommunicate OK [07:40:47]wFMCommunicate request_size=49 [07:40:47]MH_SAM_APDU [07:40:47]CAPDU: 80 0D 02 02 2C 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 68 01 00 35 04 06 00 3B 70 9A 51 00 C2 [07:40:47]Write to MH i2c: E2 34 00 C1 5A 80 0D 02 02 2C 00 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 68 01 00 35 04 06 00 3B 70 9A 51 00 C2 00 00 B5 [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 [07:40:47]MH_I2C_Read... [07:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:47]Read from MH i2c: E2 03 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 03 00 C1 5A 00 90 00 8F [07:40:47]RAPDU: 90 00 [07:40:47]wFMCommunicate OK [07:40:47]wFMCommunicate request_size=4 [07:40:47]MH_SAM_APDU [07:40:47]CAPDU: 80 0D 03 02 [07:40:47]Write to MH i2c: E2 08 00 C2 5A 80 0D 03 02 00 00 00 00 97 [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:47]Read from MH i2c: E2 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 0B 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 0B 00 C2 5A 00 BA B1 C1 5D E7 68 BF A9 90 00 D8 [07:40:47]RAPDU: BA B1 C1 5D E7 68 BF A9 90 00 [07:40:47]wFMCommunicate OK [07:40:47]SAM_PROTO_SignData done [07:40:47]FM_MakeSignedData done [07:40:47]CreateOFDProtocolMessage [07:40:47]wFMCommunicate request_size=4 [07:40:47]MH_SAM_APDU [07:40:47]CAPDU: 80 11 00 00 [07:40:47]Write to MH i2c: E2 08 00 C3 5A 80 11 00 00 00 00 00 00 97 [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:47]Read from MH i2c: E2 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 17 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: E2 17 00 C3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EE [07:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:40:47]wFMCommunicate OK [07:40:47]CreateOFDProtocolMessage done [07:40:47]OFDSenderStorePacket 92212 [07:40:47]StoreOFDPacket docnum=92212 [07:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 0A F0 2E 01 05 EC 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 87 EC E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 68 01 00 35 04 06 00 3B 70 9A 51 00 C2 BA B1 C1 5D E7 68 BF A9 [07:40:47]CheckFolder [07:40:47]dirname=/storage/ofd_packets [07:40:47]CheckFolder done [07:40:47]ProducePacketName [07:40:47]name=ofd_packets/00092212 [07:40:47]NVStorageSaveData ofd_packets/00092212 [07:40:47]File name is /storage/ofd_packets/00092212 [07:40:47]Write 340 bytes [07:40:47]NVStorageSaveData done [07:40:47]OFDSenderStorePacket done [07:40:47]KKMCreateOFDPacket done [07:40:47]NVStorageSaveData kkm_last_timestamp [07:40:47]File name is /storage/kkm_last_timestamp [07:40:47]Write 4 bytes [07:40:47]NVStorageSaveData done [07:40:47]ExternCall_PrintAddStr [07:40:47]wPrintStart [07:40:47]Write to MH i2c: 01 00 00 C4 5A 1E [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 07 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 07 00 C4 5A 00 00 00 00 00 FF 0F 33 [07:40:47]RasterBufferAndPrint [07:40:47]line Счет N : (3)127144 [07:40:47]line ИНН: 02508201610067 [07:40:47]line Контрольно-Кассовый Чек [07:40:47]line ПРОДАЖА [07:40:47]line Товар: 4870001154059 [07:40:47]line Напиток Lipton IceTea 0,5л зел чай [07:40:47]line 1.000 * 75.00 [07:40:47]line = 75.00 [07:40:47]line НДС 12% НСП 1% [07:40:47]line > о реализуемом товаре [07:40:47]line ИТОГО: 75.00 [07:40:47]line НСП 1% : 0.66 [07:40:47]line НДС 12% : 7.96 [07:40:47]line Наличными: 75.00 [07:40:47]line Безнал.: 0.00 [07:40:47]line Место: АЗС № 5 "Партнер Нефть" [07:40:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:40:47]line СНО: Общий режим [07:40:47]line Чек 20 13.09.2024 07:40 [07:40:47]line Смена: 505 ФФД: 1.0 [07:40:47]line ЗНМ: 03000000022 [07:40:47]line РНМ: 0000000000091423 [07:40:47]line Версия ККМ: 001 [07:40:47]line ФМ: 0000000000874692 [07:40:47]line ФД: 92212 [07:40:47]line ФПД: 65354811375810 [07:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074055&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92212&fm=65354811375810&tin=02508201610067®Number=0000000000091423&sum=7500 [07:40:47]OFD Sender: Processing packet 92212 [packets to send 63, broken 62] [07:40:47]ProducePacketName [07:40:47]name=ofd_packets/00092212 [07:40:47]OFD Sender: To server: pG, [07:40:47]CommunicateWithHost lk.salyk.kg:30040 [07:40:47]ConnectInit lk.salyk.kg [07:40:47]line 0 [07:40:47]written 0, free lines is 4095 [07:40:47]Connected sock=10 [07:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 0A F0 2E 01 05 EC 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 87 EC E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 68 01 00 35 04 06 00 3B 70 9A 51 00 C2 BA B1 C1 5D E7 68 BF A9 [07:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EE 28 47 00 42 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 68 01 00 F4 03 04 00 07 95 E3 66 B6 04 01 00 00 80 9B EB 18 F2 8D D7 1B [07:40:47]CommunicateWithHost err = 0 [07:40:47]CheckOFDResponse [07:40:47]1017 (14) - 77093643461234 [07:40:47]1041 (16) - 0000000000874692 [07:40:47]1040 (4) - 92212 [07:40:47]1012 (4) - 13.09.2024 01:27 [07:40:47]1206 (1) - 0 [07:40:47]OFD Sender: Remove packet 92212 [07:40:47]ProducePacketName [07:40:47]name=ofd_packets/00092212 [07:40:47]NVStorageDeleteData [07:40:48]Write to MH i2c: 01 00 00 ED 5A 47 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 07 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 07 00 ED 5A 00 00 00 00 00 06 0D 61 [07:40:48]RasterBufferAndPrint [07:40:48]line [07:40:48]line [07:40:48]line [07:40:48]line [07:40:48]line [07:40:48]written 0, free lines is 3340 [07:40:48]MH_Cut [07:40:48]Write to MH i2c: D1 01 00 F4 5A 01 20 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: D1 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: D1 01 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: D1 01 00 F4 5A 00 1F [07:40:48]Write to MH i2c: 01 00 00 F5 5A 4F [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]OFD Sender: No OFD packet to send [07:40:48]*** Cut start [07:40:48]*** Purtial cut [07:40:48]*** Stage 1: CUTSNS_PIN = 1 [07:40:50]Read from MH i2c: 01 [07:40:50]MH_I2C_Read... [07:40:50]*** Stop cut motor [07:40:50]*** Cut end [07:40:50]Read from MH i2c: 01 07 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: 01 07 00 F5 5A 00 00 00 00 00 FF 0F 64 [07:40:50]process_action close_receipt done [07:40:50]requested_data is exist [07:40:50]produce_requested_data [07:40:50]requested_item fm.sn is exist - process it [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 11 00 00 [07:40:50]Write to MH i2c: E2 08 00 F6 5A 80 11 00 00 00 00 00 00 CA [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 17 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 17 00 F6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 21 [07:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:40:50]wFMCommunicate OK [07:40:50]requested_item fd.num is exist - process it [07:40:50]SAM_PROTO_GetFieldsCounters [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 13 00 00 [07:40:50]Write to MH i2c: E2 08 00 F7 5A 80 13 00 00 00 00 00 00 CD [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 62 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 62 00 F7 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 34 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [07:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 34 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:50]wFMCommunicate OK [07:40:50]SAM_PROTO_GetFieldsCounters done [07:40:50]requested_item shift.num is exist - process it [07:40:50]requested_item shift.opened is exist - process it [07:40:50]req_shift_opened [07:40:50]FM_GetShiftState [07:40:50]SAM_PROTO_GetShiftState [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 13 01 00 [07:40:50]Write to MH i2c: E2 08 00 F8 5A 80 13 01 00 00 00 00 00 CF [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 0E 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 0E 00 F8 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 5B [07:40:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:40:51]wFMCommunicate OK [07:40:51]SAM_PROTO_GetShiftState done [07:40:51]FM_GetShiftState done [07:40:51]req_shift_opened done [07:40:51]requested_item shift.open_date is exist - process it [07:40:51]req_shift_open_date [07:40:51]req_shift_open_date done [07:40:51]produce_requested_data done [07:40:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92212,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:40:51]process_action_free close_receipt [07:40:51]json_value_free [07:40:51]json_value_free done [07:40:51]process_json_proto returns [07:40:51]Send response to host [07:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92212,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:40:51]free response buf [07:40:51]execute_script done [07:40:51]execute_script returns [07:40:51]free content buf [07:40:51]Sock 8.Close socket [07:40:51]Sock 8.Thread stoped [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:48]accept exits with 9 [07:42:48]New connection [07:42:48]New thread 3067399524 created [07:42:48]Thread 3067256164 joined [07:42:48]Waiting for new connection... [07:42:48] Sock 9.Parse request [07:42:48]Sock 9.Check first char [07:42:48]Sock 9.First char is OK [07:42:48]request: POST /json_proto HTTP/1.0 [07:42:48]Method: POST [07:42:48]URL: /json_proto [07:42:48]Method is POST - this is cgi request [07:42:48]url: /json_proto [07:42:48]query_string will be loaded in cgi processing [07:42:48]execute_cgi json_proto POST (null) [07:42:48]execute_cgi path=json_proto method=POST [07:42:48]POST find Content-Length [07:42:48]Host: 172.17.57.71:8080 [07:42:48]Content-Length: 937 [07:42:48]Content-Type: application/json [07:42:48] [07:42:48]POST finish read [07:42:48]Found Content-Length = 937 [07:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127146", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:48]execute_script... [07: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 : (3)127146", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:48]POST & json_proto [07:42:48]process_json_proto [07:42:48]json parsed OK: [07:42:48]protocol is kg_v1.0 [07:42:48]action value=close_receipt [07:42:48]process_action close_receipt [07:42:48]cmd_close_receipt [07:42:48]MH_GetDate [07:42:48]Write to MH i2c: F0 00 00 F9 5A 42 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 09 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 09 00 F9 5A 00 02 ED E3 66 33 3A A4 66 FA [07:42:48]GetLastDocTimeStamp 1726213255 [07:42:48]current date 1726213378 [07:42:48]FM_GetShiftState [07:42:48]SAM_PROTO_GetShiftState [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 13 01 00 [07:42:48]Write to MH i2c: E2 08 00 FA 5A 80 13 01 00 00 00 00 00 D1 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:48]Read from MH i2c: E2 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 FA 5A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 5D [07:42:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:42:48]wFMCommunicate OK [07:42:48]SAM_PROTO_GetShiftState done [07:42:48]FM_GetShiftState done [07:42:48]opened in 1726186930 [07:42:48]opened+sec_in_day 1726273330 [07:42:48]quantity*price = 5900 [07:42:48]sum+1 = 5901 [07:42:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.53 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 21 13.09.2024 07:42 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92213 ФПД: 9425006229024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074258&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92213&fm=9425006229024&tin=02508201610067®Number=0000000000091423&sum=18400 0 [07:42:50]StoreToDocumentArchive [07:42:50]shift 505 fd 92213 [07:42:50]save to /storage/0505/doc_00092213 [07:42:50]save last doc name /storage/0505/doc_00092213 to /storage/kkm_last_doc_name [07:42:50]save OK [07:42:50]Clear old archive folders... [07:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=397 [07:42:50]tlvbuf is 017755E0 [07:42:50]SAM_PROTO_ClearQueue [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 09 00 00 [07:42:50]Write to MH i2c: E2 08 00 07 5B 80 09 00 00 00 00 00 00 D4 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 07 5B 00 90 00 D6 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]SAM_PROTO_ClearQueue done [07:42:50]KKMCreateOFDPacket [07:42:50]OFDProtocolAddRootSTLVToBuf [07:42:50]FM_MakeSignedData [07:42:50]FM_MakeSignedData [07:42:50]SAM_PROTO_SignData [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 01 02 [07:42:50]Write to MH i2c: E2 08 00 08 5B 80 0D 01 02 00 00 00 00 DC [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 08 5B 00 90 00 D7 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=255 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 [07:42:50]Write to MH i2c: E2 02 01 09 5B 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 00 00 5D [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 09 5B 00 90 00 D8 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=156 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 02 ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 68 01 00 35 04 06 00 08 92 6E 25 F6 20 [07:42:50]Write to MH i2c: E2 9F 00 0A 5B 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 02 ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 68 01 00 35 04 06 00 08 92 6E 25 F6 20 00 00 CE [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 0A 5B 00 90 00 D9 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 03 02 [07:42:50]Write to MH i2c: E2 08 00 0B 5B 80 0D 03 02 00 00 00 00 E1 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 0B 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 0B 00 0B 5B 00 C1 65 22 37 AD F4 9B 01 90 00 9E [07:42:50]RAPDU: C1 65 22 37 AD F4 9B 01 90 00 [07:42:50]wFMCommunicate OK [07:42:50]SAM_PROTO_SignData done [07:42:50]FM_MakeSignedData done [07:42:50]CreateOFDProtocolMessage [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 11 00 00 [07:42:50]Write to MH i2c: E2 08 00 0C 5B 80 11 00 00 00 00 00 00 E1 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 17 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 17 00 0C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 38 [07:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:42:50]wFMCommunicate OK [07:42:50]CreateOFDProtocolMessage done [07:42:50]OFDSenderStorePacket 92213 [07:42:50]StoreOFDPacket docnum=92213 [07:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 52 93 99 01 79 A6 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 02 ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 68 01 00 35 04 06 00 08 92 6E 25 F6 20 C1 65 22 37 AD F4 9B 01 [07:42:50]CheckFolder [07:42:50]dirname=/storage/ofd_packets [07:42:50]CheckFolder done [07:42:50]ProducePacketName [07:42:50]name=ofd_packets/00092213 [07:42:50]NVStorageSaveData ofd_packets/00092213 [07:42:50]File name is /storage/ofd_packets/00092213 [07:42:50]Write 447 bytes [07:42:50]NVStorageSaveData done [07:42:50]OFDSenderStorePacket done [07:42:50]KKMCreateOFDPacket done [07:42:50]NVStorageSaveData kkm_last_timestamp [07:42:50]File name is /storage/kkm_last_timestamp [07:42:50]Write 4 bytes [07:42:50]NVStorageSaveData done [07:42:50]ExternCall_PrintAddStr [07:42:50]wPrintStart [07:42:50]Write to MH i2c: 01 00 00 0D 5B 68 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 07 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 07 00 0D 5B 00 00 00 00 00 FF 0F 7D [07:42:50]RasterBufferAndPrint [07:42:50]line Счет N : (3)127146 [07:42:50]line ИНН: 02508201610067 [07:42:51]line Контрольно-Кассовый Чек [07:42:51]line ПРОДАЖА [07:42:51]line Товар: 4011100977624 [07:42:51]line Шок Батончик Баунти 55г [07:42:51]line 1.000 * 59.00 [07:42:51]line = 59.00 [07:42:51]line НДС 12% НСП 1% [07:42:51]line > о реализуемом товаре [07:42:51]line Товар: 2000036190018 [07:42:51]line Кофе Американо XL(GABB TRADE) [07:42:51]line 1.000 * 125.00 [07:42:51]line = 125.00 [07:42:51]line НДС 12% НСП 1% [07:42:51]line > о реализуемом товаре [07:42:51]line ИТОГО: 184.00 [07:42:51]line НСП 1% : 1.63 [07:42:51]line НДС 12% : 19.53 [07:42:51]line Наличными: 184.00 [07:42:51]line Безнал.: 0.00 [07:42:51]line Место: АЗС № 5 "Партнер Нефть" [07:42:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:42:51]line СНО: Общий режим [07:42:51]line Чек 21 13.09.2024 07:42 [07:42:51]line Смена: 505 ФФД: 1.0 [07:42:51]line ЗНМ: 03000000022 [07:42:51]line РНМ: 0000000000091423 [07:42:51]line Версия ККМ: 001 [07:42:51]line ФМ: 0000000000874692 [07:42:51]line ФД: 92213 [07:42:51]line ФПД: 9425006229024 [07:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074258&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92213&fm=9425006229024&tin=02508201610067®Number=0000000000091423&sum=18400 [07:42:51]line 0 [07:42:51]OFD Sender: Processing packet 92213 [packets to send 63, broken 62] [07:42:51]ProducePacketName [07:42:51]name=ofd_packets/00092213 [07:42:51]OFD Sender: To server: pG, [07:42:51]CommunicateWithHost lk.salyk.kg:30040 [07:42:51]ConnectInit lk.salyk.kg [07:42:51]written 0, free lines is 4095 [07:42:51]Connected sock=10 [07:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 52 93 99 01 79 A6 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 02 ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 68 01 00 35 04 06 00 08 92 6E 25 F6 20 C1 65 22 37 AD F4 9B 01 [07:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 11 18 47 00 5B C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 68 01 00 F4 03 04 00 82 95 E3 66 B6 04 01 00 00 76 44 7A 46 17 F7 E4 28 [07:42:51]CommunicateWithHost err = 0 [07:42:51]CheckOFDResponse [07:42:51]1017 (14) - 77093643461234 [07:42:51]1041 (16) - 0000000000874692 [07:42:51]1040 (4) - 92213 [07:42:51]1012 (4) - 13.09.2024 01:29 [07:42:51]1206 (1) - 0 [07:42:51]OFD Sender: Remove packet 92213 [07:42:51]ProducePacketName [07:42:51]name=ofd_packets/00092213 [07:42:51]NVStorageDeleteData [07:42:51]Write to MH i2c: 01 00 00 3C 5B 97 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 3C 5B 00 00 00 00 00 E1 0C 8B [07:42:51]RasterBufferAndPrint [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]written 0, free lines is 3303 [07:42:51]MH_Cut [07:42:51]Write to MH i2c: D1 01 00 43 5B 01 70 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 01 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 01 00 43 5B 00 6F [07:42:51]Write to MH i2c: 01 00 00 44 5B 9F [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]OFD Sender: No OFD packet to send [07:42:52]*** Cut start [07:42:52]*** Purtial cut [07:42:52]*** Stage 1: CUTSNS_PIN = 1 [07:42:54]Read from MH i2c: 01 [07:42:54]MH_I2C_Read... [07:42:54]*** Stop cut motor [07:42:54]*** Cut end [07:42:54]Read from MH i2c: 01 07 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 07 00 44 5B 00 00 00 00 00 FF 0F B4 [07:42:54]process_action close_receipt done [07:42:54]requested_data is exist [07:42:54]produce_requested_data [07:42:54]requested_item fm.sn is exist - process it [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 11 00 00 [07:42:54]Write to MH i2c: E2 08 00 45 5B 80 11 00 00 00 00 00 00 1A [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 45 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [07:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:42:54]wFMCommunicate OK [07:42:54]requested_item fd.num is exist - process it [07:42:54]SAM_PROTO_GetFieldsCounters [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 13 00 00 [07:42:54]Write to MH i2c: E2 08 00 46 5B 80 13 00 00 00 00 00 00 1D [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 62 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 62 00 46 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 35 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 35 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_GetFieldsCounters done [07:42:54]requested_item shift.num is exist - process it [07:42:54]requested_item shift.opened is exist - process it [07:42:54]req_shift_opened [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 47 5B 80 13 01 00 00 00 00 00 1F [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 47 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AB [07:42:54]RAPDU: 09 00 01 B2 85 E3 66 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]req_shift_opened done [07:42:54]requested_item shift.open_date is exist - process it [07:42:54]req_shift_open_date [07:42:54]req_shift_open_date done [07:42:54]produce_requested_data done [07:42:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92213,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:42:54]process_action_free close_receipt [07:42:54]json_value_free [07:42:54]json_value_free done [07:42:54]process_json_proto returns [07:42:54]Send response to host [07:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92213,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:42:54]free response buf [07:42:54]execute_script done [07:42:54]execute_script returns [07:42:54]free content buf [07:42:54]Sock 9.Close socket [07:42:54]Sock 9.Thread stoped [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:35]accept exits with 8 [07:44:35]New connection [07:44:35]New thread 3067256164 created [07:44:35]Thread 3067399524 joined [07:44:35]Waiting for new connection... [07:44:35] Sock 8.Parse request [07:44:35]Sock 8.Check first char [07:44:35]Sock 8.First char is OK [07:44:35]request: POST /json_proto HTTP/1.0 [07:44:35]Method: POST [07:44:35]URL: /json_proto [07:44:35]Method is POST - this is cgi request [07:44:35]url: /json_proto [07:44:35]query_string will be loaded in cgi processing [07:44:35]execute_cgi json_proto POST (null) [07:44:35]execute_cgi path=json_proto method=POST [07:44:35]POST find Content-Length [07:44:35]Host: 172.17.57.71:8080 [07:44:35]Content-Length: 912 [07:44:35]Content-Type: application/json [07:44:35] [07:44:35]POST finish read [07:44:35]Found Content-Length = 912 [07:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127147", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:35]execute_script... [07:44: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 : (3)127147", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:35]POST & json_proto [07:44:35]process_json_proto [07:44:35]json parsed OK: [07:44:35]protocol is kg_v1.0 [07:44:35]action value=close_receipt [07:44:35]process_action close_receipt [07:44:35]cmd_close_receipt [07:44:35]MH_GetDate [07:44:35]Write to MH i2c: F0 00 00 48 5B 92 [07:44:35]Write i2c OK [07:44:35]MH_I2C_Read... [07:44:35]Read from MH i2c: F0 [07:44:35]MH_I2C_Read... [07:44:35]Read from MH i2c: F0 09 00 [07:44:35]MH_I2C_Read... [07:44:35]Read from MH i2c: F0 09 00 48 5B 00 6D ED E3 66 33 3A A4 66 B5 [07:44:35]GetLastDocTimeStamp 1726213378 [07:44:35]current date 1726213485 [07:44:35]FM_GetShiftState [07:44:35]SAM_PROTO_GetShiftState [07:44:35]wFMCommunicate request_size=4 [07:44:35]MH_SAM_APDU [07:44:35]CAPDU: 80 13 01 00 [07:44:35]Write to MH i2c: E2 08 00 49 5B 80 13 01 00 00 00 00 00 21 [07:44:35]Write i2c OK [07:44:35]MH_I2C_Read... [07:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:35]Read from MH i2c: E2 [07:44:35]MH_I2C_Read... [07:44:35]Read from MH i2c: E2 0E 00 [07:44:35]MH_I2C_Read... [07:44:35]Read from MH i2c: E2 0E 00 49 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AD [07:44:35]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:44:35]wFMCommunicate OK [07:44:35]SAM_PROTO_GetShiftState done [07:44:35]FM_GetShiftState done [07:44:35]opened in 1726186930 [07:44:35]opened+sec_in_day 1726273330 [07:44:35]quantity*price = 8000 [07:44:35]sum+1 = 8001 [07:44:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 22 13.09.2024 07:44 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92214 ФПД: 77104376877699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074445&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92214&fm=77104376877699&tin=02508201610067®Number=0000000000091423&sum=14000 0 [07:44:36]StoreToDocumentArchive [07:44:36]shift 505 fd 92214 [07:44:36]save to /storage/0505/doc_00092214 [07:44:36]save last doc name /storage/0505/doc_00092214 to /storage/kkm_last_doc_name [07:44:36]save OK [07:44:36]Clear old archive folders... [07:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=382 [07:44:36]tlvbuf is 016DC530 [07:44:36]SAM_PROTO_ClearQueue [07:44:36]wFMCommunicate request_size=4 [07:44:36]MH_SAM_APDU [07:44:36]CAPDU: 80 09 00 00 [07:44:36]Write to MH i2c: E2 08 00 56 5B 80 09 00 00 00 00 00 00 23 [07:44:36]Write i2c OK [07:44:36]MH_I2C_Read... [07:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:37]Read from MH i2c: E2 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 56 5B 00 90 00 25 [07:44:37]RAPDU: 90 00 [07:44:37]wFMCommunicate OK [07:44:37]SAM_PROTO_ClearQueue done [07:44:37]KKMCreateOFDPacket [07:44:37]OFDProtocolAddRootSTLVToBuf [07:44:37]FM_MakeSignedData [07:44:37]FM_MakeSignedData [07:44:37]SAM_PROTO_SignData [07:44:37]wFMCommunicate request_size=4 [07:44:37]MH_SAM_APDU [07:44:37]CAPDU: 80 0D 01 02 [07:44:37]Write to MH i2c: E2 08 00 57 5B 80 0D 01 02 00 00 00 00 2B [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 [07:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 57 5B 00 90 00 26 [07:44:37]RAPDU: 90 00 [07:44:37]wFMCommunicate OK [07:44:37]wFMCommunicate request_size=255 [07:44:37]MH_SAM_APDU [07:44:37]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 [07:44:37]Write to MH i2c: E2 02 01 58 5B 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 EE [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:37]Read from MH i2c: E2 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 58 5B 00 90 00 27 [07:44:37]RAPDU: 90 00 [07:44:37]wFMCommunicate OK [07:44:37]wFMCommunicate request_size=141 [07:44:37]MH_SAM_APDU [07:44:37]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6D ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 68 01 00 35 04 06 00 46 20 42 FE 92 83 [07:44:37]Write to MH i2c: E2 90 00 59 5B 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6D ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 68 01 00 35 04 06 00 46 20 42 FE 92 83 00 00 30 [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:37]Read from MH i2c: E2 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 03 00 59 5B 00 90 00 28 [07:44:37]RAPDU: 90 00 [07:44:37]wFMCommunicate OK [07:44:37]wFMCommunicate request_size=4 [07:44:37]MH_SAM_APDU [07:44:37]CAPDU: 80 0D 03 02 [07:44:37]Write to MH i2c: E2 08 00 5A 5B 80 0D 03 02 00 00 00 00 30 [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:37]Read from MH i2c: E2 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 0B 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 0B 00 5A 5B 00 8E 2F DA 2E 49 34 83 70 90 00 66 [07:44:37]RAPDU: 8E 2F DA 2E 49 34 83 70 90 00 [07:44:37]wFMCommunicate OK [07:44:37]SAM_PROTO_SignData done [07:44:37]FM_MakeSignedData done [07:44:37]CreateOFDProtocolMessage [07:44:37]wFMCommunicate request_size=4 [07:44:37]MH_SAM_APDU [07:44:37]CAPDU: 80 11 00 00 [07:44:37]Write to MH i2c: E2 08 00 5B 5B 80 11 00 00 00 00 00 00 30 [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:37]Read from MH i2c: E2 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 17 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: E2 17 00 5B 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 87 [07:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:44:37]wFMCommunicate OK [07:44:37]CreateOFDProtocolMessage done [07:44:37]OFDSenderStorePacket 92214 [07:44:37]StoreOFDPacket docnum=92214 [07:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 92 01 00 00 9D BE 8A 01 AC 9B 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6D ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 68 01 00 35 04 06 00 46 20 42 FE 92 83 8E 2F DA 2E 49 34 83 70 [07:44:37]CheckFolder [07:44:37]dirname=/storage/ofd_packets [07:44:37]CheckFolder done [07:44:37]ProducePacketName [07:44:37]name=ofd_packets/00092214 [07:44:37]NVStorageSaveData ofd_packets/00092214 [07:44:37]File name is /storage/ofd_packets/00092214 [07:44:37]Write 432 bytes [07:44:37]NVStorageSaveData done [07:44:37]OFDSenderStorePacket done [07:44:37]KKMCreateOFDPacket done [07:44:37]NVStorageSaveData kkm_last_timestamp [07:44:37]File name is /storage/kkm_last_timestamp [07:44:37]Write 4 bytes [07:44:37]NVStorageSaveData done [07:44:37]ExternCall_PrintAddStr [07:44:37]wPrintStart [07:44:37]Write to MH i2c: 01 00 00 5C 5B B7 [07:44:37]Write i2c OK [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: 01 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: 01 07 00 [07:44:37]MH_I2C_Read... [07:44:37]Read from MH i2c: 01 07 00 5C 5B 00 00 00 00 00 FF 0F CC [07:44:37]RasterBufferAndPrint [07:44:37]line Счет N : (3)127147 [07:44:37]line ИНН: 02508201610067 [07:44:37]line Контрольно-Кассовый Чек [07:44:37]line ПРОДАЖА [07:44:37]line Товар: 4700000160211 [07:44:37]line Вода Легенда 0,5л [07:44:37]line 2.000 * 40.00 [07:44:37]line = 80.00 [07:44:37]line НДС 12% НСП 1% [07:44:37]line > о реализуемом товаре [07:44:37]line Товар: 4011100977952 [07:44:37]line Шок Батончик Твикс 55г [07:44:37]line 1.000 * 60.00 [07:44:37]line = 60.00 [07:44:37]line НДС 12% НСП 1% [07:44:37]line > о реализуемом товаре [07:44:37]line ИТОГО: 140.00 [07:44:37]line НСП 1% : 1.24 [07:44:37]line НДС 12% : 14.87 [07:44:37]line Наличными: 140.00 [07:44:37]line Безнал.: 0.00 [07:44:37]line Место: АЗС № 5 "Партнер Нефть" [07:44:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:44:37]line СНО: Общий режим [07:44:37]line Чек 22 13.09.2024 07:44 [07:44:37]line Смена: 505 ФФД: 1.0 [07:44:37]line ЗНМ: 03000000022 [07:44:37]line РНМ: 0000000000091423 [07:44:37]line Версия ККМ: 001 [07:44:37]line ФМ: 0000000000874692 [07:44:37]line ФД: 92214 [07:44:37]line ФПД: 77104376877699 [07:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074445&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92214&fm=77104376877699&tin=02508201610067®Number=0000000000091423&sum=14000 [07:44:37]line 0 [07:44:37]OFD Sender: Processing packet 92214 [packets to send 63, broken 62] [07:44:37]ProducePacketName [07:44:37]name=ofd_packets/00092214 [07:44:37]OFD Sender: To server: pG, [07:44:37]CommunicateWithHost lk.salyk.kg:30040 [07:44:37]ConnectInit lk.salyk.kg [07:44:37]written 0, free lines is 4095 [07:44:38]Connected sock=11 [07:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 92 01 00 00 9D BE 8A 01 AC 9B 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6D ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 68 01 00 35 04 06 00 46 20 42 FE 92 83 8E 2F DA 2E 49 34 83 70 [07:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 C8 47 00 8B 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 68 01 00 F4 03 04 00 ED 95 E3 66 B6 04 01 00 00 D0 E8 4C EE A6 63 4A 76 [07:44:38]CommunicateWithHost err = 0 [07:44:38]CheckOFDResponse [07:44:38]1017 (14) - 77093643461234 [07:44:38]1041 (16) - 0000000000874692 [07:44:38]1040 (4) - 92214 [07:44:38]1012 (4) - 13.09.2024 01:31 [07:44:38]1206 (1) - 0 [07:44:38]OFD Sender: Remove packet 92214 [07:44:38]ProducePacketName [07:44:38]name=ofd_packets/00092214 [07:44:38]NVStorageDeleteData [07:44:38]Write to MH i2c: 01 00 00 8A 5B E5 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 07 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 07 00 8A 5B 00 00 00 00 00 CA 0C C2 [07:44:38]RasterBufferAndPrint [07:44:38]line [07:44:38]line [07:44:38]line [07:44:38]line [07:44:38]line [07:44:38]written 0, free lines is 3279 [07:44:38]MH_Cut [07:44:38]Write to MH i2c: D1 01 00 91 5B 01 BE [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: D1 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: D1 01 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: D1 01 00 91 5B 00 BD [07:44:38]Write to MH i2c: 01 00 00 92 5B ED [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]OFD Sender: No OFD packet to send [07:44:39]*** Cut start [07:44:39]*** Purtial cut [07:44:39]*** Stage 1: CUTSNS_PIN = 1 [07:44:41]Read from MH i2c: 01 [07:44:41]MH_I2C_Read... [07:44:41]*** Stop cut motor [07:44:41]*** Cut end [07:44:41]Read from MH i2c: 01 07 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 07 00 92 5B 00 00 00 00 00 FF 0F 02 [07:44:41]process_action close_receipt done [07:44:41]requested_data is exist [07:44:41]produce_requested_data [07:44:41]requested_item fm.sn is exist - process it [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 11 00 00 [07:44:41]Write to MH i2c: E2 08 00 93 5B 80 11 00 00 00 00 00 00 68 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 93 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [07:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:44:41]wFMCommunicate OK [07:44:41]requested_item fd.num is exist - process it [07:44:41]SAM_PROTO_GetFieldsCounters [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 13 00 00 [07:44:41]Write to MH i2c: E2 08 00 94 5B 80 13 00 00 00 00 00 00 6B [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 62 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 62 00 94 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 36 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [07:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 36 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:41]wFMCommunicate OK [07:44:41]SAM_PROTO_GetFieldsCounters done [07:44:41]requested_item shift.num is exist - process it [07:44:41]requested_item shift.opened is exist - process it [07:44:41]req_shift_opened [07:44:41]FM_GetShiftState [07:44:41]SAM_PROTO_GetShiftState [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 13 01 00 [07:44:41]Write to MH i2c: E2 08 00 95 5B 80 13 01 00 00 00 00 00 6D [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0E 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0E 00 95 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F9 [07:44:41]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:44:41]wFMCommunicate OK [07:44:41]SAM_PROTO_GetShiftState done [07:44:41]FM_GetShiftState done [07:44:41]req_shift_opened done [07:44:41]requested_item shift.open_date is exist - process it [07:44:41]req_shift_open_date [07:44:41]req_shift_open_date done [07:44:41]produce_requested_data done [07:44:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92214,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:44:41]process_action_free close_receipt [07:44:41]json_value_free [07:44:41]json_value_free done [07:44:41]process_json_proto returns [07:44:41]Send response to host [07:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92214,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:44:41]free response buf [07:44:41]execute_script done [07:44:41]execute_script returns [07:44:41]free content buf [07:44:41]Sock 8.Close socket [07:44:41]Sock 8.Thread stoped [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:11]accept exits with 9 [07:46:11]New connection [07:46:11]New thread 3067399524 created [07:46:11]Thread 3067256164 joined [07:46:11]Waiting for new connection... [07:46:11] Sock 9.Parse request [07:46:11]Sock 9.Check first char [07:46:11]Sock 9.First char is OK [07:46:11]request: POST /json_proto HTTP/1.0 [07:46:11]Method: POST [07:46:11]URL: /json_proto [07:46:11]Method is POST - this is cgi request [07:46:11]url: /json_proto [07:46:11]query_string will be loaded in cgi processing [07:46:11]execute_cgi json_proto POST (null) [07:46:11]execute_cgi path=json_proto method=POST [07:46:11]POST find Content-Length [07:46:11]Host: 172.17.57.71:8080 [07:46:11]Content-Length: 895 [07:46:11]Content-Type: application/json [07:46:11] [07:46:11]POST finish read [07:46:11]Found Content-Length = 895 [07:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127148", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:11]execute_script... [07: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 : (3)127148", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:11]POST & json_proto [07:46:11]process_json_proto [07:46:11]json parsed OK: [07:46:11]protocol is kg_v1.0 [07:46:11]action value=close_receipt [07:46:11]process_action close_receipt [07:46:11]cmd_close_receipt [07:46:11]MH_GetDate [07:46:11]Write to MH i2c: F0 00 00 96 5B E0 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: F0 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: F0 09 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: F0 09 00 96 5B 00 CE ED E3 66 33 3A A4 66 64 [07:46:11]GetLastDocTimeStamp 1726213485 [07:46:11]current date 1726213582 [07:46:11]FM_GetShiftState [07:46:11]SAM_PROTO_GetShiftState [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 13 01 00 [07:46:11]Write to MH i2c: E2 08 00 97 5B 80 13 01 00 00 00 00 00 6F [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 97 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 FB [07:46:12]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_GetShiftState done [07:46:12]FM_GetShiftState done [07:46:12]opened in 1726186930 [07:46:12]opened+sec_in_day 1726273330 [07:46:12]quantity*price = 7500 [07:46:12]sum+1 = 7501 [07:46:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40052403 Nestle KIT-KAT плоский 41,5г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 23 13.09.2024 07:46 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92215 ФПД: 198981609071442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074622&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92215&fm=198981609071442&tin=02508201610067®Number=0000000000091423&sum=16500 0 [07:46:13]StoreToDocumentArchive [07:46:13]shift 505 fd 92215 [07:46:13]save to /storage/0505/doc_00092215 [07:46:13]save last doc name /storage/0505/doc_00092215 to /storage/kkm_last_doc_name [07:46:13]save OK [07:46:13]Clear old archive folders... [07:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=393 [07:46:13]tlvbuf is 0164BAC0 [07:46:13]SAM_PROTO_ClearQueue [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 09 00 00 [07:46:13]Write to MH i2c: E2 08 00 A4 5B 80 09 00 00 00 00 00 00 71 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 A4 5B 00 90 00 73 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_ClearQueue done [07:46:13]KKMCreateOFDPacket [07:46:13]OFDProtocolAddRootSTLVToBuf [07:46:13]FM_MakeSignedData [07:46:13]FM_MakeSignedData [07:46:13]SAM_PROTO_SignData [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 01 02 [07:46:13]Write to MH i2c: E2 08 00 A5 5B 80 0D 01 02 00 00 00 00 79 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 A5 5B 00 90 00 74 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=255 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 [07:46:13]Write to MH i2c: E2 02 01 A6 5B 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 B9 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 A6 5B 00 90 00 75 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=152 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 CE ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 68 01 00 35 04 06 00 B4 F9 04 20 23 52 [07:46:13]Write to MH i2c: E2 9B 00 A7 5B 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 CE ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 68 01 00 35 04 06 00 B4 F9 04 20 23 52 00 00 E7 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 A7 5B 00 90 00 76 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 03 02 [07:46:13]Write to MH i2c: E2 08 00 A8 5B 80 0D 03 02 00 00 00 00 7E [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0B 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0B 00 A8 5B 00 0B CE 82 3F 6C CF 62 3A 90 00 F0 [07:46:13]RAPDU: 0B CE 82 3F 6C CF 62 3A 90 00 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_SignData done [07:46:13]FM_MakeSignedData done [07:46:13]CreateOFDProtocolMessage [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 11 00 00 [07:46:13]Write to MH i2c: E2 08 00 A9 5B 80 11 00 00 00 00 00 00 7E [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 A9 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D5 [07:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:46:13]wFMCommunicate OK [07:46:13]CreateOFDProtocolMessage done [07:46:13]OFDSenderStorePacket 92215 [07:46:13]StoreOFDPacket docnum=92215 [07:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9D 01 00 00 A2 56 95 01 59 7E 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 CE ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 68 01 00 35 04 06 00 B4 F9 04 20 23 52 0B CE 82 3F 6C CF 62 3A [07:46:13]CheckFolder [07:46:13]dirname=/storage/ofd_packets [07:46:13]CheckFolder done [07:46:13]ProducePacketName [07:46:13]name=ofd_packets/00092215 [07:46:13]NVStorageSaveData ofd_packets/00092215 [07:46:13]File name is /storage/ofd_packets/00092215 [07:46:13]Write 443 bytes [07:46:13]NVStorageSaveData done [07:46:13]OFDSenderStorePacket done [07:46:13]KKMCreateOFDPacket done [07:46:13]NVStorageSaveData kkm_last_timestamp [07:46:13]File name is /storage/kkm_last_timestamp [07:46:13]Write 4 bytes [07:46:13]NVStorageSaveData done [07:46:13]ExternCall_PrintAddStr [07:46:13]wPrintStart [07:46:13]Write to MH i2c: 01 00 00 AA 5B 05 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 AA 5B 00 00 00 00 00 FF 0F 1A [07:46:13]RasterBufferAndPrint [07:46:13]line Счет N : (3)127148 [07:46:13]line ИНН: 02508201610067 [07:46:14]line Контрольно-Кассовый Чек [07:46:14]line ПРОДАЖА [07:46:14]line Товар: 4870001154059 [07:46:14]line Напиток Lipton IceTea 0,5л зел чай [07:46:14]line 1.000 * 75.00 [07:46:14]line = 75.00 [07:46:14]line НДС 12% НСП 1% [07:46:14]line > о реализуемом товаре [07:46:14]line Товар: 40052403 [07:46:14]line Nestle KIT-KAT плоский 41,5г [07:46:14]line 1.000 * 90.00 [07:46:14]line = 90.00 [07:46:14]line НДС 12% НСП 1% [07:46:14]line > о реализуемом товаре [07:46:14]line ИТОГО: 165.00 [07:46:14]line НСП 1% : 1.46 [07:46:14]line НДС 12% : 17.52 [07:46:14]line Наличными: 165.00 [07:46:14]line Безнал.: 0.00 [07:46:14]line Место: АЗС № 5 "Партнер Нефть" [07:46:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:46:14]line СНО: Общий режим [07:46:14]line Чек 23 13.09.2024 07:46 [07:46:14]line Смена: 505 ФФД: 1.0 [07:46:14]line ЗНМ: 03000000022 [07:46:14]line РНМ: 0000000000091423 [07:46:14]line Версия ККМ: 001 [07:46:14]line ФМ: 0000000000874692 [07:46:14]line ФД: 92215 [07:46:14]line ФПД: 198981609071442 [07:46:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074622&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92215&fm=198981609071442&tin=02508201610067®Number=0000000000091423&sum=16500 [07:46:14]line 0 [07:46:14]OFD Sender: Processing packet 92215 [packets to send 63, broken 62] [07:46:14]ProducePacketName [07:46:14]name=ofd_packets/00092215 [07:46:14]OFD Sender: To server: pG, [07:46:14]CommunicateWithHost lk.salyk.kg:30040 [07:46:14]ConnectInit lk.salyk.kg [07:46:14]written 0, free lines is 4095 [07:46:14]Connected sock=10 [07:46:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9D 01 00 00 A2 56 95 01 59 7E 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 CE ED E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 68 01 00 35 04 06 00 B4 F9 04 20 23 52 0B CE 82 3F 6C CF 62 3A [07:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 22 E7 47 00 D4 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 34 36 39 32 10 04 04 00 37 68 01 00 F4 03 04 00 4D 96 E3 66 B6 04 01 00 00 C9 76 B4 E6 BE 0E D4 47 [07:46:14]CommunicateWithHost err = 0 [07:46:14]CheckOFDResponse [07:46:14]1017 (14) - 77093643461234 [07:46:14]1041 (16) - 0000000000874692 [07:46:14]1040 (4) - 92215 [07:46:14]1012 (4) - 13.09.2024 01:33 [07:46:14]1206 (1) - 0 [07:46:14]OFD Sender: Remove packet 92215 [07:46:14]ProducePacketName [07:46:14]name=ofd_packets/00092215 [07:46:14]NVStorageDeleteData [07:46:14]Write to MH i2c: 01 00 00 D9 5B 34 [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 07 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 07 00 D9 5B 00 00 00 00 00 C0 0C 07 [07:46:14]RasterBufferAndPrint [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]written 0, free lines is 3273 [07:46:14]MH_Cut [07:46:14]Write to MH i2c: D1 01 00 E0 5B 01 0D [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 01 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 01 00 E0 5B 00 0C [07:46:14]Write to MH i2c: 01 00 00 E1 5B 3C [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]OFD Sender: No OFD packet to send [07:46:15]*** Cut start [07:46:15]*** Purtial cut [07:46:15]*** Stage 1: CUTSNS_PIN = 1 [07:46:17]Read from MH i2c: 01 [07:46:17]MH_I2C_Read... [07:46:17]*** Stop cut motor [07:46:17]*** Cut end [07:46:17]Read from MH i2c: 01 07 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: 01 07 00 E1 5B 00 00 00 00 00 FF 0F 51 [07:46:17]process_action close_receipt done [07:46:17]requested_data is exist [07:46:17]produce_requested_data [07:46:17]requested_item fm.sn is exist - process it [07:46:17]wFMCommunicate request_size=4 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 11 00 00 [07:46:17]Write to MH i2c: E2 08 00 E2 5B 80 11 00 00 00 00 00 00 B7 [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 17 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 17 00 E2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0E [07:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:46:17]wFMCommunicate OK [07:46:17]requested_item fd.num is exist - process it [07:46:17]SAM_PROTO_GetFieldsCounters [07:46:17]wFMCommunicate request_size=4 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 13 00 00 [07:46:17]Write to MH i2c: E2 08 00 E3 5B 80 13 00 00 00 00 00 00 BA [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 62 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 62 00 E3 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 37 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [07:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 37 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:17]wFMCommunicate OK [07:46:17]SAM_PROTO_GetFieldsCounters done [07:46:17]requested_item shift.num is exist - process it [07:46:17]requested_item shift.opened is exist - process it [07:46:17]req_shift_opened [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 E4 5B 80 13 01 00 00 00 00 00 BC [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 E4 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 48 [07:46:17]RAPDU: 09 00 01 B2 85 E3 66 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]req_shift_opened done [07:46:17]requested_item shift.open_date is exist - process it [07:46:17]req_shift_open_date [07:46:17]req_shift_open_date done [07:46:17]produce_requested_data done [07:46:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92215,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:46:17]process_action_free close_receipt [07:46:17]json_value_free [07:46:17]json_value_free done [07:46:17]process_json_proto returns [07:46:17]Send response to host [07:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92215,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:46:17]free response buf [07:46:17]execute_script done [07:46:17]execute_script returns [07:46:17]free content buf [07:46:17]Sock 9.Close socket [07:46:17]Sock 9.Thread stoped [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:49]accept exits with 8 [07:48:49]New connection [07:48:49]New thread 3067256164 created [07:48:49]Thread 3067399524 joined [07:48:49]Waiting for new connection... [07:48:49] Sock 8.Parse request [07:48:49]Sock 8.Check first char [07:48:49]Sock 8.First char is OK [07:48:49]request: POST /json_proto HTTP/1.0 [07:48:49]Method: POST [07:48:49]URL: /json_proto [07:48:49]Method is POST - this is cgi request [07:48:49]url: /json_proto [07:48:49]query_string will be loaded in cgi processing [07:48:49]execute_cgi json_proto POST (null) [07:48:49]execute_cgi path=json_proto method=POST [07:48:49]POST find Content-Length [07:48:49]Host: 172.17.57.71:8080 [07:48:49]Content-Length: 803 [07:48:49]Content-Type: application/json [07:48:49] [07:48:49]POST finish read [07:48:49]Found Content-Length = 803 [07:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127149", "tax_sys" : 0, "items" : [ { "code": "4650063115881", "name": "\u041C\u0430\u0441\u043B\u043E GPN Premium N 5W-40 API SN/CF 1\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:49]execute_script... [07:48: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 : (3)127149", "tax_sys" : 0, "items" : [ { "code": "4650063115881", "name": "\u041C\u0430\u0441\u043B\u043E GPN Premium N 5W-40 API SN/CF 1\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:49]POST & json_proto [07:48:49]process_json_proto [07:48:49]json parsed OK: [07:48:49]protocol is kg_v1.0 [07:48:49]action value=close_receipt [07:48:49]process_action close_receipt [07:48:49]cmd_close_receipt [07:48:49]MH_GetDate [07:48:49]Write to MH i2c: F0 00 00 E5 5B 2F [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 09 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 09 00 E5 5B 00 6B EE E3 66 33 3A A4 66 51 [07:48:49]GetLastDocTimeStamp 1726213582 [07:48:49]current date 1726213739 [07:48:49]FM_GetShiftState [07:48:49]SAM_PROTO_GetShiftState [07:48:49]wFMCommunicate request_size=4 [07:48:49]MH_SAM_APDU [07:48:49]CAPDU: 80 13 01 00 [07:48:49]Write to MH i2c: E2 08 00 E6 5B 80 13 01 00 00 00 00 00 BE [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:49]Read from MH i2c: E2 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 E6 5B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 4A [07:48:49]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:48:49]wFMCommunicate OK [07:48:49]SAM_PROTO_GetShiftState done [07:48:49]FM_GetShiftState done [07:48:49]opened in 1726186930 [07:48:49]opened+sec_in_day 1726273330 [07:48:49]quantity*price = 63000 [07:48:49]sum+1 = 63001 [07:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 630.00 НСП 1% : 5.57 НДС 12% : 66.90 Наличными: 0.00 Безнал.: 630.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 24 13.09.2024 07:48 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92216 ФПД: 236709035464053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074859&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92216&fm=236709035464053&tin=02508201610067®Number=0000000000091423&sum=63000 0 [07:48:50]StoreToDocumentArchive [07:48:50]shift 505 fd 92216 [07:48:50]save to /storage/0505/doc_00092216 [07:48:50]save last doc name /storage/0505/doc_00092216 to /storage/kkm_last_doc_name [07:48:50]save OK [07:48:50]Clear old archive folders... [07:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=286 [07:48:50]tlvbuf is 016E34C0 [07:48:50]SAM_PROTO_ClearQueue [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 09 00 00 [07:48:50]Write to MH i2c: E2 08 00 F3 5B 80 09 00 00 00 00 00 00 C0 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 F3 5B 00 90 00 C2 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]SAM_PROTO_ClearQueue done [07:48:50]KKMCreateOFDPacket [07:48:50]OFDProtocolAddRootSTLVToBuf [07:48:50]FM_MakeSignedData [07:48:50]FM_MakeSignedData [07:48:50]SAM_PROTO_SignData [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 01 02 [07:48:50]Write to MH i2c: E2 08 00 F4 5B 80 0D 01 02 00 00 00 00 C8 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 F4 5B 00 90 00 C3 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]wFMCommunicate request_size=255 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6B EE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 [07:48:50]Write to MH i2c: E2 02 01 F5 5B 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6B EE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 00 00 FE [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 F5 5B 00 90 00 C4 [07:48:51]RAPDU: 90 00 [07:48:51]wFMCommunicate OK [07:48:51]wFMCommunicate request_size=45 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 0D 02 02 28 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 68 01 00 35 04 06 00 D7 49 1D F9 55 75 [07:48:51]Write to MH i2c: E2 30 00 F6 5B 80 0D 02 02 28 00 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 68 01 00 35 04 06 00 D7 49 1D F9 55 75 00 00 C1 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 F6 5B 00 90 00 C5 [07:48:51]RAPDU: 90 00 [07:48:51]wFMCommunicate OK [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 0D 03 02 [07:48:51]Write to MH i2c: E2 08 00 F7 5B 80 0D 03 02 00 00 00 00 CD [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0B 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0B 00 F7 5B 00 9F 3B 06 CF 11 D9 E1 AE 90 00 F6 [07:48:51]RAPDU: 9F 3B 06 CF 11 D9 E1 AE 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_SignData done [07:48:51]FM_MakeSignedData done [07:48:51]CreateOFDProtocolMessage [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 11 00 00 [07:48:51]Write to MH i2c: E2 08 00 F8 5B 80 11 00 00 00 00 00 00 CD [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 17 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 17 00 F8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 24 [07:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:48:51]wFMCommunicate OK [07:48:51]CreateOFDProtocolMessage done [07:48:51]OFDSenderStorePacket 92216 [07:48:51]StoreOFDPacket docnum=92216 [07:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 63 CE 2A 01 84 1C 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6B EE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 68 01 00 35 04 06 00 D7 49 1D F9 55 75 9F 3B 06 CF 11 D9 E1 AE [07:48:51]CheckFolder [07:48:51]dirname=/storage/ofd_packets [07:48:51]CheckFolder done [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00092216 [07:48:51]NVStorageSaveData ofd_packets/00092216 [07:48:51]File name is /storage/ofd_packets/00092216 [07:48:51]Write 336 bytes [07:48:51]NVStorageSaveData done [07:48:51]OFDSenderStorePacket done [07:48:51]KKMCreateOFDPacket done [07:48:51]NVStorageSaveData kkm_last_timestamp [07:48:51]File name is /storage/kkm_last_timestamp [07:48:51]Write 4 bytes [07:48:51]NVStorageSaveData done [07:48:51]ExternCall_PrintAddStr [07:48:51]wPrintStart [07:48:51]Write to MH i2c: 01 00 00 F9 5B 54 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 F9 5B 00 00 00 00 00 FF 0F 69 [07:48:51]RasterBufferAndPrint [07:48:51]line Счет N : (3)127149 [07:48:51]line ИНН: 02508201610067 [07:48:51]line Контрольно-Кассовый Чек [07:48:51]line ПРОДАЖА [07:48:51]line Товар: 4650063115881 [07:48:51]line Масло GPN Premium N 5W-40 API SN/CF 1л [07:48:51]line 1.000 * 630.00 [07:48:51]line = 630.00 [07:48:51]line НДС 12% НСП 1% [07:48:51]line > о реализуемом товаре [07:48:51]line ИТОГО: 630.00 [07:48:51]line НСП 1% : 5.57 [07:48:51]line НДС 12% : 66.90 [07:48:51]line Наличными: 0.00 [07:48:51]line Безнал.: 630.00 [07:48:51]line Место: АЗС № 5 "Партнер Нефть" [07:48:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:48:51]line СНО: Общий режим [07:48:51]line Чек 24 13.09.2024 07:48 [07:48:51]line Смена: 505 ФФД: 1.0 [07:48:51]line ЗНМ: 03000000022 [07:48:51]line РНМ: 0000000000091423 [07:48:51]line Версия ККМ: 001 [07:48:51]line Платежная система: Бакай Банк [07:48:51]line ФМ: 0000000000874692 [07:48:51]line ФД: 92216 [07:48:51]line ФПД: 236709035464053 [07:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T074859&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92216&fm=236709035464053&tin=02508201610067®Number=0000000000091423&sum=63000 [07:48:51]line 0 [07:48:51]OFD Sender: Processing packet 92216 [packets to send 63, broken 62] [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00092216 [07:48:51]OFD Sender: To server: pG, [07:48:51]CommunicateWithHost lk.salyk.kg:30040 [07:48:51]ConnectInit lk.salyk.kg [07:48:51]written 0, free lines is 4095 [07:48:51]Connected sock=10 [07:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 63 CE 2A 01 84 1C 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6B EE E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 68 01 00 35 04 06 00 D7 49 1D F9 55 75 9F 3B 06 CF 11 D9 E1 AE [07:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3F BD 47 00 F3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 68 01 00 F4 03 04 00 EB 96 E3 66 B6 04 01 00 00 C0 50 03 A7 DA DC D5 C9 [07:48:52]CommunicateWithHost err = 0 [07:48:52]CheckOFDResponse [07:48:52]1017 (14) - 77093643461234 [07:48:52]1041 (16) - 0000000000874692 [07:48:52]1040 (4) - 92216 [07:48:52]1012 (4) - 13.09.2024 01:35 [07:48:52]1206 (1) - 0 [07:48:52]OFD Sender: Remove packet 92216 [07:48:52]ProducePacketName [07:48:52]name=ofd_packets/00092216 [07:48:52]NVStorageDeleteData [07:48:52]Write to MH i2c: 01 00 00 24 5C 80 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 24 5C 00 00 00 00 00 FC 0C 8F [07:48:52]RasterBufferAndPrint [07:48:52]line [07:48:52]line [07:48:52]line [07:48:52]line [07:48:52]line [07:48:52]written 0, free lines is 3333 [07:48:52]MH_Cut [07:48:52]Write to MH i2c: D1 01 00 2B 5C 01 59 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: D1 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: D1 01 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: D1 01 00 2B 5C 00 58 [07:48:52]Write to MH i2c: 01 00 00 2C 5C 88 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]OFD Sender: No OFD packet to send [07:48:52]*** Cut start [07:48:52]*** Purtial cut [07:48:52]*** Stage 1: CUTSNS_PIN = 1 [07:48:54]Read from MH i2c: 01 [07:48:54]MH_I2C_Read... [07:48:54]*** Stop cut motor [07:48:54]*** Cut end [07:48:54]Read from MH i2c: 01 07 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: 01 07 00 2C 5C 00 00 00 00 00 FF 0F 9D [07:48:54]process_action close_receipt done [07:48:54]requested_data is exist [07:48:54]produce_requested_data [07:48:54]requested_item fm.sn is exist - process it [07:48:54]wFMCommunicate request_size=4 [07:48:54]MH_SAM_APDU [07:48:54]CAPDU: 80 11 00 00 [07:48:54]Write to MH i2c: E2 08 00 2D 5C 80 11 00 00 00 00 00 00 03 [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:54]Read from MH i2c: E2 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 17 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 17 00 2D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5A [07:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:48:54]wFMCommunicate OK [07:48:54]requested_item fd.num is exist - process it [07:48:54]SAM_PROTO_GetFieldsCounters [07:48:54]wFMCommunicate request_size=4 [07:48:54]MH_SAM_APDU [07:48:54]CAPDU: 80 13 00 00 [07:48:54]Write to MH i2c: E2 08 00 2E 5C 80 13 00 00 00 00 00 00 06 [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:55]Read from MH i2c: E2 [07:48:55]MH_I2C_Read... [07:48:55]Read from MH i2c: E2 62 00 [07:48:55]MH_I2C_Read... [07:48:55]Read from MH i2c: E2 62 00 2E 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 38 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [07:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 38 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:55]wFMCommunicate OK [07:48:55]SAM_PROTO_GetFieldsCounters done [07:48:55]requested_item shift.num is exist - process it [07:48:55]requested_item shift.opened is exist - process it [07:48:55]req_shift_opened [07:48:55]FM_GetShiftState [07:48:55]SAM_PROTO_GetShiftState [07:48:55]wFMCommunicate request_size=4 [07:48:55]MH_SAM_APDU [07:48:55]CAPDU: 80 13 01 00 [07:48:55]Write to MH i2c: E2 08 00 2F 5C 80 13 01 00 00 00 00 00 08 [07:48:55]Write i2c OK [07:48:55]MH_I2C_Read... [07:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:55]Read from MH i2c: E2 [07:48:55]MH_I2C_Read... [07:48:55]Read from MH i2c: E2 0E 00 [07:48:55]MH_I2C_Read... [07:48:55]Read from MH i2c: E2 0E 00 2F 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 94 [07:48:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:48:55]wFMCommunicate OK [07:48:55]SAM_PROTO_GetShiftState done [07:48:55]FM_GetShiftState done [07:48:55]req_shift_opened done [07:48:55]requested_item shift.open_date is exist - process it [07:48:55]req_shift_open_date [07:48:55]req_shift_open_date done [07:48:55]produce_requested_data done [07:48:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92216,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:48:55]process_action_free close_receipt [07:48:55]json_value_free [07:48:55]json_value_free done [07:48:55]process_json_proto returns [07:48:55]Send response to host [07:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92216,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:48:55]free response buf [07:48:55]execute_script done [07:48:55]execute_script returns [07:48:55]free content buf [07:48:55]Sock 8.Close socket [07:48:55]Sock 8.Thread stoped [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: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:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:42]accept exits with 9 [07:58:42]New connection [07:58:42]New thread 3067399524 created [07:58:42]Thread 3067256164 joined [07:58:42]Waiting for new connection... [07:58:42] Sock 9.Parse request [07:58:42]Sock 9.Check first char [07:58:42]Sock 9.First char is OK [07:58:42]request: POST /json_proto HTTP/1.0 [07:58:42]Method: POST [07:58:42]URL: /json_proto [07:58:42]Method is POST - this is cgi request [07:58:42]url: /json_proto [07:58:42]query_string will be loaded in cgi processing [07:58:42]execute_cgi json_proto POST (null) [07:58:42]execute_cgi path=json_proto method=POST [07:58:42]POST find Content-Length [07:58:42]Host: 172.17.57.71:8080 [07:58:42]Content-Length: 628 [07:58:42]Content-Type: application/json [07:58:42] [07:58:42]POST finish read [07:58:42]Found Content-Length = 628 [07:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127150", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:42]execute_script... [07: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 : (3)127150", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:42]POST & json_proto [07:58:42]process_json_proto [07:58:42]json parsed OK: [07:58:42]protocol is kg_v1.0 [07:58:42]action value=close_receipt [07:58:42]process_action close_receipt [07:58:42]cmd_close_receipt [07:58:42]MH_GetDate [07:58:42]Write to MH i2c: F0 00 00 30 5C 7B [07:58:42]Write i2c OK [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: F0 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: F0 09 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: F0 09 00 30 5C 00 BC F0 E3 66 33 3A A4 66 F0 [07:58:42]GetLastDocTimeStamp 1726213739 [07:58:42]current date 1726214332 [07:58:42]FM_GetShiftState [07:58:42]SAM_PROTO_GetShiftState [07:58:42]wFMCommunicate request_size=4 [07:58:42]MH_SAM_APDU [07:58:42]CAPDU: 80 13 01 00 [07:58:42]Write to MH i2c: E2 08 00 31 5C 80 13 01 00 00 00 00 00 0A [07:58:42]Write i2c OK [07:58:42]MH_I2C_Read... [07:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:42]Read from MH i2c: E2 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 0E 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 0E 00 31 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 96 [07:58:42]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:58:42]wFMCommunicate OK [07:58:42]SAM_PROTO_GetShiftState done [07:58:42]FM_GetShiftState done [07:58:42]opened in 1726186930 [07:58:42]opened+sec_in_day 1726273330 [07:58:42]quantity*price = 13000 [07:58:42]sum+1 = 13001 [07:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 25 13.09.2024 07:58 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92217 ФПД: 160875913817543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T075852&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92217&fm=160875913817543&tin=02508201610067®Number=0000000000091423&sum=13000 0 [07:58:43]StoreToDocumentArchive [07:58:43]shift 505 fd 92217 [07:58:43]save to /storage/0505/doc_00092217 [07:58:43]save last doc name /storage/0505/doc_00092217 to /storage/kkm_last_doc_name [07:58:43]save OK [07:58:43]Clear old archive folders... [07:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:58:43]tlvbuf is 01783ED0 [07:58:43]SAM_PROTO_ClearQueue [07:58:43]wFMCommunicate request_size=4 [07:58:43]MH_SAM_APDU [07:58:43]CAPDU: 80 09 00 00 [07:58:43]Write to MH i2c: E2 08 00 3E 5C 80 09 00 00 00 00 00 00 0C [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:43]Read from MH i2c: E2 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 03 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 03 00 3E 5C 00 90 00 0E [07:58:43]RAPDU: 90 00 [07:58:43]wFMCommunicate OK [07:58:43]SAM_PROTO_ClearQueue done [07:58:43]KKMCreateOFDPacket [07:58:43]OFDProtocolAddRootSTLVToBuf [07:58:43]FM_MakeSignedData [07:58:43]FM_MakeSignedData [07:58:43]SAM_PROTO_SignData [07:58:43]wFMCommunicate request_size=4 [07:58:43]MH_SAM_APDU [07:58:43]CAPDU: 80 0D 01 02 [07:58:43]Write to MH i2c: E2 08 00 3F 5C 80 0D 01 02 00 00 00 00 14 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:43]Read from MH i2c: E2 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 03 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 03 00 3F 5C 00 90 00 0F [07:58:43]RAPDU: 90 00 [07:58:43]wFMCommunicate OK [07:58:43]wFMCommunicate request_size=255 [07:58:43]MH_SAM_APDU [07:58:43]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 19 00 00 00 F4 03 04 00 BC F0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [07:58:43]Write to MH i2c: E2 02 01 40 5C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 19 00 00 00 F4 03 04 00 BC F0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 31 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 40 5C 00 90 00 10 [07:58:44]RAPDU: 90 00 [07:58:44]wFMCommunicate OK [07:58:44]wFMCommunicate request_size=35 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 68 01 00 35 04 06 00 92 50 D7 B2 2D C7 [07:58:44]Write to MH i2c: E2 26 00 41 5C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 68 01 00 35 04 06 00 92 50 D7 B2 2D C7 00 00 0F [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 41 5C 00 90 00 11 [07:58:44]RAPDU: 90 00 [07:58:44]wFMCommunicate OK [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 0D 03 02 [07:58:44]Write to MH i2c: E2 08 00 42 5C 80 0D 03 02 00 00 00 00 19 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0B 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0B 00 42 5C 00 92 EE FE F6 2C 3A C3 DB 90 00 92 [07:58:44]RAPDU: 92 EE FE F6 2C 3A C3 DB 90 00 [07:58:44]wFMCommunicate OK [07:58:44]SAM_PROTO_SignData done [07:58:44]FM_MakeSignedData done [07:58:44]CreateOFDProtocolMessage [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 11 00 00 [07:58:44]Write to MH i2c: E2 08 00 43 5C 80 11 00 00 00 00 00 00 19 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 17 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 17 00 43 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [07:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:58:44]wFMCommunicate OK [07:58:44]CreateOFDProtocolMessage done [07:58:44]OFDSenderStorePacket 92217 [07:58:44]StoreOFDPacket docnum=92217 [07:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 2D 3C 20 01 BD 5E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 19 00 00 00 F4 03 04 00 BC F0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 68 01 00 35 04 06 00 92 50 D7 B2 2D C7 92 EE FE F6 2C 3A C3 DB [07:58:44]CheckFolder [07:58:44]dirname=/storage/ofd_packets [07:58:44]CheckFolder done [07:58:44]ProducePacketName [07:58:44]name=ofd_packets/00092217 [07:58:44]NVStorageSaveData ofd_packets/00092217 [07:58:44]File name is /storage/ofd_packets/00092217 [07:58:44]Write 326 bytes [07:58:44]NVStorageSaveData done [07:58:44]OFDSenderStorePacket done [07:58:44]KKMCreateOFDPacket done [07:58:44]NVStorageSaveData kkm_last_timestamp [07:58:44]File name is /storage/kkm_last_timestamp [07:58:44]Write 4 bytes [07:58:44]NVStorageSaveData done [07:58:44]ExternCall_PrintAddStr [07:58:44]wPrintStart [07:58:44]Write to MH i2c: 01 00 00 44 5C A0 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: 01 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: 01 07 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: 01 07 00 44 5C 00 00 00 00 00 FF 0F B5 [07:58:44]RasterBufferAndPrint [07:58:44]line Счет N : (3)127150 [07:58:44]line ИНН: 02508201610067 [07:58:44]line Контрольно-Кассовый Чек [07:58:44]line ПРОДАЖА [07:58:44]line Товар: 2000036230011 [07:58:44]line Кофе Латте XL(GABB TRADE) [07:58:44]line 1.000 * 130.00 [07:58:44]line = 130.00 [07:58:44]line НДС 12% НСП 1% [07:58:44]line > о реализуемом товаре [07:58:44]line ИТОГО: 130.00 [07:58:44]line НСП 1% : 1.15 [07:58:44]line НДС 12% : 13.80 [07:58:44]line Наличными: 130.00 [07:58:44]line Безнал.: 0.00 [07:58:44]line Место: АЗС № 5 "Партнер Нефть" [07:58:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:58:44]line СНО: Общий режим [07:58:44]line Чек 25 13.09.2024 07:58 [07:58:44]line Смена: 505 ФФД: 1.0 [07:58:44]line ЗНМ: 03000000022 [07:58:44]line РНМ: 0000000000091423 [07:58:44]line Версия ККМ: 001 [07:58:44]line ФМ: 0000000000874692 [07:58:44]line ФД: 92217 [07:58:44]line ФПД: 160875913817543 [07:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T075852&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92217&fm=160875913817543&tin=02508201610067®Number=0000000000091423&sum=13000 [07:58:44]OFD Sender: Processing packet 92217 [packets to send 63, broken 62] [07:58:44]ProducePacketName [07:58:44]name=ofd_packets/00092217 [07:58:44]OFD Sender: To server: pG, [07:58:44]CommunicateWithHost lk.salyk.kg:30040 [07:58:44]ConnectInit lk.salyk.kg [07:58:44]line 0 [07:58:44]written 0, free lines is 4095 [07:58:44]Connected sock=10 [07: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 34 36 39 32 28 01 00 00 2D 3C 20 01 BD 5E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 19 00 00 00 F4 03 04 00 BC F0 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 68 01 00 35 04 06 00 92 50 D7 B2 2D C7 92 EE FE F6 2C 3A C3 DB [07:58:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 36 82 47 00 4B 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 34 36 39 32 10 04 04 00 39 68 01 00 F4 03 04 00 3C 99 E3 66 B6 04 01 00 00 55 53 58 2C 11 6F 99 D8 [07:58:45]CommunicateWithHost err = 0 [07:58:45]CheckOFDResponse [07:58:45]1017 (14) - 77093643461234 [07:58:45]1041 (16) - 0000000000874692 [07:58:45]1040 (4) - 92217 [07:58:45]1012 (4) - 13.09.2024 01:45 [07:58:45]1206 (1) - 0 [07:58:45]OFD Sender: Remove packet 92217 [07:58:45]ProducePacketName [07:58:45]name=ofd_packets/00092217 [07:58:45]NVStorageDeleteData [07:58:45]Write to MH i2c: 01 00 00 6C 5C C8 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 6C 5C 00 00 00 00 00 33 0D 0F [07:58:45]RasterBufferAndPrint [07:58:45]line [07:58:45]line [07:58:45]line [07:58:45]line [07:58:45]line [07:58:45]written 0, free lines is 3388 [07:58:45]MH_Cut [07:58:45]Write to MH i2c: D1 01 00 73 5C 01 A1 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: D1 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: D1 01 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: D1 01 00 73 5C 00 A0 [07:58:45]Write to MH i2c: 01 00 00 74 5C D0 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]OFD Sender: No OFD packet to send [07:58:45]*** Cut start [07:58:45]*** Purtial cut [07:58:45]*** Stage 1: CUTSNS_PIN = 1 [07:58:47]Read from MH i2c: 01 [07:58:47]MH_I2C_Read... [07:58:47]*** Stop cut motor [07:58:47]*** Cut end [07:58:47]Read from MH i2c: 01 07 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 74 5C 00 00 00 00 00 FF 0F E5 [07:58:47]process_action close_receipt done [07:58:47]requested_data is exist [07:58:47]produce_requested_data [07:58:47]requested_item fm.sn is exist - process it [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 11 00 00 [07:58:47]Write to MH i2c: E2 08 00 75 5C 80 11 00 00 00 00 00 00 4B [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 75 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [07:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:58:47]wFMCommunicate OK [07:58:47]requested_item fd.num is exist - process it [07:58:47]SAM_PROTO_GetFieldsCounters [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 13 00 00 [07:58:47]Write to MH i2c: E2 08 00 76 5C 80 13 00 00 00 00 00 00 4E [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:48]Read from MH i2c: E2 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 62 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 62 00 76 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 39 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [07:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 39 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:48]wFMCommunicate OK [07:58:48]SAM_PROTO_GetFieldsCounters done [07:58:48]requested_item shift.num is exist - process it [07:58:48]requested_item shift.opened is exist - process it [07:58:48]req_shift_opened [07:58:48]FM_GetShiftState [07:58:48]SAM_PROTO_GetShiftState [07:58:48]wFMCommunicate request_size=4 [07:58:48]MH_SAM_APDU [07:58:48]CAPDU: 80 13 01 00 [07:58:48]Write to MH i2c: E2 08 00 77 5C 80 13 01 00 00 00 00 00 50 [07:58:48]Write i2c OK [07:58:48]MH_I2C_Read... [07:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:48]Read from MH i2c: E2 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 0E 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 0E 00 77 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 DC [07:58:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [07:58:48]wFMCommunicate OK [07:58:48]SAM_PROTO_GetShiftState done [07:58:48]FM_GetShiftState done [07:58:48]req_shift_opened done [07:58:48]requested_item shift.open_date is exist - process it [07:58:48]req_shift_open_date [07:58:48]req_shift_open_date done [07:58:48]produce_requested_data done [07:58:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92217,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [07:58:48]process_action_free close_receipt [07:58:48]json_value_free [07:58:48]json_value_free done [07:58:48]process_json_proto returns [07:58:48]Send response to host [07:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92217,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [07:58:48]free response buf [07:58:48]execute_script done [07:58:48]execute_script returns [07:58:48]free content buf [07:58:48]Sock 9.Close socket [07:58:48]Sock 9.Thread stoped [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05: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:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:13]accept exits with 8 [08:08:13]New connection [08:08:13]New thread 3067256164 created [08:08:13]Thread 3067399524 joined [08:08:13]Waiting for new connection... [08:08:13] Sock 8.Parse request [08:08:13]Sock 8.Check first char [08:08:13]Sock 8.First char is OK [08:08:13]request: POST /json_proto HTTP/1.0 [08:08:13]Method: POST [08:08:13]URL: /json_proto [08:08:13]Method is POST - this is cgi request [08:08:13]url: /json_proto [08:08:13]query_string will be loaded in cgi processing [08:08:13]execute_cgi json_proto POST (null) [08:08:13]execute_cgi path=json_proto method=POST [08:08:13]POST find Content-Length [08:08:13]Host: 172.17.57.71:8080 [08:08:13]Content-Length: 853 [08:08:13]Content-Type: application/json [08:08:13] [08:08:13]POST finish read [08:08:13]Found Content-Length = 853 [08:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127151", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:13]execute_script... [08:08: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 : (3)127151", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:13]POST & json_proto [08:08:13]process_json_proto [08:08:13]json parsed OK: [08:08:13]protocol is kg_v1.0 [08:08:13]action value=close_receipt [08:08:13]process_action close_receipt [08:08:13]cmd_close_receipt [08:08:13]MH_GetDate [08:08:13]Write to MH i2c: F0 00 00 78 5C C3 [08:08:13]Write i2c OK [08:08:13]MH_I2C_Read... [08:08:13]Read from MH i2c: F0 [08:08:13]MH_I2C_Read... [08:08:13]Read from MH i2c: F0 09 00 [08:08:13]MH_I2C_Read... [08:08:13]Read from MH i2c: F0 09 00 78 5C 00 F7 F2 E3 66 33 3A A4 66 75 [08:08:13]GetLastDocTimeStamp 1726214332 [08:08:13]current date 1726214903 [08:08:13]FM_GetShiftState [08:08:13]SAM_PROTO_GetShiftState [08:08:13]wFMCommunicate request_size=4 [08:08:13]MH_SAM_APDU [08:08:13]CAPDU: 80 13 01 00 [08:08:13]Write to MH i2c: E2 08 00 79 5C 80 13 01 00 00 00 00 00 52 [08:08:13]Write i2c OK [08:08:13]MH_I2C_Read... [08:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:13]Read from MH i2c: E2 [08:08:13]MH_I2C_Read... [08:08:13]Read from MH i2c: E2 0E 00 [08:08:13]MH_I2C_Read... [08:08:13]Read from MH i2c: E2 0E 00 79 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 DE [08:08:13]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:08:13]wFMCommunicate OK [08:08:13]SAM_PROTO_GetShiftState done [08:08:13]FM_GetShiftState done [08:08:13]opened in 1726186930 [08:08:13]opened+sec_in_day 1726273330 [08:08:13]quantity*price = 8500 [08:08:13]sum+1 = 8501 [08:08:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.02 НДС 12% : 24.32 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 26 13.09.2024 08:08 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92218 ФПД: 67085542381867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T080823&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92218&fm=67085542381867&tin=02508201610067®Number=0000000000091423&sum=22900 0 [08:08:14]StoreToDocumentArchive [08:08:14]shift 505 fd 92218 [08:08:14]save to /storage/0505/doc_00092218 [08:08:14]save last doc name /storage/0505/doc_00092218 to /storage/kkm_last_doc_name [08:08:14]save OK [08:08:14]Clear old archive folders... [08:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=373 [08:08:14]tlvbuf is 015CE5A0 [08:08:14]SAM_PROTO_ClearQueue [08:08:14]wFMCommunicate request_size=4 [08:08:14]MH_SAM_APDU [08:08:14]CAPDU: 80 09 00 00 [08:08:14]Write to MH i2c: E2 08 00 86 5C 80 09 00 00 00 00 00 00 54 [08:08:14]Write i2c OK [08:08:14]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 86 5C 00 90 00 56 [08:08:15]RAPDU: 90 00 [08:08:15]wFMCommunicate OK [08:08:15]SAM_PROTO_ClearQueue done [08:08:15]KKMCreateOFDPacket [08:08:15]OFDProtocolAddRootSTLVToBuf [08:08:15]FM_MakeSignedData [08:08:15]FM_MakeSignedData [08:08:15]SAM_PROTO_SignData [08:08:15]wFMCommunicate request_size=4 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 0D 01 02 [08:08:15]Write to MH i2c: E2 08 00 87 5C 80 0D 01 02 00 00 00 00 5C [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 87 5C 00 90 00 57 [08:08:15]RAPDU: 90 00 [08:08:15]wFMCommunicate OK [08:08:15]wFMCommunicate request_size=255 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 [08:08:15]Write to MH i2c: E2 02 01 88 5C 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 00 00 FC [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 88 5C 00 90 00 58 [08:08:15]RAPDU: 90 00 [08:08:15]wFMCommunicate OK [08:08:15]wFMCommunicate request_size=132 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 80 09 00 00 00 00 07 04 06 00 74 59 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 F7 F2 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 68 01 00 35 04 06 00 3D 03 91 EC 59 2B [08:08:15]Write to MH i2c: E2 87 00 89 5C 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 80 09 00 00 00 00 07 04 06 00 74 59 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 F7 F2 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 68 01 00 35 04 06 00 3D 03 91 EC 59 2B 00 00 16 [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 03 00 89 5C 00 90 00 59 [08:08:15]RAPDU: 90 00 [08:08:15]wFMCommunicate OK [08:08:15]wFMCommunicate request_size=4 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 0D 03 02 [08:08:15]Write to MH i2c: E2 08 00 8A 5C 80 0D 03 02 00 00 00 00 61 [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 0B 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 0B 00 8A 5C 00 65 F7 8E A8 F6 83 20 B8 90 00 45 [08:08:15]RAPDU: 65 F7 8E A8 F6 83 20 B8 90 00 [08:08:15]wFMCommunicate OK [08:08:15]SAM_PROTO_SignData done [08:08:15]FM_MakeSignedData done [08:08:15]CreateOFDProtocolMessage [08:08:15]wFMCommunicate request_size=4 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 11 00 00 [08:08:15]Write to MH i2c: E2 08 00 8B 5C 80 11 00 00 00 00 00 00 61 [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 17 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 17 00 8B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [08:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:08:15]wFMCommunicate OK [08:08:15]CreateOFDProtocolMessage done [08:08:15]OFDSenderStorePacket 92218 [08:08:15]StoreOFDPacket docnum=92218 [08:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 B9 65 81 01 6D DE 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 09 00 00 00 00 07 04 06 00 74 59 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 F7 F2 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 68 01 00 35 04 06 00 3D 03 91 EC 59 2B 65 F7 8E A8 F6 83 20 B8 [08:08:15]CheckFolder [08:08:15]dirname=/storage/ofd_packets [08:08:15]CheckFolder done [08:08:15]ProducePacketName [08:08:15]name=ofd_packets/00092218 [08:08:15]NVStorageSaveData ofd_packets/00092218 [08:08:15]File name is /storage/ofd_packets/00092218 [08:08:15]Write 423 bytes [08:08:15]NVStorageSaveData done [08:08:15]OFDSenderStorePacket done [08:08:15]KKMCreateOFDPacket done [08:08:15]NVStorageSaveData kkm_last_timestamp [08:08:15]File name is /storage/kkm_last_timestamp [08:08:15]Write 4 bytes [08:08:15]NVStorageSaveData done [08:08:15]ExternCall_PrintAddStr [08:08:15]wPrintStart [08:08:15]Write to MH i2c: 01 00 00 8C 5C E8 [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: 01 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: 01 07 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: 01 07 00 8C 5C 00 00 00 00 00 FF 0F FD [08:08:15]RasterBufferAndPrint [08:08:15]line Счет N : (3)127151 [08:08:15]line ИНН: 02508201610067 [08:08:15]line Контрольно-Кассовый Чек [08:08:15]line ПРОДАЖА [08:08:15]line Товар: 4650075420409 [08:08:15]line Сок Rich Вишня 0,2 [08:08:15]line 1.000 * 85.00 [08:08:15]line = 85.00 [08:08:15]line НДС 12% НСП 1% [08:08:15]line > о реализуемом товаре [08:08:15]line Товар: 48743587 [08:08:15]line Сигареты Winston XStyle Silver [08:08:15]line 1.000 * 144.00 [08:08:15]line = 144.00 [08:08:15]line НДС 12% НСП 1% [08:08:15]line > о реализуемом товаре [08:08:15]line ИТОГО: 229.00 [08:08:15]line НСП 1% : 2.02 [08:08:15]line НДС 12% : 24.32 [08:08:15]line Наличными: 229.00 [08:08:15]line Безнал.: 0.00 [08:08:15]line Место: АЗС № 5 "Партнер Нефть" [08:08:15]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:08:15]line СНО: Общий режим [08:08:15]line Чек 26 13.09.2024 08:08 [08:08:15]line Смена: 505 ФФД: 1.0 [08:08:15]line ЗНМ: 03000000022 [08:08:15]line РНМ: 0000000000091423 [08:08:15]line Версия ККМ: 001 [08:08:15]line ФМ: 0000000000874692 [08:08:15]line ФД: 92218 [08:08:15]line ФПД: 67085542381867 [08:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T080823&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92218&fm=67085542381867&tin=02508201610067®Number=0000000000091423&sum=22900 [08:08:15]line 0 [08:08:15]OFD Sender: Processing packet 92218 [packets to send 63, broken 62] [08:08:15]ProducePacketName [08:08:15]name=ofd_packets/00092218 [08:08:15]OFD Sender: To server: pG, [08:08:15]CommunicateWithHost lk.salyk.kg:30040 [08:08:15]ConnectInit lk.salyk.kg [08:08:15]written 0, free lines is 4095 [08:08:16]Connected sock=9 [08:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 B9 65 81 01 6D DE 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 09 00 00 00 00 07 04 06 00 74 59 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 F7 F2 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 68 01 00 35 04 06 00 3D 03 91 EC 59 2B 65 F7 8E A8 F6 83 20 B8 [08:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FC 78 47 00 80 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 34 36 39 32 10 04 04 00 3A 68 01 00 F4 03 04 00 77 9B E3 66 B6 04 01 00 00 6A C7 89 66 2A 64 B5 94 [08:08:16]CommunicateWithHost err = 0 [08:08:16]CheckOFDResponse [08:08:16]1017 (14) - 77093643461234 [08:08:16]1041 (16) - 0000000000874692 [08:08:16]1040 (4) - 92218 [08:08:16]1012 (4) - 13.09.2024 01:55 [08:08:16]1206 (1) - 0 [08:08:16]OFD Sender: Remove packet 92218 [08:08:16]ProducePacketName [08:08:16]name=ofd_packets/00092218 [08:08:16]NVStorageDeleteData [08:08:16]Write to MH i2c: 01 00 00 BB 5C 17 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: 01 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: 01 07 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: 01 07 00 BB 5C 00 00 00 00 00 C3 0C ED [08:08:16]RasterBufferAndPrint [08:08:16]line [08:08:16]line [08:08:16]line [08:08:16]line [08:08:16]line [08:08:16]written 0, free lines is 3274 [08:08:16]MH_Cut [08:08:16]Write to MH i2c: D1 01 00 C2 5C 01 F0 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: D1 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: D1 01 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: D1 01 00 C2 5C 00 EF [08:08:16]Write to MH i2c: 01 00 00 C3 5C 1F [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]OFD Sender: No OFD packet to send [08:08:17]*** Cut start [08:08:17]*** Purtial cut [08:08:17]*** Stage 1: CUTSNS_PIN = 1 [08:08:19]Read from MH i2c: 01 [08:08:19]MH_I2C_Read... [08:08:19]*** Stop cut motor [08:08:19]*** Cut end [08:08:19]Read from MH i2c: 01 07 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: 01 07 00 C3 5C 00 00 00 00 00 FF 0F 34 [08:08:19]process_action close_receipt done [08:08:19]requested_data is exist [08:08:19]produce_requested_data [08:08:19]requested_item fm.sn is exist - process it [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 11 00 00 [08:08:19]Write to MH i2c: E2 08 00 C4 5C 80 11 00 00 00 00 00 00 9A [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 17 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 17 00 C4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F1 [08:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:08:19]wFMCommunicate OK [08:08:19]requested_item fd.num is exist - process it [08:08:19]SAM_PROTO_GetFieldsCounters [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 13 00 00 [08:08:19]Write to MH i2c: E2 08 00 C5 5C 80 13 00 00 00 00 00 00 9D [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 62 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 62 00 C5 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:19]wFMCommunicate OK [08:08:19]SAM_PROTO_GetFieldsCounters done [08:08:19]requested_item shift.num is exist - process it [08:08:19]requested_item shift.opened is exist - process it [08:08:19]req_shift_opened [08:08:19]FM_GetShiftState [08:08:19]SAM_PROTO_GetShiftState [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 13 01 00 [08:08:19]Write to MH i2c: E2 08 00 C6 5C 80 13 01 00 00 00 00 00 9F [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 0E 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 0E 00 C6 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2B [08:08:19]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:08:19]wFMCommunicate OK [08:08:19]SAM_PROTO_GetShiftState done [08:08:19]FM_GetShiftState done [08:08:19]req_shift_opened done [08:08:19]requested_item shift.open_date is exist - process it [08:08:19]req_shift_open_date [08:08:19]req_shift_open_date done [08:08:19]produce_requested_data done [08:08:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92218,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:08:19]process_action_free close_receipt [08:08:19]json_value_free [08:08:19]json_value_free done [08:08:19]process_json_proto returns [08:08:19]Send response to host [08:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92218,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:08:19]free response buf [08:08:19]execute_script done [08:08:19]execute_script returns [08:08:19]free content buf [08:08:19]Sock 8.Close socket [08:08:19]Sock 8.Thread stoped [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:24]accept exits with 10 [08:11:24]New connection [08:11:24]New thread 3067399524 created [08:11:24]Thread 3067256164 joined [08:11:24]Waiting for new connection... [08:11:24] Sock 10.Parse request [08:11:24]Sock 10.Check first char [08:11:24]Sock 10.First char is OK [08:11:24]request: POST /json_proto HTTP/1.0 [08:11:24]Method: POST [08:11:24]URL: /json_proto [08:11:24]Method is POST - this is cgi request [08:11:24]url: /json_proto [08:11:24]query_string will be loaded in cgi processing [08:11:24]execute_cgi json_proto POST (null) [08:11:24]execute_cgi path=json_proto method=POST [08:11:24]POST find Content-Length [08:11:24]Host: 172.17.57.71:8080 [08:11:24]Content-Length: 625 [08:11:24]Content-Type: application/json [08:11:24] [08:11:24]POST finish read [08:11:24]Found Content-Length = 625 [08:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127152", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:24]execute_script... [08:11: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 : (3)127152", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:24]POST & json_proto [08:11:24]process_json_proto [08:11:24]json parsed OK: [08:11:24]protocol is kg_v1.0 [08:11:24]action value=close_receipt [08:11:24]process_action close_receipt [08:11:24]cmd_close_receipt [08:11:24]MH_GetDate [08:11:24]Write to MH i2c: F0 00 00 C7 5C 12 [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: F0 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: F0 09 00 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: F0 09 00 C7 5C 00 B6 F3 E3 66 33 3A A4 66 84 [08:11:24]GetLastDocTimeStamp 1726214903 [08:11:24]current date 1726215094 [08:11:24]FM_GetShiftState [08:11:24]SAM_PROTO_GetShiftState [08:11:24]wFMCommunicate request_size=4 [08:11:24]MH_SAM_APDU [08:11:24]CAPDU: 80 13 01 00 [08:11:24]Write to MH i2c: E2 08 00 C8 5C 80 13 01 00 00 00 00 00 A1 [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:24]Read from MH i2c: E2 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 0E 00 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 0E 00 C8 5C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2D [08:11:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:11:24]wFMCommunicate OK [08:11:24]SAM_PROTO_GetShiftState done [08:11:24]FM_GetShiftState done [08:11:24]opened in 1726186930 [08:11:24]opened+sec_in_day 1726273330 [08:11:24]quantity*price = 30800 [08:11:24]sum+1 = 30801 [08:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 308.00 НСП 1% : 2.73 НДС 12% : 32.71 Наличными: 308.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 27 13.09.2024 08:11 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92219 ФПД: 8824825833886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081134&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92219&fm=8824825833886&tin=02508201610067®Number=0000000000091423&sum=30800 0 [08:11:25]StoreToDocumentArchive [08:11:25]shift 505 fd 92219 [08:11:25]save to /storage/0505/doc_00092219 [08:11:25]save last doc name /storage/0505/doc_00092219 to /storage/kkm_last_doc_name [08:11:25]save OK [08:11:25]Clear old archive folders... [08:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=277 [08:11:25]tlvbuf is 01784150 [08:11:25]SAM_PROTO_ClearQueue [08:11:25]wFMCommunicate request_size=4 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 09 00 00 [08:11:25]Write to MH i2c: E2 08 00 D5 5C 80 09 00 00 00 00 00 00 A3 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 D5 5C 00 90 00 A5 [08:11:25]RAPDU: 90 00 [08:11:25]wFMCommunicate OK [08:11:25]SAM_PROTO_ClearQueue done [08:11:25]KKMCreateOFDPacket [08:11:25]OFDProtocolAddRootSTLVToBuf [08:11:25]FM_MakeSignedData [08:11:25]FM_MakeSignedData [08:11:25]SAM_PROTO_SignData [08:11:25]wFMCommunicate request_size=4 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 0D 01 02 [08:11:25]Write to MH i2c: E2 08 00 D6 5C 80 0D 01 02 00 00 00 00 AB [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 D6 5C 00 90 00 A6 [08:11:25]RAPDU: 90 00 [08:11:25]wFMCommunicate OK [08:11:25]wFMCommunicate request_size=255 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0C 00 00 00 00 07 04 06 00 50 78 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 B6 F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [08:11:25]Write to MH i2c: E2 02 01 D7 5C 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0C 00 00 00 00 07 04 06 00 50 78 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 B6 F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 15 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 D7 5C 00 90 00 A7 [08:11:26]RAPDU: 90 00 [08:11:26]wFMCommunicate OK [08:11:26]wFMCommunicate request_size=36 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 68 01 00 35 04 06 00 08 06 B0 9B E9 9E [08:11:26]Write to MH i2c: E2 27 00 D8 5C 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 68 01 00 35 04 06 00 08 06 B0 9B E9 9E 00 00 5B [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 D8 5C 00 90 00 A8 [08:11:26]RAPDU: 90 00 [08:11:26]wFMCommunicate OK [08:11:26]wFMCommunicate request_size=4 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 0D 03 02 [08:11:26]Write to MH i2c: E2 08 00 D9 5C 80 0D 03 02 00 00 00 00 B0 [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 0B 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 0B 00 D9 5C 00 9C 42 45 7D 9C 53 80 DC 90 00 9C [08:11:26]RAPDU: 9C 42 45 7D 9C 53 80 DC 90 00 [08:11:26]wFMCommunicate OK [08:11:26]SAM_PROTO_SignData done [08:11:26]FM_MakeSignedData done [08:11:26]CreateOFDProtocolMessage [08:11:26]wFMCommunicate request_size=4 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 11 00 00 [08:11:26]Write to MH i2c: E2 08 00 DA 5C 80 11 00 00 00 00 00 00 B0 [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 17 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 17 00 DA 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 07 [08:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:26]wFMCommunicate OK [08:11:26]CreateOFDProtocolMessage done [08:11:26]OFDSenderStorePacket 92219 [08:11:26]StoreOFDPacket docnum=92219 [08:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 1C 9C 21 01 12 9C 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0C 00 00 00 00 07 04 06 00 50 78 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 B6 F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 68 01 00 35 04 06 00 08 06 B0 9B E9 9E 9C 42 45 7D 9C 53 80 DC [08:11:26]CheckFolder [08:11:26]dirname=/storage/ofd_packets [08:11:26]CheckFolder done [08:11:26]ProducePacketName [08:11:26]name=ofd_packets/00092219 [08:11:26]NVStorageSaveData ofd_packets/00092219 [08:11:26]File name is /storage/ofd_packets/00092219 [08:11:26]Write 327 bytes [08:11:26]NVStorageSaveData done [08:11:26]OFDSenderStorePacket done [08:11:26]KKMCreateOFDPacket done [08:11:26]NVStorageSaveData kkm_last_timestamp [08:11:26]File name is /storage/kkm_last_timestamp [08:11:26]Write 4 bytes [08:11:26]NVStorageSaveData done [08:11:26]ExternCall_PrintAddStr [08:11:26]wPrintStart [08:11:26]Write to MH i2c: 01 00 00 DB 5C 37 [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: 01 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: 01 07 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: 01 07 00 DB 5C 00 00 00 00 00 FF 0F 4C [08:11:26]RasterBufferAndPrint [08:11:26]line Счет N : (3)127152 [08:11:26]line ИНН: 02508201610067 [08:11:26]line Контрольно-Кассовый Чек [08:11:26]line ПРОДАЖА [08:11:26]line Товар: 46230607 [08:11:26]line Сигареты Richmond Bronze Edition [08:11:26]line 2.000 * 154.00 [08:11:26]line = 308.00 [08:11:26]line НДС 12% НСП 1% [08:11:26]line > о реализуемом товаре [08:11:26]line ИТОГО: 308.00 [08:11:26]line НСП 1% : 2.73 [08:11:26]line НДС 12% : 32.71 [08:11:26]line Наличными: 308.00 [08:11:26]line Безнал.: 0.00 [08:11:26]line Место: АЗС № 5 "Партнер Нефть" [08:11:26]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:11:26]line СНО: Общий режим [08:11:26]line Чек 27 13.09.2024 08:11 [08:11:26]line Смена: 505 ФФД: 1.0 [08:11:26]line ЗНМ: 03000000022 [08:11:26]line РНМ: 0000000000091423 [08:11:26]line Версия ККМ: 001 [08:11:26]line ФМ: 0000000000874692 [08:11:26]line ФД: 92219 [08:11:26]line ФПД: 8824825833886 [08:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081134&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92219&fm=8824825833886&tin=02508201610067®Number=0000000000091423&sum=30800 [08:11:26]line 0 [08:11:26]OFD Sender: Processing packet 92219 [packets to send 63, broken 62] [08:11:26]ProducePacketName [08:11:26]name=ofd_packets/00092219 [08:11:26]OFD Sender: To server: pG, [08:11:26]CommunicateWithHost lk.salyk.kg:30040 [08:11:26]ConnectInit lk.salyk.kg [08:11:26]written 0, free lines is 4095 [08:11:26]Connected sock=9 [08:11:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 1C 9C 21 01 12 9C 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0C 00 00 00 00 07 04 06 00 50 78 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 B6 F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 68 01 00 35 04 06 00 08 06 B0 9B E9 9E 9C 42 45 7D 9C 53 80 DC [08:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1E D8 47 00 BB 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 68 01 00 F4 03 04 00 36 9C E3 66 B6 04 01 00 00 F4 FE 83 13 FB 53 63 B5 [08:11:26]CommunicateWithHost err = 0 [08:11:26]CheckOFDResponse [08:11:26]1017 (14) - 77093643461234 [08:11:26]1041 (16) - 0000000000874692 [08:11:26]1040 (4) - 92219 [08:11:26]1012 (4) - 13.09.2024 01:58 [08:11:26]1206 (1) - 0 [08:11:26]OFD Sender: Remove packet 92219 [08:11:26]ProducePacketName [08:11:26]name=ofd_packets/00092219 [08:11:26]NVStorageDeleteData [08:11:27]Write to MH i2c: 01 00 00 04 5D 61 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 04 5D 00 00 00 00 00 15 0D 8A [08:11:27]RasterBufferAndPrint [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]written 0, free lines is 3357 [08:11:27]MH_Cut [08:11:27]Write to MH i2c: D1 01 00 0B 5D 01 3A [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 01 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 01 00 0B 5D 00 39 [08:11:27]Write to MH i2c: 01 00 00 0C 5D 69 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]OFD Sender: No OFD packet to send [08:11:27]*** Cut start [08:11:27]*** Purtial cut [08:11:27]*** Stage 1: CUTSNS_PIN = 1 [08:11:29]Read from MH i2c: 01 [08:11:29]MH_I2C_Read... [08:11:29]*** Stop cut motor [08:11:29]*** Cut end [08:11:29]Read from MH i2c: 01 07 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: 01 07 00 0C 5D 00 00 00 00 00 FF 0F 7E [08:11:29]process_action close_receipt done [08:11:29]requested_data is exist [08:11:29]produce_requested_data [08:11:29]requested_item fm.sn is exist - process it [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 11 00 00 [08:11:29]Write to MH i2c: E2 08 00 0D 5D 80 11 00 00 00 00 00 00 E4 [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 17 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 17 00 0D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3B [08:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:29]wFMCommunicate OK [08:11:29]requested_item fd.num is exist - process it [08:11:29]SAM_PROTO_GetFieldsCounters [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 13 00 00 [08:11:29]Write to MH i2c: E2 08 00 0E 5D 80 13 00 00 00 00 00 00 E7 [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 62 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 62 00 0E 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [08:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:29]wFMCommunicate OK [08:11:29]SAM_PROTO_GetFieldsCounters done [08:11:29]requested_item shift.num is exist - process it [08:11:29]requested_item shift.opened is exist - process it [08:11:29]req_shift_opened [08:11:29]FM_GetShiftState [08:11:29]SAM_PROTO_GetShiftState [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 13 01 00 [08:11:29]Write to MH i2c: E2 08 00 0F 5D 80 13 01 00 00 00 00 00 E9 [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 0E 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 0E 00 0F 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 75 [08:11:29]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:11:29]wFMCommunicate OK [08:11:29]SAM_PROTO_GetShiftState done [08:11:29]FM_GetShiftState done [08:11:29]req_shift_opened done [08:11:29]requested_item shift.open_date is exist - process it [08:11:29]req_shift_open_date [08:11:29]req_shift_open_date done [08:11:29]produce_requested_data done [08:11:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92219,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:11:29]process_action_free close_receipt [08:11:29]json_value_free [08:11:29]json_value_free done [08:11:29]process_json_proto returns [08:11:29]Send response to host [08:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92219,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:11:29]free response buf [08:11:29]execute_script done [08:11:29]execute_script returns [08:11:29]free content buf [08:11:29]Sock 10.Close socket [08:11:29]Sock 10.Thread stoped [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:32]accept exits with 8 [08:12:32]New connection [08:12:32]New thread 3067256164 created [08:12:32]Thread 3067399524 joined [08:12:32]Waiting for new connection... [08:12:32] Sock 8.Parse request [08:12:32]Sock 8.Check first char [08:12:32]Sock 8.First char is OK [08:12:32]request: POST /json_proto HTTP/1.0 [08:12:32]Method: POST [08:12:32]URL: /json_proto [08:12:32]Method is POST - this is cgi request [08:12:32]url: /json_proto [08:12:32]query_string will be loaded in cgi processing [08:12:32]execute_cgi json_proto POST (null) [08:12:32]execute_cgi path=json_proto method=POST [08:12:32]POST find Content-Length [08:12:32]Host: 172.17.57.71:8080 [08:12:32]Content-Length: 877 [08:12:32]Content-Type: application/json [08:12:32] [08:12:32]POST finish read [08:12:32]Found Content-Length = 877 [08:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127153", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:32]execute_script... [08:12: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 : (3)127153", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:32]POST & json_proto [08:12:32]process_json_proto [08:12:32]json parsed OK: [08:12:32]protocol is kg_v1.0 [08:12:32]action value=close_receipt [08:12:32]process_action close_receipt [08:12:32]cmd_close_receipt [08:12:32]MH_GetDate [08:12:32]Write to MH i2c: F0 00 00 10 5D 5C [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 09 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 09 00 10 5D 00 FA F3 E3 66 33 3A A4 66 12 [08:12:32]GetLastDocTimeStamp 1726215094 [08:12:32]current date 1726215162 [08:12:32]FM_GetShiftState [08:12:32]SAM_PROTO_GetShiftState [08:12:32]wFMCommunicate request_size=4 [08:12:32]MH_SAM_APDU [08:12:32]CAPDU: 80 13 01 00 [08:12:32]Write to MH i2c: E2 08 00 11 5D 80 13 01 00 00 00 00 00 EB [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0E 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0E 00 11 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 77 [08:12:32]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:12:32]wFMCommunicate OK [08:12:32]SAM_PROTO_GetShiftState done [08:12:32]FM_GetShiftState done [08:12:32]opened in 1726186930 [08:12:32]opened+sec_in_day 1726273330 [08:12:32]quantity*price = 13500 [08:12:32]sum+1 = 13501 [08:12:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 28 13.09.2024 08:12 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92220 ФПД: 67139151108310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081242&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92220&fm=67139151108310&tin=02508201610067®Number=0000000000091423&sum=26500 0 [08:12:33]StoreToDocumentArchive [08:12:33]shift 505 fd 92220 [08:12:33]save to /storage/0505/doc_00092220 [08:12:33]save last doc name /storage/0505/doc_00092220 to /storage/kkm_last_doc_name [08:12:33]save OK [08:12:33]Clear old archive folders... [08:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=391 [08:12:33]tlvbuf is 0165A420 [08:12:33]SAM_PROTO_ClearQueue [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 09 00 00 [08:12:33]Write to MH i2c: E2 08 00 1E 5D 80 09 00 00 00 00 00 00 ED [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 1E 5D 00 90 00 EF [08:12:34]RAPDU: 90 00 [08:12:34]wFMCommunicate OK [08:12:34]SAM_PROTO_ClearQueue done [08:12:34]KKMCreateOFDPacket [08:12:34]OFDProtocolAddRootSTLVToBuf [08:12:34]FM_MakeSignedData [08:12:34]FM_MakeSignedData [08:12:34]SAM_PROTO_SignData [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 0D 01 02 [08:12:34]Write to MH i2c: E2 08 00 1F 5D 80 0D 01 02 00 00 00 00 F5 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 1F 5D 00 90 00 F0 [08:12:34]RAPDU: 90 00 [08:12:34]wFMCommunicate OK [08:12:34]wFMCommunicate request_size=255 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [08:12:34]Write to MH i2c: E2 02 01 20 5D 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 59 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 20 5D 00 90 00 F1 [08:12:34]RAPDU: 90 00 [08:12:34]wFMCommunicate OK [08:12:34]wFMCommunicate request_size=150 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 FA F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 68 01 00 35 04 06 00 3D 10 0D 40 98 D6 [08:12:34]Write to MH i2c: E2 99 00 21 5D 80 0D 02 02 91 00 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 FA F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 68 01 00 35 04 06 00 3D 10 0D 40 98 D6 00 00 1D [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 03 00 21 5D 00 90 00 F2 [08:12:34]RAPDU: 90 00 [08:12:34]wFMCommunicate OK [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 0D 03 02 [08:12:34]Write to MH i2c: E2 08 00 22 5D 80 0D 03 02 00 00 00 00 FA [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 0B 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 0B 00 22 5D 00 FA 5D 88 BC 56 A9 D4 DD 90 00 46 [08:12:34]RAPDU: FA 5D 88 BC 56 A9 D4 DD 90 00 [08:12:34]wFMCommunicate OK [08:12:34]SAM_PROTO_SignData done [08:12:34]FM_MakeSignedData done [08:12:34]CreateOFDProtocolMessage [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 11 00 00 [08:12:34]Write to MH i2c: E2 08 00 23 5D 80 11 00 00 00 00 00 00 FA [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 17 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 17 00 23 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 51 [08:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:12:34]wFMCommunicate OK [08:12:34]CreateOFDProtocolMessage done [08:12:34]OFDSenderStorePacket 92220 [08:12:34]StoreOFDPacket docnum=92220 [08:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 43 B7 93 01 39 D0 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 FA F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 68 01 00 35 04 06 00 3D 10 0D 40 98 D6 FA 5D 88 BC 56 A9 D4 DD [08:12:34]CheckFolder [08:12:34]dirname=/storage/ofd_packets [08:12:34]CheckFolder done [08:12:34]ProducePacketName [08:12:34]name=ofd_packets/00092220 [08:12:34]NVStorageSaveData ofd_packets/00092220 [08:12:34]File name is /storage/ofd_packets/00092220 [08:12:34]Write 441 bytes [08:12:34]NVStorageSaveData done [08:12:34]OFDSenderStorePacket done [08:12:34]KKMCreateOFDPacket done [08:12:34]NVStorageSaveData kkm_last_timestamp [08:12:34]File name is /storage/kkm_last_timestamp [08:12:34]Write 4 bytes [08:12:34]NVStorageSaveData done [08:12:34]ExternCall_PrintAddStr [08:12:34]wPrintStart [08:12:34]Write to MH i2c: 01 00 00 24 5D 81 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 07 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 07 00 24 5D 00 00 00 00 00 FF 0F 96 [08:12:34]RasterBufferAndPrint [08:12:34]line Счет N : (3)127153 [08:12:34]line ИНН: 02508201610067 [08:12:34]line Контрольно-Кассовый Чек [08:12:34]line ПРОДАЖА [08:12:34]line Товар: 48745291 [08:12:34]line Сигареты Parliament SOHO NYC COMPACT BLU [08:12:34]line 1.000 * 135.00 [08:12:34]line = 135.00 [08:12:34]line НДС 12% НСП 1% [08:12:34]line > о реализуемом товаре [08:12:34]line Товар: 2000036230011 [08:12:34]line Кофе Латте XL(GABB TRADE) [08:12:34]line 1.000 * 130.00 [08:12:34]line = 130.00 [08:12:34]line НДС 12% НСП 1% [08:12:34]line > о реализуемом товаре [08:12:34]line ИТОГО: 265.00 [08:12:34]line НСП 1% : 2.34 [08:12:34]line НДС 12% : 28.14 [08:12:34]line Наличными: 265.00 [08:12:34]line Безнал.: 0.00 [08:12:34]line Место: АЗС № 5 "Партнер Нефть" [08:12:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:12:34]line СНО: Общий режим [08:12:34]line Чек 28 13.09.2024 08:12 [08:12:34]line Смена: 505 ФФД: 1.0 [08:12:34]line ЗНМ: 03000000022 [08:12:34]line РНМ: 0000000000091423 [08:12:34]line Версия ККМ: 001 [08:12:34]line ФМ: 0000000000874692 [08:12:34]line ФД: 92220 [08:12:34]line ФПД: 67139151108310 [08:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081242&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92220&fm=67139151108310&tin=02508201610067®Number=0000000000091423&sum=26500 [08:12:34]line 0 [08:12:34]OFD Sender: Processing packet 92220 [packets to send 63, broken 62] [08:12:34]ProducePacketName [08:12:34]name=ofd_packets/00092220 [08:12:34]OFD Sender: To server: pG, [08:12:34]CommunicateWithHost lk.salyk.kg:30040 [08:12:34]ConnectInit lk.salyk.kg [08:12:34]written 0, free lines is 4095 [08:12:35]Connected sock=10 [08:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 43 B7 93 01 39 D0 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 FA F3 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 68 01 00 35 04 06 00 3D 10 0D 40 98 D6 FA 5D 88 BC 56 A9 D4 DD [08:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 50 6F 47 00 48 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 68 01 00 F4 03 04 00 7A 9C E3 66 B6 04 01 00 00 E2 16 1F E8 DE 0D 6E 1A [08:12:35]CommunicateWithHost err = 0 [08:12:35]CheckOFDResponse [08:12:35]1017 (14) - 77093643461234 [08:12:35]1041 (16) - 0000000000874692 [08:12:35]1040 (4) - 92220 [08:12:35]1012 (4) - 13.09.2024 01:59 [08:12:35]1206 (1) - 0 [08:12:35]OFD Sender: Remove packet 92220 [08:12:35]ProducePacketName [08:12:35]name=ofd_packets/00092220 [08:12:35]NVStorageDeleteData [08:12:35]Write to MH i2c: 01 00 00 53 5D B0 [08:12:35]Write i2c OK [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: 01 [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: 01 07 00 [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: 01 07 00 53 5D 00 00 00 00 00 DE 0C A1 [08:12:35]RasterBufferAndPrint [08:12:35]line [08:12:35]line [08:12:35]line [08:12:35]line [08:12:35]line [08:12:35]written 0, free lines is 3301 [08:12:35]MH_Cut [08:12:35]Write to MH i2c: D1 01 00 5A 5D 01 89 [08:12:35]Write i2c OK [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: D1 [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: D1 01 00 [08:12:35]MH_I2C_Read... [08:12:35]Read from MH i2c: D1 01 00 5A 5D 00 88 [08:12:35]Write to MH i2c: 01 00 00 5B 5D B8 [08:12:35]Write i2c OK [08:12:35]MH_I2C_Read... [08:12:35]OFD Sender: No OFD packet to send [08:12:36]*** Cut start [08:12:36]*** Purtial cut [08:12:36]*** Stage 1: CUTSNS_PIN = 1 [08:12:38]Read from MH i2c: 01 [08:12:38]MH_I2C_Read... [08:12:38]*** Stop cut motor [08:12:38]*** Cut end [08:12:38]Read from MH i2c: 01 07 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 5B 5D 00 00 00 00 00 FF 0F CD [08:12:38]process_action close_receipt done [08:12:38]requested_data is exist [08:12:38]produce_requested_data [08:12:38]requested_item fm.sn is exist - process it [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 11 00 00 [08:12:38]Write to MH i2c: E2 08 00 5C 5D 80 11 00 00 00 00 00 00 33 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 5C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8A [08:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:12:38]wFMCommunicate OK [08:12:38]requested_item fd.num is exist - process it [08:12:38]SAM_PROTO_GetFieldsCounters [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 13 00 00 [08:12:38]Write to MH i2c: E2 08 00 5D 5D 80 13 00 00 00 00 00 00 36 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 62 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 62 00 5D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [08:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:38]wFMCommunicate OK [08:12:38]SAM_PROTO_GetFieldsCounters done [08:12:38]requested_item shift.num is exist - process it [08:12:38]requested_item shift.opened is exist - process it [08:12:38]req_shift_opened [08:12:38]FM_GetShiftState [08:12:38]SAM_PROTO_GetShiftState [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 13 01 00 [08:12:38]Write to MH i2c: E2 08 00 5E 5D 80 13 01 00 00 00 00 00 38 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0E 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0E 00 5E 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C4 [08:12:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:12:38]wFMCommunicate OK [08:12:38]SAM_PROTO_GetShiftState done [08:12:38]FM_GetShiftState done [08:12:38]req_shift_opened done [08:12:38]requested_item shift.open_date is exist - process it [08:12:38]req_shift_open_date [08:12:38]req_shift_open_date done [08:12:38]produce_requested_data done [08:12:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92220,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:12:38]process_action_free close_receipt [08:12:38]json_value_free [08:12:38]json_value_free done [08:12:38]process_json_proto returns [08:12:38]Send response to host [08:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92220,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:12:38]free response buf [08:12:38]execute_script done [08:12:38]execute_script returns [08:12:38]free content buf [08:12:38]Sock 8.Close socket [08:12:38]Sock 8.Thread stoped [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:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]accept exits with 9 [08:15:10]New connection [08:15:10]New thread 3067399524 created [08:15:10]Thread 3067256164 joined [08:15:10]Waiting for new connection... [08:15:10] Sock 9.Parse request [08:15:10]Sock 9.Check first char [08:15:10]Sock 9.First char is OK [08:15:10]request: POST /json_proto HTTP/1.0 [08:15:10]Method: POST [08:15:10]URL: /json_proto [08:15:10]Method is POST - this is cgi request [08:15:10]url: /json_proto [08:15:10]query_string will be loaded in cgi processing [08:15:10]execute_cgi json_proto POST (null) [08:15:10]execute_cgi path=json_proto method=POST [08:15:10]POST find Content-Length [08:15:10]Host: 172.17.57.71:8080 [08:15:10]Content-Length: 829 [08:15:10]Content-Type: application/json [08:15:10] [08:15:10]POST finish read [08:15:10]Found Content-Length = 829 [08:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127154", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:10]execute_script... [08: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 : (3)127154", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:10]POST & json_proto [08:15:10]process_json_proto [08:15:10]json parsed OK: [08:15:10]protocol is kg_v1.0 [08:15:10]action value=close_receipt [08:15:10]process_action close_receipt [08:15:10]cmd_close_receipt [08:15:10]MH_GetDate [08:15:10]Write to MH i2c: F0 00 00 5F 5D AB [08:15:10]Write i2c OK [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: F0 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: F0 09 00 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: F0 09 00 5F 5D 00 98 F4 E3 66 33 3A A4 66 00 [08:15:10]GetLastDocTimeStamp 1726215162 [08:15:10]current date 1726215320 [08:15:10]FM_GetShiftState [08:15:10]SAM_PROTO_GetShiftState [08:15:10]wFMCommunicate request_size=4 [08:15:10]MH_SAM_APDU [08:15:10]CAPDU: 80 13 01 00 [08:15:10]Write to MH i2c: E2 08 00 60 5D 80 13 01 00 00 00 00 00 3A [08:15:10]Write i2c OK [08:15:10]MH_I2C_Read... [08:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:10]Read from MH i2c: E2 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: E2 0E 00 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: E2 0E 00 60 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C6 [08:15:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:15:10]wFMCommunicate OK [08:15:10]SAM_PROTO_GetShiftState done [08:15:10]FM_GetShiftState done [08:15:10]opened in 1726186930 [08:15:10]opened+sec_in_day 1726273330 [08:15:10]quantity*price = 12500 [08:15:10]sum+1 = 12501 [08:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 29 13.09.2024 08:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92221 ФПД: 200993923946924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081520&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92221&fm=200993923946924&tin=02508201610067®Number=0000000000091423&sum=12500 0 [08:15:11]StoreToDocumentArchive [08:15:11]shift 505 fd 92221 [08:15:11]save to /storage/0505/doc_00092221 [08:15:11]save last doc name /storage/0505/doc_00092221 to /storage/kkm_last_doc_name [08:15:11]save OK [08:15:11]Clear old archive folders... [08:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:15:11]tlvbuf is 01700B00 [08:15:11]SAM_PROTO_ClearQueue [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 09 00 00 [08:15:11]Write to MH i2c: E2 08 00 6D 5D 80 09 00 00 00 00 00 00 3C [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 6D 5D 00 90 00 3E [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_ClearQueue done [08:15:11]KKMCreateOFDPacket [08:15:11]OFDProtocolAddRootSTLVToBuf [08:15:11]FM_MakeSignedData [08:15:11]FM_MakeSignedData [08:15:11]SAM_PROTO_SignData [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 01 02 [08:15:11]Write to MH i2c: E2 08 00 6E 5D 80 0D 01 02 00 00 00 00 44 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 6E 5D 00 90 00 3F [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=255 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 98 F4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [08:15:11]Write to MH i2c: E2 02 01 6F 5D 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 98 F4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 CC [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 6F 5D 00 90 00 40 [08:15:12]RAPDU: 90 00 [08:15:12]wFMCommunicate OK [08:15:12]wFMCommunicate request_size=43 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 68 01 00 35 04 06 00 B6 CD 8B 70 59 AC [08:15:12]Write to MH i2c: E2 2E 00 70 5D 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 68 01 00 35 04 06 00 B6 CD 8B 70 59 AC 00 00 5C [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 70 5D 00 90 00 41 [08:15:12]RAPDU: 90 00 [08:15:12]wFMCommunicate OK [08:15:12]wFMCommunicate request_size=4 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 0D 03 02 [08:15:12]Write to MH i2c: E2 08 00 71 5D 80 0D 03 02 00 00 00 00 49 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 0B 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 0B 00 71 5D 00 27 CD 91 98 EC 28 22 72 90 00 0F [08:15:12]RAPDU: 27 CD 91 98 EC 28 22 72 90 00 [08:15:12]wFMCommunicate OK [08:15:12]SAM_PROTO_SignData done [08:15:12]FM_MakeSignedData done [08:15:12]CreateOFDProtocolMessage [08:15:12]wFMCommunicate request_size=4 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 11 00 00 [08:15:12]Write to MH i2c: E2 08 00 72 5D 80 11 00 00 00 00 00 00 49 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 17 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 17 00 72 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A0 [08:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:15:12]wFMCommunicate OK [08:15:12]CreateOFDProtocolMessage done [08:15:12]OFDSenderStorePacket 92221 [08:15:12]StoreOFDPacket docnum=92221 [08:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 73 94 28 01 4B 3C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 98 F4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 68 01 00 35 04 06 00 B6 CD 8B 70 59 AC 27 CD 91 98 EC 28 22 72 [08:15:12]CheckFolder [08:15:12]dirname=/storage/ofd_packets [08:15:12]CheckFolder done [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00092221 [08:15:12]NVStorageSaveData ofd_packets/00092221 [08:15:12]File name is /storage/ofd_packets/00092221 [08:15:12]Write 334 bytes [08:15:12]NVStorageSaveData done [08:15:12]OFDSenderStorePacket done [08:15:12]KKMCreateOFDPacket done [08:15:12]NVStorageSaveData kkm_last_timestamp [08:15:12]File name is /storage/kkm_last_timestamp [08:15:12]Write 4 bytes [08:15:12]NVStorageSaveData done [08:15:12]ExternCall_PrintAddStr [08:15:12]wPrintStart [08:15:12]Write to MH i2c: 01 00 00 73 5D D0 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 73 5D 00 00 00 00 00 FF 0F E5 [08:15:12]RasterBufferAndPrint [08:15:12]line Счет N : (3)127154 [08:15:12]line ИНН: 02508201610067 [08:15:12]line Контрольно-Кассовый Чек [08:15:12]line ПРОДАЖА [08:15:12]line Товар: 2000036190018 [08:15:12]line Кофе Американо XL(GABB TRADE) [08:15:12]line 1.000 * 125.00 [08:15:12]line = 125.00 [08:15:12]line НДС 12% НСП 1% [08:15:12]line > о реализуемом товаре [08:15:12]line ИТОГО: 125.00 [08:15:12]line НСП 1% : 1.11 [08:15:12]line НДС 12% : 13.27 [08:15:12]line Наличными: 0.00 [08:15:12]line Безнал.: 125.00 [08:15:12]line Место: АЗС № 5 "Партнер Нефть" [08:15:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:15:12]line СНО: Общий режим [08:15:12]line Чек 29 13.09.2024 08:15 [08:15:12]line Смена: 505 ФФД: 1.0 [08:15:12]line ЗНМ: 03000000022 [08:15:12]line РНМ: 0000000000091423 [08:15:12]line Версия ККМ: 001 [08:15:12]line Платежная система: Бакай Банк [08:15:12]line ФМ: 0000000000874692 [08:15:12]line ФД: 92221 [08:15:12]line ФПД: 200993923946924 [08:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081520&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92221&fm=200993923946924&tin=02508201610067®Number=0000000000091423&sum=12500 [08:15:12]line 0 [08:15:12]OFD Sender: Processing packet 92221 [packets to send 63, broken 62] [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00092221 [08:15:12]OFD Sender: To server: pG, [08:15:12]CommunicateWithHost lk.salyk.kg:30040 [08:15:12]ConnectInit lk.salyk.kg [08:15:12]written 0, free lines is 4095 [08:15:12]Connected sock=10 [08: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 34 36 39 32 30 01 00 00 73 94 28 01 4B 3C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 98 F4 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 68 01 00 35 04 06 00 B6 CD 8B 70 59 AC 27 CD 91 98 EC 28 22 72 [08:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 08 2A 47 00 1A 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 34 36 39 32 10 04 04 00 3D 68 01 00 F4 03 04 00 18 9D E3 66 B6 04 01 00 00 8A 18 14 EB 66 83 C9 67 [08:15:12]CommunicateWithHost err = 0 [08:15:12]CheckOFDResponse [08:15:12]1017 (14) - 77093643461234 [08:15:12]1041 (16) - 0000000000874692 [08:15:12]1040 (4) - 92221 [08:15:12]1012 (4) - 13.09.2024 02:02 [08:15:12]1206 (1) - 0 [08:15:12]OFD Sender: Remove packet 92221 [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00092221 [08:15:12]NVStorageDeleteData [08:15:13]Write to MH i2c: 01 00 00 9E 5D FB [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 9E 5D 00 00 00 00 00 F6 0C 04 [08:15:13]RasterBufferAndPrint [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]written 0, free lines is 3325 [08:15:13]MH_Cut [08:15:13]Write to MH i2c: D1 01 00 A5 5D 01 D4 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 01 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 01 00 A5 5D 00 D3 [08:15:13]Write to MH i2c: 01 00 00 A6 5D 03 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]OFD Sender: No OFD packet to send [08:15:13]*** Cut start [08:15:13]*** Purtial cut [08:15:13]*** Stage 1: CUTSNS_PIN = 1 [08:15:15]Read from MH i2c: 01 [08:15:15]MH_I2C_Read... [08:15:15]*** Stop cut motor [08:15:15]*** Cut end [08:15:15]Read from MH i2c: 01 07 00 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: 01 07 00 A6 5D 00 00 00 00 00 FF 0F 18 [08:15:15]process_action close_receipt done [08:15:15]requested_data is exist [08:15:15]produce_requested_data [08:15:15]requested_item fm.sn is exist - process it [08:15:15]wFMCommunicate request_size=4 [08:15:15]MH_SAM_APDU [08:15:15]CAPDU: 80 11 00 00 [08:15:15]Write to MH i2c: E2 08 00 A7 5D 80 11 00 00 00 00 00 00 7E [08:15:15]Write i2c OK [08:15:15]MH_I2C_Read... [08:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:15]Read from MH i2c: E2 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 17 00 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 17 00 A7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D5 [08:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:15:15]wFMCommunicate OK [08:15:15]requested_item fd.num is exist - process it [08:15:15]SAM_PROTO_GetFieldsCounters [08:15:15]wFMCommunicate request_size=4 [08:15:15]MH_SAM_APDU [08:15:15]CAPDU: 80 13 00 00 [08:15:15]Write to MH i2c: E2 08 00 A8 5D 80 13 00 00 00 00 00 00 81 [08:15:15]Write i2c OK [08:15:15]MH_I2C_Read... [08:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:15]Read from MH i2c: E2 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 62 00 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 62 00 A8 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [08:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:15]wFMCommunicate OK [08:15:15]SAM_PROTO_GetFieldsCounters done [08:15:15]requested_item shift.num is exist - process it [08:15:15]requested_item shift.opened is exist - process it [08:15:15]req_shift_opened [08:15:15]FM_GetShiftState [08:15:15]SAM_PROTO_GetShiftState [08:15:15]wFMCommunicate request_size=4 [08:15:15]MH_SAM_APDU [08:15:15]CAPDU: 80 13 01 00 [08:15:15]Write to MH i2c: E2 08 00 A9 5D 80 13 01 00 00 00 00 00 83 [08:15:15]Write i2c OK [08:15:15]MH_I2C_Read... [08:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:15]Read from MH i2c: E2 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 0E 00 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 0E 00 A9 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0F [08:15:15]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:15:15]wFMCommunicate OK [08:15:15]SAM_PROTO_GetShiftState done [08:15:15]FM_GetShiftState done [08:15:15]req_shift_opened done [08:15:15]requested_item shift.open_date is exist - process it [08:15:15]req_shift_open_date [08:15:15]req_shift_open_date done [08:15:15]produce_requested_data done [08:15:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92221,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:15:15]process_action_free close_receipt [08:15:15]json_value_free [08:15:15]json_value_free done [08:15:15]process_json_proto returns [08:15:15]Send response to host [08:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92221,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:15:15]free response buf [08:15:15]execute_script done [08:15:15]execute_script returns [08:15:15]free content buf [08:15:15]Sock 9.Close socket [08:15:15]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16: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:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:46]accept exits with 8 [08:17:46]New connection [08:17:46]New thread 3067256164 created [08:17:46]Thread 3067399524 joined [08:17:46]Waiting for new connection... [08:17:46] Sock 8.Parse request [08:17:46]Sock 8.Check first char [08:17:46]Sock 8.First char is OK [08:17:46]request: POST /json_proto HTTP/1.0 [08:17:46]Method: POST [08:17:46]URL: /json_proto [08:17:46]Method is POST - this is cgi request [08:17:46]url: /json_proto [08:17:46]query_string will be loaded in cgi processing [08:17:46]execute_cgi json_proto POST (null) [08:17:46]execute_cgi path=json_proto method=POST [08:17:46]POST find Content-Length [08:17:46]Host: 172.17.57.71:8080 [08:17:46]Content-Length: 1198 [08:17:46]Content-Type: application/json [08:17:46] [08:17:46]POST finish read [08:17:46]Found Content-Length = 1198 [08:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127155", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:46]execute_script... [08:17: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 : (3)127155", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:46]POST & json_proto [08:17:46]process_json_proto [08:17:46]json parsed OK: [08:17:46]protocol is kg_v1.0 [08:17:46]action value=close_receipt [08:17:46]process_action close_receipt [08:17:46]cmd_close_receipt [08:17:46]MH_GetDate [08:17:46]Write to MH i2c: F0 00 00 AA 5D F6 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 09 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 09 00 AA 5D 00 34 F5 E3 66 33 3A A4 66 E8 [08:17:46]GetLastDocTimeStamp 1726215320 [08:17:46]current date 1726215476 [08:17:46]FM_GetShiftState [08:17:46]SAM_PROTO_GetShiftState [08:17:46]wFMCommunicate request_size=4 [08:17:46]MH_SAM_APDU [08:17:46]CAPDU: 80 13 01 00 [08:17:46]Write to MH i2c: E2 08 00 AB 5D 80 13 01 00 00 00 00 00 85 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:46]Read from MH i2c: E2 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 0E 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 0E 00 AB 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 11 [08:17:46]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:17:46]wFMCommunicate OK [08:17:46]SAM_PROTO_GetShiftState done [08:17:46]FM_GetShiftState done [08:17:46]opened in 1726186930 [08:17:46]opened+sec_in_day 1726273330 [08:17:46]quantity*price = 9500 [08:17:46]sum+1 = 9501 [08:17:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.54 Наличными: 0.00 Безнал.: 184.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 30 13.09.2024 08:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92222 ФПД: 89502077665764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92222&fm=89502077665764&tin=02508201610067®Number=0000000000091423&sum=18400 0 [08:17:47]StoreToDocumentArchive [08:17:47]shift 505 fd 92222 [08:17:47]save to /storage/0505/doc_00092222 [08:17:47]save last doc name /storage/0505/doc_00092222 to /storage/kkm_last_doc_name [08:17:47]save OK [08:17:47]Clear old archive folders... [08:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=430 [08:17:47]tlvbuf is 0165A9D0 [08:17:47]SAM_PROTO_ClearQueue [08:17:47]wFMCommunicate request_size=4 [08:17:47]MH_SAM_APDU [08:17:47]CAPDU: 80 09 00 00 [08:17:47]Write to MH i2c: E2 08 00 B8 5D 80 09 00 00 00 00 00 00 87 [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:47]Read from MH i2c: E2 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 B8 5D 00 90 00 89 [08:17:47]RAPDU: 90 00 [08:17:47]wFMCommunicate OK [08:17:47]SAM_PROTO_ClearQueue done [08:17:47]KKMCreateOFDPacket [08:17:47]OFDProtocolAddRootSTLVToBuf [08:17:47]FM_MakeSignedData [08:17:47]FM_MakeSignedData [08:17:47]SAM_PROTO_SignData [08:17:47]wFMCommunicate request_size=4 [08:17:47]MH_SAM_APDU [08:17:47]CAPDU: 80 0D 01 02 [08:17:47]Write to MH i2c: E2 08 00 B9 5D 80 0D 01 02 00 00 00 00 8F [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 B9 5D 00 90 00 8A [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=255 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 02 02 FA 03 00 AE 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 [08:17:48]Write to MH i2c: E2 02 01 BA 5D 80 0D 02 02 FA 00 03 00 AE 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 49 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 BA 5D 00 90 00 8B [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=189 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 02 02 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 47 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 34 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 68 01 00 35 04 06 00 51 66 D3 8B C1 E4 [08:17:48]Write to MH i2c: E2 C0 00 BB 5D 80 0D 02 02 B8 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 47 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 34 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 68 01 00 35 04 06 00 51 66 D3 8B C1 E4 00 00 7B [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 BB 5D 00 90 00 8C [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 03 02 [08:17:48]Write to MH i2c: E2 08 00 BC 5D 80 0D 03 02 00 00 00 00 94 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]OFD Sender: No OFD packet to send [08:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0B 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0B 00 BC 5D 00 48 97 9E 02 32 74 B7 3E 90 00 AF [08:17:48]RAPDU: 48 97 9E 02 32 74 B7 3E 90 00 [08:17:48]wFMCommunicate OK [08:17:48]SAM_PROTO_SignData done [08:17:48]FM_MakeSignedData done [08:17:48]CreateOFDProtocolMessage [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 11 00 00 [08:17:48]Write to MH i2c: E2 08 00 BD 5D 80 11 00 00 00 00 00 00 94 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 BD 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EB [08:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:17:48]wFMCommunicate OK [08:17:48]CreateOFDProtocolMessage done [08:17:48]OFDSenderStorePacket 92222 [08:17:48]StoreOFDPacket docnum=92222 [08:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C2 01 00 00 08 8D BA 01 F6 04 5A 03 01 00 03 00 AE 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 47 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 34 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 68 01 00 35 04 06 00 51 66 D3 8B C1 E4 48 97 9E 02 32 74 B7 3E [08:17:48]CheckFolder [08:17:48]dirname=/storage/ofd_packets [08:17:48]CheckFolder done [08:17:48]ProducePacketName [08:17:48]name=ofd_packets/00092222 [08:17:48]NVStorageSaveData ofd_packets/00092222 [08:17:48]File name is /storage/ofd_packets/00092222 [08:17:48]Write 480 bytes [08:17:48]NVStorageSaveData done [08:17:48]OFDSenderStorePacket done [08:17:48]KKMCreateOFDPacket done [08:17:48]NVStorageSaveData kkm_last_timestamp [08:17:48]File name is /storage/kkm_last_timestamp [08:17:48]Write 4 bytes [08:17:48]NVStorageSaveData done [08:17:48]ExternCall_PrintAddStr [08:17:48]wPrintStart [08:17:48]Write to MH i2c: 01 00 00 BE 5D 1B [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 BE 5D 00 00 00 00 00 FF 0F 30 [08:17:48]RasterBufferAndPrint [08:17:48]line Счет N : (3)127155 [08:17:48]line ИНН: 02508201610067 [08:17:48]line Контрольно-Кассовый Чек [08:17:48]line ПРОДАЖА [08:17:48]line Товар: 4700000481965 [08:17:48]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [08:17:48]line 1.000 * 95.00 [08:17:48]line = 95.00 [08:17:48]line НДС 12% НСП 1% [08:17:48]line > о реализуемом товаре [08:17:48]line Товар: 5000159390729 [08:17:48]line Шок Батончик Твикс Экстра 82г [08:17:48]line 1.000 * 89.00 [08:17:48]line = 89.00 [08:17:48]line НДС 12% НСП 1% [08:17:48]line > о реализуемом товаре [08:17:48]line ИТОГО: 184.00 [08:17:48]line НСП 1% : 1.63 [08:17:48]line НДС 12% : 19.54 [08:17:48]line Наличными: 0.00 [08:17:48]line Безнал.: 184.00 [08:17:48]line Место: АЗС № 5 "Партнер Нефть" [08:17:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:17:48]line СНО: Общий режим [08:17:48]line Чек 30 13.09.2024 08:17 [08:17:48]line Смена: 505 ФФД: 1.0 [08:17:48]line ЗНМ: 03000000022 [08:17:48]line РНМ: 0000000000091423 [08:17:48]line Версия ККМ: 001 [08:17:48]line Платежная система: О! деньги [08:17:48]line ФМ: 0000000000874692 [08:17:48]line ФД: 92222 [08:17:48]line ФПД: 89502077665764 [08:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92222&fm=89502077665764&tin=02508201610067®Number=0000000000091423&sum=18400 [08:17:48]line 0 [08:17:48]written 0, free lines is 4095 [08:17:49]OFD Sender: Processing packet 92222 [packets to send 63, broken 62] [08:17:49]ProducePacketName [08:17:49]name=ofd_packets/00092222 [08:17:49]OFD Sender: To server: pG, [08:17:49]CommunicateWithHost lk.salyk.kg:30040 [08:17:49]ConnectInit lk.salyk.kg [08:17:49]Connected sock=10 [08:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C2 01 00 00 08 8D BA 01 F6 04 5A 03 01 00 03 00 AE 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 47 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 34 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 68 01 00 35 04 06 00 51 66 D3 8B C1 E4 48 97 9E 02 32 74 B7 3E [08:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 46 C1 47 00 65 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 68 01 00 F4 03 04 00 B4 9D E3 66 B6 04 01 00 00 14 F9 E3 6B 44 7F 53 0E [08:17:49]CommunicateWithHost err = 0 [08:17:49]CheckOFDResponse [08:17:49]1017 (14) - 77093643461234 [08:17:49]1041 (16) - 0000000000874692 [08:17:49]1040 (4) - 92222 [08:17:49]1012 (4) - 13.09.2024 02:04 [08:17:49]1206 (1) - 0 [08:17:49]OFD Sender: Remove packet 92222 [08:17:49]ProducePacketName [08:17:49]name=ofd_packets/00092222 [08:17:49]NVStorageDeleteData [08:17:49]Write to MH i2c: 01 00 00 F0 5D 4D [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 07 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 07 00 F0 5D 00 00 00 00 00 9E 0C FE [08:17:49]RasterBufferAndPrint [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]written 0, free lines is 3239 [08:17:49]MH_Cut [08:17:49]Write to MH i2c: D1 01 00 F7 5D 01 26 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 01 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 01 00 F7 5D 00 25 [08:17:49]Write to MH i2c: 01 00 00 F8 5D 55 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]OFD Sender: No OFD packet to send [08:17:50]*** Cut start [08:17:50]*** Purtial cut [08:17:50]*** Stage 1: CUTSNS_PIN = 1 [08:17:52]Read from MH i2c: 01 [08:17:52]MH_I2C_Read... [08:17:52]*** Stop cut motor [08:17:52]*** Cut end [08:17:52]Read from MH i2c: 01 07 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: 01 07 00 F8 5D 00 00 00 00 00 FF 0F 6A [08:17:52]process_action close_receipt done [08:17:52]requested_data is exist [08:17:52]produce_requested_data [08:17:52]requested_item fm.sn is exist - process it [08:17:52]wFMCommunicate request_size=4 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 11 00 00 [08:17:52]Write to MH i2c: E2 08 00 F9 5D 80 11 00 00 00 00 00 00 D0 [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:52]Read from MH i2c: E2 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 17 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 17 00 F9 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [08:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:17:52]wFMCommunicate OK [08:17:52]requested_item fd.num is exist - process it [08:17:52]SAM_PROTO_GetFieldsCounters [08:17:52]wFMCommunicate request_size=4 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 13 00 00 [08:17:52]Write to MH i2c: E2 08 00 FA 5D 80 13 00 00 00 00 00 00 D3 [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:52]Read from MH i2c: E2 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 62 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 62 00 FA 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:52]wFMCommunicate OK [08:17:52]SAM_PROTO_GetFieldsCounters done [08:17:52]requested_item shift.num is exist - process it [08:17:52]requested_item shift.opened is exist - process it [08:17:52]req_shift_opened [08:17:52]FM_GetShiftState [08:17:52]SAM_PROTO_GetShiftState [08:17:52]wFMCommunicate request_size=4 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 13 01 00 [08:17:52]Write to MH i2c: E2 08 00 FB 5D 80 13 01 00 00 00 00 00 D5 [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:52]Read from MH i2c: E2 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 0E 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 0E 00 FB 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 61 [08:17:52]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:17:52]wFMCommunicate OK [08:17:52]SAM_PROTO_GetShiftState done [08:17:52]FM_GetShiftState done [08:17:52]req_shift_opened done [08:17:52]requested_item shift.open_date is exist - process it [08:17:52]req_shift_open_date [08:17:52]req_shift_open_date done [08:17:52]produce_requested_data done [08:17:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92222,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:17:52]process_action_free close_receipt [08:17:52]json_value_free [08:17:52]json_value_free done [08:17:52]process_json_proto returns [08:17:52]Send response to host [08:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92222,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:17:52]free response buf [08:17:52]execute_script done [08:17:52]execute_script returns [08:17:52]free content buf [08:17:52]Sock 8.Close socket [08:17:52]Sock 8.Thread stoped [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:02]accept exits with 9 [08:19:02]New connection [08:19:02]New thread 3067399524 created [08:19:02]Thread 3067256164 joined [08:19:02]Waiting for new connection... [08:19:02] Sock 9.Parse request [08:19:02]Sock 9.Check first char [08:19:02]Sock 9.First char is OK [08:19:02]request: POST /json_proto HTTP/1.0 [08:19:02]Method: POST [08:19:02]URL: /json_proto [08:19:02]Method is POST - this is cgi request [08:19:02]url: /json_proto [08:19:02]query_string will be loaded in cgi processing [08:19:02]execute_cgi json_proto POST (null) [08:19:02]execute_cgi path=json_proto method=POST [08:19:02]POST find Content-Length [08:19:02]Host: 172.17.57.71:8080 [08:19:02]Content-Length: 1254 [08:19:02]Content-Type: application/json [08:19:02] [08:19:02]POST finish read [08:19:02]Found Content-Length = 1254 [08:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127156", "tax_sys" : 0, "items" : [ { "code": "4036021100258", "name": "\u041C\u041C Mannol Universal SAE 15W40 1\u043B", "price" : 680.00, "quantity" : 1.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 954.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:02]execute_script... [08: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 : (3)127156", "tax_sys" : 0, "items" : [ { "code": "4036021100258", "name": "\u041C\u041C Mannol Universal SAE 15W40 1\u043B", "price" : 680.00, "quantity" : 1.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 954.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:02]POST & json_proto [08:19:02]process_json_proto [08:19:02]json parsed OK: [08:19:02]protocol is kg_v1.0 [08:19:02]action value=close_receipt [08:19:02]process_action close_receipt [08:19:02]cmd_close_receipt [08:19:02]MH_GetDate [08:19:02]Write to MH i2c: F0 00 00 FC 5D 48 [08:19:02]Write i2c OK [08:19:02]MH_I2C_Read... [08:19:02]Read from MH i2c: F0 [08:19:02]MH_I2C_Read... [08:19:02]Read from MH i2c: F0 09 00 [08:19:02]MH_I2C_Read... [08:19:02]Read from MH i2c: F0 09 00 FC 5D 00 81 F5 E3 66 33 3A A4 66 87 [08:19:02]GetLastDocTimeStamp 1726215476 [08:19:02]current date 1726215553 [08:19:02]FM_GetShiftState [08:19:02]SAM_PROTO_GetShiftState [08:19:02]wFMCommunicate request_size=4 [08:19:02]MH_SAM_APDU [08:19:02]CAPDU: 80 13 01 00 [08:19:02]Write to MH i2c: E2 08 00 FD 5D 80 13 01 00 00 00 00 00 D7 [08:19:02]Write i2c OK [08:19:02]MH_I2C_Read... [08:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:03]Read from MH i2c: E2 [08:19:03]MH_I2C_Read... [08:19:03]Read from MH i2c: E2 0E 00 [08:19:03]MH_I2C_Read... [08:19:03]Read from MH i2c: E2 0E 00 FD 5D 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 63 [08:19:03]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:19:03]wFMCommunicate OK [08:19:03]SAM_PROTO_GetShiftState done [08:19:03]FM_GetShiftState done [08:19:03]opened in 1726186930 [08:19:03]opened+sec_in_day 1726273330 [08:19:03]quantity*price = 68000 [08:19:03]sum+1 = 68001 [08:19:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 954.00 НСП 1% : 8.44 НДС 12% : 101.30 Наличными: 0.00 Безнал.: 954.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 31 13.09.2024 08:19 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92223 ФПД: 120744248151291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081913&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92223&fm=120744248151291&tin=02508201610067®Number=0000000000091423&sum=95400 0 [08:19:04]StoreToDocumentArchive [08:19:04]shift 505 fd 92223 [08:19:04]save to /storage/0505/doc_00092223 [08:19:04]save last doc name /storage/0505/doc_00092223 to /storage/kkm_last_doc_name [08:19:04]save OK [08:19:04]Clear old archive folders... [08:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=488 [08:19:04]tlvbuf is 016180A0 [08:19:04]SAM_PROTO_ClearQueue [08:19:04]wFMCommunicate request_size=4 [08:19:04]MH_SAM_APDU [08:19:04]CAPDU: 80 09 00 00 [08:19:04]Write to MH i2c: E2 08 00 0A 5E 80 09 00 00 00 00 00 00 DA [08:19:04]Write i2c OK [08:19:04]MH_I2C_Read... [08:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:04]Read from MH i2c: E2 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 0A 5E 00 90 00 DC [08:19:04]RAPDU: 90 00 [08:19:04]wFMCommunicate OK [08:19:04]SAM_PROTO_ClearQueue done [08:19:04]KKMCreateOFDPacket [08:19:04]OFDProtocolAddRootSTLVToBuf [08:19:04]FM_MakeSignedData [08:19:04]FM_MakeSignedData [08:19:04]SAM_PROTO_SignData [08:19:04]wFMCommunicate request_size=4 [08:19:04]MH_SAM_APDU [08:19:04]CAPDU: 80 0D 01 02 [08:19:04]Write to MH i2c: E2 08 00 0B 5E 80 0D 01 02 00 00 00 00 E2 [08:19:04]Write i2c OK [08:19:04]MH_I2C_Read... [08:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:04]Read from MH i2c: E2 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 0B 5E 00 90 00 DD [08:19:04]RAPDU: 90 00 [08:19:04]wFMCommunicate OK [08:19:04]wFMCommunicate request_size=255 [08:19:04]MH_SAM_APDU [08:19:04]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE [08:19:04]Write to MH i2c: E2 02 01 0C 5E 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE 00 00 F2 [08:19:04]Write i2c OK [08:19:04]MH_I2C_Read... [08:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:04]Read from MH i2c: E2 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 [08:19:04]MH_I2C_Read... [08:19:04]Read from MH i2c: E2 03 00 0C 5E 00 90 00 DE [08:19:04]RAPDU: 90 00 [08:19:04]wFMCommunicate OK [08:19:04]wFMCommunicate request_size=247 [08:19:04]MH_SAM_APDU [08:19:04]CAPDU: 80 0D 02 02 F2 D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 81 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 68 01 00 35 04 06 00 6D D0 F6 05 0C FB [08:19:04]Write to MH i2c: E2 FA 00 0D 5E 80 0D 02 02 F2 00 D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 81 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 68 01 00 35 04 06 00 6D D0 F6 05 0C FB 00 00 C9 [08:19:04]Write i2c OK [08:19:04]MH_I2C_Read... [08:19:04]OFD Sender: No OFD packet to send [08:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:05]Read from MH i2c: E2 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 03 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 03 00 0D 5E 00 90 00 DF [08:19:05]RAPDU: 90 00 [08:19:05]wFMCommunicate OK [08:19:05]wFMCommunicate request_size=4 [08:19:05]MH_SAM_APDU [08:19:05]CAPDU: 80 0D 03 02 [08:19:05]Write to MH i2c: E2 08 00 0E 5E 80 0D 03 02 00 00 00 00 E7 [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:05]Read from MH i2c: E2 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 0B 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 0B 00 0E 5E 00 96 86 24 7D B8 B5 05 F6 90 00 0D [08:19:05]RAPDU: 96 86 24 7D B8 B5 05 F6 90 00 [08:19:05]wFMCommunicate OK [08:19:05]SAM_PROTO_SignData done [08:19:05]FM_MakeSignedData done [08:19:05]CreateOFDProtocolMessage [08:19:05]wFMCommunicate request_size=4 [08:19:05]MH_SAM_APDU [08:19:05]CAPDU: 80 11 00 00 [08:19:05]Write to MH i2c: E2 08 00 0F 5E 80 11 00 00 00 00 00 00 E7 [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 [08:19:05]MH_I2C_Read... [08:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:05]Read from MH i2c: E2 17 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 17 00 0F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3E [08:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:19:05]wFMCommunicate OK [08:19:05]CreateOFDProtocolMessage done [08:19:05]OFDSenderStorePacket 92223 [08:19:05]StoreOFDPacket docnum=92223 [08:19:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FC 01 00 00 BF 29 F4 01 86 DD 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 81 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 68 01 00 35 04 06 00 6D D0 F6 05 0C FB 96 86 24 7D B8 B5 05 F6 [08:19:05]CheckFolder [08:19:05]dirname=/storage/ofd_packets [08:19:05]CheckFolder done [08:19:05]ProducePacketName [08:19:05]name=ofd_packets/00092223 [08:19:05]NVStorageSaveData ofd_packets/00092223 [08:19:05]File name is /storage/ofd_packets/00092223 [08:19:05]Write 538 bytes [08:19:05]NVStorageSaveData done [08:19:05]OFDSenderStorePacket done [08:19:05]KKMCreateOFDPacket done [08:19:05]NVStorageSaveData kkm_last_timestamp [08:19:05]File name is /storage/kkm_last_timestamp [08:19:05]Write 4 bytes [08:19:05]NVStorageSaveData done [08:19:05]ExternCall_PrintAddStr [08:19:05]wPrintStart [08:19:05]Write to MH i2c: 01 00 00 10 5E 6E [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 07 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 07 00 10 5E 00 00 00 00 00 FF 0F 83 [08:19:05]RasterBufferAndPrint [08:19:05]line Счет N : (3)127156 [08:19:05]line ИНН: 02508201610067 [08:19:05]line Контрольно-Кассовый Чек [08:19:05]line ПРОДАЖА [08:19:05]line Товар: 4036021100258 [08:19:05]line ММ Mannol Universal SAE 15W40 1л [08:19:05]line 1.000 * 680.00 [08:19:05]line = 680.00 [08:19:05]line НДС 12% НСП 1% [08:19:05]line > о реализуемом товаре [08:19:05]line Товар: 48743587 [08:19:05]line Сигареты Winston XStyle Silver [08:19:05]line 1.000 * 144.00 [08:19:05]line = 144.00 [08:19:05]line НДС 12% НСП 1% [08:19:05]line > о реализуемом товаре [08:19:05]line Товар: 2000036230011 [08:19:05]line Кофе Латте XL(GABB TRADE) [08:19:05]line 1.000 * 130.00 [08:19:05]line = 130.00 [08:19:05]line НДС 12% НСП 1% [08:19:05]line > о реализуемом товаре [08:19:05]line ИТОГО: 954.00 [08:19:05]line НСП 1% : 8.44 [08:19:05]line НДС 12% : 101.30 [08:19:05]line Наличными: 0.00 [08:19:05]line Безнал.: 954.00 [08:19:05]line Место: АЗС № 5 "Партнер Нефть" [08:19:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:19:05]line СНО: Общий режим [08:19:05]line Чек 31 13.09.2024 08:19 [08:19:05]line Смена: 505 ФФД: 1.0 [08:19:05]line ЗНМ: 03000000022 [08:19:05]line РНМ: 0000000000091423 [08:19:05]line Версия ККМ: 001 [08:19:05]line Платежная система: О! деньги [08:19:05]line ФМ: 0000000000874692 [08:19:05]line ФД: 92223 [08:19:05]line ФПД: 120744248151291 [08:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T081913&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92223&fm=120744248151291&tin=02508201610067®Number=0000000000091423&sum=95400 [08:19:05]line 0 [08:19:05]written 0, free lines is 4095 [08:19:05]OFD Sender: Processing packet 92223 [packets to send 63, broken 62] [08:19:05]ProducePacketName [08:19:05]name=ofd_packets/00092223 [08:19:05]OFD Sender: To server: pG, [08:19:05]CommunicateWithHost lk.salyk.kg:30040 [08:19:05]ConnectInit lk.salyk.kg [08:19:05]Connected sock=10 [08:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FC 01 00 00 BF 29 F4 01 86 DD 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 30 32 35 38 06 04 23 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 55 6E 69 76 65 72 73 61 6C 20 53 41 45 20 31 35 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 09 01 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 81 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 68 01 00 35 04 06 00 6D D0 F6 05 0C FB 96 86 24 7D B8 B5 05 F6 [08:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A8 04 47 00 6E 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 68 01 00 F4 03 04 00 01 9E E3 66 B6 04 01 00 00 58 37 69 48 68 CA 20 D7 [08:19:05]CommunicateWithHost err = 0 [08:19:05]CheckOFDResponse [08:19:05]1017 (14) - 77093643461234 [08:19:05]1041 (16) - 0000000000874692 [08:19:05]1040 (4) - 92223 [08:19:05]1012 (4) - 13.09.2024 02:05 [08:19:05]1206 (1) - 0 [08:19:05]OFD Sender: Remove packet 92223 [08:19:05]ProducePacketName [08:19:05]name=ofd_packets/00092223 [08:19:05]NVStorageDeleteData [08:19:05]Write to MH i2c: 01 00 00 48 5E A6 [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 07 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: 01 07 00 48 5E 00 00 00 00 00 61 0C 1A [08:19:05]RasterBufferAndPrint [08:19:05]line [08:19:05]line [08:19:05]line [08:19:05]line [08:19:05]line [08:19:05]written 0, free lines is 3176 [08:19:05]MH_Cut [08:19:05]Write to MH i2c: D1 01 00 4F 5E 01 7F [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: D1 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: D1 01 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: D1 01 00 4F 5E 00 7E [08:19:05]Write to MH i2c: 01 00 00 50 5E AE [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:06]OFD Sender: No OFD packet to send [08:19:06]*** Cut start [08:19:06]*** Purtial cut [08:19:06]*** Stage 1: CUTSNS_PIN = 1 [08:19:08]Read from MH i2c: 01 [08:19:08]MH_I2C_Read... [08:19:08]*** Stop cut motor [08:19:08]*** Cut end [08:19:08]Read from MH i2c: 01 07 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: 01 07 00 50 5E 00 00 00 00 00 FF 0F C3 [08:19:08]process_action close_receipt done [08:19:08]requested_data is exist [08:19:08]produce_requested_data [08:19:08]requested_item fm.sn is exist - process it [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 11 00 00 [08:19:08]Write to MH i2c: E2 08 00 51 5E 80 11 00 00 00 00 00 00 29 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 17 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 17 00 51 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 80 [08:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:19:08]wFMCommunicate OK [08:19:08]requested_item fd.num is exist - process it [08:19:08]SAM_PROTO_GetFieldsCounters [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 13 00 00 [08:19:08]Write to MH i2c: E2 08 00 52 5E 80 13 00 00 00 00 00 00 2C [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 62 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 62 00 52 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [08:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_GetFieldsCounters done [08:19:08]requested_item shift.num is exist - process it [08:19:08]requested_item shift.opened is exist - process it [08:19:08]req_shift_opened [08:19:08]FM_GetShiftState [08:19:08]SAM_PROTO_GetShiftState [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 13 01 00 [08:19:08]Write to MH i2c: E2 08 00 53 5E 80 13 01 00 00 00 00 00 2E [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 0E 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 0E 00 53 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BA [08:19:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_GetShiftState done [08:19:08]FM_GetShiftState done [08:19:08]req_shift_opened done [08:19:08]requested_item shift.open_date is exist - process it [08:19:08]req_shift_open_date [08:19:08]req_shift_open_date done [08:19:08]produce_requested_data done [08:19:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92223,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:19:08]process_action_free close_receipt [08:19:08]json_value_free [08:19:08]json_value_free done [08:19:08]process_json_proto returns [08:19:08]Send response to host [08:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92223,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:19:08]free response buf [08:19:08]execute_script done [08:19:08]execute_script returns [08:19:08]free content buf [08:19:08]Sock 9.Close socket [08:19:08]Sock 9.Thread stoped [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:24]accept exits with 8 [08:20:24]New connection [08:20:24]New thread 3067256164 created [08:20:24]Thread 3067399524 joined [08:20:24]Waiting for new connection... [08:20:24] Sock 8.Parse request [08:20:24]Sock 8.Check first char [08:20:24]Sock 8.First char is OK [08:20:24]request: POST /json_proto HTTP/1.0 [08:20:24]Method: POST [08:20:24]URL: /json_proto [08:20:24]Method is POST - this is cgi request [08:20:24]url: /json_proto [08:20:24]query_string will be loaded in cgi processing [08:20:24]execute_cgi json_proto POST (null) [08:20:24]execute_cgi path=json_proto method=POST [08:20:24]POST find Content-Length [08:20:24]Host: 172.17.57.71:8080 [08:20:24]Content-Length: 927 [08:20:24]Content-Type: application/json [08:20:24] [08:20:24]POST finish read [08:20:24]Found Content-Length = 927 [08:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127157", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:24]execute_script... [08:20: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 : (3)127157", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:24]POST & json_proto [08:20:24]process_json_proto [08:20:24]json parsed OK: [08:20:24]protocol is kg_v1.0 [08:20:24]action value=close_receipt [08:20:24]process_action close_receipt [08:20:24]cmd_close_receipt [08:20:24]MH_GetDate [08:20:24]Write to MH i2c: F0 00 00 54 5E A1 [08:20:24]Write i2c OK [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: F0 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: F0 09 00 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: F0 09 00 54 5E 00 D2 F5 E3 66 33 3A A4 66 31 [08:20:24]GetLastDocTimeStamp 1726215553 [08:20:24]current date 1726215634 [08:20:24]FM_GetShiftState [08:20:24]SAM_PROTO_GetShiftState [08:20:24]wFMCommunicate request_size=4 [08:20:24]MH_SAM_APDU [08:20:24]CAPDU: 80 13 01 00 [08:20:24]Write to MH i2c: E2 08 00 55 5E 80 13 01 00 00 00 00 00 30 [08:20:24]Write i2c OK [08:20:24]MH_I2C_Read... [08:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:24]Read from MH i2c: E2 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 0E 00 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 0E 00 55 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BC [08:20:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:20:24]wFMCommunicate OK [08:20:24]SAM_PROTO_GetShiftState done [08:20:24]FM_GetShiftState done [08:20:24]opened in 1726186930 [08:20:24]opened+sec_in_day 1726273330 [08:20:24]quantity*price = 12500 [08:20:24]sum+1 = 12501 [08:20:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741156 Сигареты LD Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.30 НДС 12% : 27.50 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 32 13.09.2024 08:20 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92224 ФПД: 172806700561723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T082034&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92224&fm=172806700561723&tin=02508201610067®Number=0000000000091423&sum=25900 0 [08:20:25]StoreToDocumentArchive [08:20:25]shift 505 fd 92224 [08:20:25]save to /storage/0505/doc_00092224 [08:20:25]save last doc name /storage/0505/doc_00092224 to /storage/kkm_last_doc_name [08:20:25]save OK [08:20:25]Clear old archive folders... [08:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=389 [08:20:25]tlvbuf is 015CE7C0 [08:20:25]SAM_PROTO_ClearQueue [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 09 00 00 [08:20:25]Write to MH i2c: E2 08 00 62 5E 80 09 00 00 00 00 00 00 32 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 62 5E 00 90 00 34 [08:20:25]RAPDU: 90 00 [08:20:25]wFMCommunicate OK [08:20:25]SAM_PROTO_ClearQueue done [08:20:25]KKMCreateOFDPacket [08:20:25]OFDProtocolAddRootSTLVToBuf [08:20:25]FM_MakeSignedData [08:20:25]FM_MakeSignedData [08:20:25]SAM_PROTO_SignData [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 0D 01 02 [08:20:25]Write to MH i2c: E2 08 00 63 5E 80 0D 01 02 00 00 00 00 3A [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 63 5E 00 90 00 35 [08:20:25]RAPDU: 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=255 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [08:20:25]Write to MH i2c: E2 02 01 64 5E 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 DB [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 64 5E 00 90 00 36 [08:20:25]RAPDU: 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=148 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 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 20 00 00 00 F4 03 04 00 D2 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 68 01 00 35 04 06 00 9D 2A B2 00 75 3B [08:20:25]Write to MH i2c: E2 97 00 65 5E 80 0D 02 02 8F 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 BE 0A 00 00 00 00 07 04 06 00 2C 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 20 00 00 00 F4 03 04 00 D2 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 68 01 00 35 04 06 00 9D 2A B2 00 75 3B 00 00 C2 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 03 00 65 5E 00 90 00 37 [08:20:25]RAPDU: 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 0D 03 02 [08:20:25]Write to MH i2c: E2 08 00 66 5E 80 0D 03 02 00 00 00 00 3F [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 0B 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 0B 00 66 5E 00 5A B8 6E 16 88 00 E6 39 90 00 7D [08:20:25]RAPDU: 5A B8 6E 16 88 00 E6 39 90 00 [08:20:25]wFMCommunicate OK [08:20:25]SAM_PROTO_SignData done [08:20:25]FM_MakeSignedData done [08:20:25]CreateOFDProtocolMessage [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 11 00 00 [08:20:25]Write to MH i2c: E2 08 00 67 5E 80 11 00 00 00 00 00 00 3F [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 17 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 17 00 67 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 96 [08:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:25]wFMCommunicate OK [08:20:25]CreateOFDProtocolMessage done [08:20:25]OFDSenderStorePacket 92224 [08:20:25]StoreOFDPacket docnum=92224 [08:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 99 01 00 00 9F A3 91 01 55 6B 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 BE 0A 00 00 00 00 07 04 06 00 2C 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 20 00 00 00 F4 03 04 00 D2 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 68 01 00 35 04 06 00 9D 2A B2 00 75 3B 5A B8 6E 16 88 00 E6 39 [08:20:25]CheckFolder [08:20:25]dirname=/storage/ofd_packets [08:20:25]CheckFolder done [08:20:25]ProducePacketName [08:20:25]name=ofd_packets/00092224 [08:20:25]NVStorageSaveData ofd_packets/00092224 [08:20:25]File name is /storage/ofd_packets/00092224 [08:20:25]Write 439 bytes [08:20:25]NVStorageSaveData done [08:20:25]OFDSenderStorePacket done [08:20:25]KKMCreateOFDPacket done [08:20:25]NVStorageSaveData kkm_last_timestamp [08:20:25]File name is /storage/kkm_last_timestamp [08:20:25]Write 4 bytes [08:20:25]NVStorageSaveData done [08:20:25]ExternCall_PrintAddStr [08:20:25]wPrintStart [08:20:25]Write to MH i2c: 01 00 00 68 5E C6 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: 01 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: 01 07 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: 01 07 00 68 5E 00 00 00 00 00 FF 0F DB [08:20:25]RasterBufferAndPrint [08:20:25]line Счет N : (3)127157 [08:20:25]line ИНН: 02508201610067 [08:20:25]line Контрольно-Кассовый Чек [08:20:25]line ПРОДАЖА [08:20:25]line Товар: 4870202522701 [08:20:26]line Напиток Maxi Чай черный Малина 1,2 [08:20:26]line 1.000 * 125.00 [08:20:26]line = 125.00 [08:20:26]line НДС 12% НСП 1% [08:20:26]line > о реализуемом товаре [08:20:26]line Товар: 48741156 [08:20:26]line Сигареты LD Blue [08:20:26]line 1.000 * 134.00 [08:20:26]line = 134.00 [08:20:26]line НДС 12% НСП 1% [08:20:26]line > о реализуемом товаре [08:20:26]line ИТОГО: 259.00 [08:20:26]line НСП 1% : 2.30 [08:20:26]line НДС 12% : 27.50 [08:20:26]line Наличными: 259.00 [08:20:26]line Безнал.: 0.00 [08:20:26]line Место: АЗС № 5 "Партнер Нефть" [08:20:26]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:20:26]line СНО: Общий режим [08:20:26]line Чек 32 13.09.2024 08:20 [08:20:26]line Смена: 505 ФФД: 1.0 [08:20:26]line ЗНМ: 03000000022 [08:20:26]line РНМ: 0000000000091423 [08:20:26]line Версия ККМ: 001 [08:20:26]line ФМ: 0000000000874692 [08:20:26]line ФД: 92224 [08:20:26]line ФПД: 172806700561723 [08:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T082034&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92224&fm=172806700561723&tin=02508201610067®Number=0000000000091423&sum=25900 [08:20:26]line 0 [08:20:26]OFD Sender: Processing packet 92224 [packets to send 63, broken 62] [08:20:26]ProducePacketName [08:20:26]name=ofd_packets/00092224 [08:20:26]OFD Sender: To server: pG, [08:20:26]CommunicateWithHost lk.salyk.kg:30040 [08:20:26]ConnectInit lk.salyk.kg [08:20:26]written 0, free lines is 4095 [08:20:26]Connected sock=10 [08:20:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 99 01 00 00 9F A3 91 01 55 6B 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 BE 0A 00 00 00 00 07 04 06 00 2C 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 20 00 00 00 F4 03 04 00 D2 F5 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 68 01 00 35 04 06 00 9D 2A B2 00 75 3B 5A B8 6E 16 88 00 E6 39 [08:20:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9A D1 47 00 39 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 68 01 00 F4 03 04 00 51 9E E3 66 B6 04 01 00 00 96 02 4E 45 47 C7 E3 73 [08:20:26]CommunicateWithHost err = 0 [08:20:26]CheckOFDResponse [08:20:26]1017 (14) - 77093643461234 [08:20:26]1041 (16) - 0000000000874692 [08:20:26]1040 (4) - 92224 [08:20:26]1012 (4) - 13.09.2024 02:07 [08:20:26]1206 (1) - 0 [08:20:26]OFD Sender: Remove packet 92224 [08:20:26]ProducePacketName [08:20:26]name=ofd_packets/00092224 [08:20:26]NVStorageDeleteData [08:20:26]Write to MH i2c: 01 00 00 97 5E F5 [08:20:26]Write i2c OK [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: 01 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: 01 07 00 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: 01 07 00 97 5E 00 00 00 00 00 BA 0C C2 [08:20:26]RasterBufferAndPrint [08:20:26]line [08:20:26]line [08:20:26]line [08:20:26]line [08:20:26]line [08:20:26]written 0, free lines is 3267 [08:20:26]MH_Cut [08:20:26]Write to MH i2c: D1 01 00 9E 5E 01 CE [08:20:26]Write i2c OK [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: D1 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: D1 01 00 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: D1 01 00 9E 5E 00 CD [08:20:26]Write to MH i2c: 01 00 00 9F 5E FD [08:20:26]Write i2c OK [08:20:26]MH_I2C_Read... [08:20:27]OFD Sender: No OFD packet to send [08:20:27]*** Cut start [08:20:27]*** Purtial cut [08:20:27]*** Stage 1: CUTSNS_PIN = 1 [08:20:29]Read from MH i2c: 01 [08:20:29]MH_I2C_Read... [08:20:29]*** Stop cut motor [08:20:29]*** Cut end [08:20:29]Read from MH i2c: 01 07 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: 01 07 00 9F 5E 00 00 00 00 00 FF 0F 12 [08:20:29]process_action close_receipt done [08:20:29]requested_data is exist [08:20:29]produce_requested_data [08:20:29]requested_item fm.sn is exist - process it [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 11 00 00 [08:20:29]Write to MH i2c: E2 08 00 A0 5E 80 11 00 00 00 00 00 00 78 [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 17 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 17 00 A0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [08:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:20:29]wFMCommunicate OK [08:20:29]requested_item fd.num is exist - process it [08:20:29]SAM_PROTO_GetFieldsCounters [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 00 00 [08:20:29]Write to MH i2c: E2 08 00 A1 5E 80 13 00 00 00 00 00 00 7B [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 62 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 62 00 A1 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 40 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [08:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 40 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetFieldsCounters done [08:20:29]requested_item shift.num is exist - process it [08:20:29]requested_item shift.opened is exist - process it [08:20:29]req_shift_opened [08:20:29]FM_GetShiftState [08:20:29]SAM_PROTO_GetShiftState [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 01 00 [08:20:29]Write to MH i2c: E2 08 00 A2 5E 80 13 01 00 00 00 00 00 7D [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 A2 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 09 [08:20:29]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetShiftState done [08:20:29]FM_GetShiftState done [08:20:29]req_shift_opened done [08:20:29]requested_item shift.open_date is exist - process it [08:20:29]req_shift_open_date [08:20:29]req_shift_open_date done [08:20:29]produce_requested_data done [08:20:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92224,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:20:29]process_action_free close_receipt [08:20:29]json_value_free [08:20:29]json_value_free done [08:20:29]process_json_proto returns [08:20:29]Send response to host [08:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92224,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:20:29]free response buf [08:20:29]execute_script done [08:20:29]execute_script returns [08:20:29]free content buf [08:20:29]Sock 8.Close socket [08:20:29]Sock 8.Thread stoped [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:28]accept exits with 9 [08:32:28]New connection [08:32:28]New thread 3067399524 created [08:32:28]Thread 3067256164 joined [08:32:28]Waiting for new connection... [08:32:28] Sock 9.Parse request [08:32:28]Sock 9.Check first char [08:32:28]Sock 9.First char is OK [08:32:28]request: POST /json_proto HTTP/1.0 [08:32:28]Method: POST [08:32:28]URL: /json_proto [08:32:28]Method is POST - this is cgi request [08:32:28]url: /json_proto [08:32:28]query_string will be loaded in cgi processing [08:32:28]execute_cgi json_proto POST (null) [08:32:28]execute_cgi path=json_proto method=POST [08:32:28]POST find Content-Length [08:32:28]Host: 172.17.57.71:8080 [08:32:28]Content-Length: 628 [08:32:28]Content-Type: application/json [08:32:28] [08:32:28]POST finish read [08:32:28]Found Content-Length = 628 [08:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127158", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:28]execute_script... [08:32: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 : (3)127158", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:28]POST & json_proto [08:32:28]process_json_proto [08:32:28]json parsed OK: [08:32:28]protocol is kg_v1.0 [08:32:28]action value=close_receipt [08:32:28]process_action close_receipt [08:32:28]cmd_close_receipt [08:32:28]MH_GetDate [08:32:28]Write to MH i2c: F0 00 00 A3 5E F0 [08:32:28]Write i2c OK [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 09 00 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 09 00 A3 5E 00 A6 F8 E3 66 33 3A A4 66 57 [08:32:28]GetLastDocTimeStamp 1726215634 [08:32:28]current date 1726216358 [08:32:28]FM_GetShiftState [08:32:28]SAM_PROTO_GetShiftState [08:32:28]wFMCommunicate request_size=4 [08:32:28]MH_SAM_APDU [08:32:28]CAPDU: 80 13 01 00 [08:32:28]Write to MH i2c: E2 08 00 A4 5E 80 13 01 00 00 00 00 00 7F [08:32:28]Write i2c OK [08:32:28]MH_I2C_Read... [08:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:28]Read from MH i2c: E2 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: E2 0E 00 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: E2 0E 00 A4 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0B [08:32:28]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:32:28]wFMCommunicate OK [08:32:28]SAM_PROTO_GetShiftState done [08:32:28]FM_GetShiftState done [08:32:28]opened in 1726186930 [08:32:28]opened+sec_in_day 1726273330 [08:32:28]quantity*price = 13000 [08:32:28]sum+1 = 13001 [08:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 33 13.09.2024 08:32 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92225 ФПД: 179082656202148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T083238&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92225&fm=179082656202148&tin=02508201610067®Number=0000000000091423&sum=13000 0 [08:32:29]StoreToDocumentArchive [08:32:29]shift 505 fd 92225 [08:32:29]save to /storage/0505/doc_00092225 [08:32:29]save last doc name /storage/0505/doc_00092225 to /storage/kkm_last_doc_name [08:32:29]save OK [08:32:29]Clear old archive folders... [08:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:32:29]tlvbuf is 016D53B0 [08:32:29]SAM_PROTO_ClearQueue [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 09 00 00 [08:32:29]Write to MH i2c: E2 08 00 B1 5E 80 09 00 00 00 00 00 00 81 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 B1 5E 00 90 00 83 [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]SAM_PROTO_ClearQueue done [08:32:29]KKMCreateOFDPacket [08:32:29]OFDProtocolAddRootSTLVToBuf [08:32:29]FM_MakeSignedData [08:32:29]FM_MakeSignedData [08:32:29]SAM_PROTO_SignData [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 01 02 [08:32:29]Write to MH i2c: E2 08 00 B2 5E 80 0D 01 02 00 00 00 00 89 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 B2 5E 00 90 00 84 [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]wFMCommunicate request_size=255 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 21 00 00 00 F4 03 04 00 A6 F8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [08:32:29]Write to MH i2c: E2 02 01 B3 5E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 21 00 00 00 F4 03 04 00 A6 F8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 A0 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 B3 5E 00 90 00 85 [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]wFMCommunicate request_size=35 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 68 01 00 35 04 06 00 A2 DF EE 1B BD A4 [08:32:30]Write to MH i2c: E2 26 00 B4 5E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 68 01 00 35 04 06 00 A2 DF EE 1B BD A4 00 00 18 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 B4 5E 00 90 00 86 [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 0D 03 02 [08:32:30]Write to MH i2c: E2 08 00 B5 5E 80 0D 03 02 00 00 00 00 8E [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 0B 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 0B 00 B5 5E 00 48 4B D1 16 1C E1 10 48 90 00 5E [08:32:30]RAPDU: 48 4B D1 16 1C E1 10 48 90 00 [08:32:30]wFMCommunicate OK [08:32:30]SAM_PROTO_SignData done [08:32:30]FM_MakeSignedData done [08:32:30]CreateOFDProtocolMessage [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 11 00 00 [08:32:30]Write to MH i2c: E2 08 00 B6 5E 80 11 00 00 00 00 00 00 8E [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 17 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 17 00 B6 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E5 [08:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:32:30]wFMCommunicate OK [08:32:30]CreateOFDProtocolMessage done [08:32:30]OFDSenderStorePacket 92225 [08:32:30]StoreOFDPacket docnum=92225 [08:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 99 09 20 01 5E DE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 21 00 00 00 F4 03 04 00 A6 F8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 68 01 00 35 04 06 00 A2 DF EE 1B BD A4 48 4B D1 16 1C E1 10 48 [08:32:30]CheckFolder [08:32:30]dirname=/storage/ofd_packets [08:32:30]CheckFolder done [08:32:30]ProducePacketName [08:32:30]name=ofd_packets/00092225 [08:32:30]NVStorageSaveData ofd_packets/00092225 [08:32:30]File name is /storage/ofd_packets/00092225 [08:32:30]Write 326 bytes [08:32:30]NVStorageSaveData done [08:32:30]OFDSenderStorePacket done [08:32:30]KKMCreateOFDPacket done [08:32:30]NVStorageSaveData kkm_last_timestamp [08:32:30]File name is /storage/kkm_last_timestamp [08:32:30]Write 4 bytes [08:32:30]NVStorageSaveData done [08:32:30]ExternCall_PrintAddStr [08:32:30]wPrintStart [08:32:30]Write to MH i2c: 01 00 00 B7 5E 15 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 07 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 07 00 B7 5E 00 00 00 00 00 FF 0F 2A [08:32:30]RasterBufferAndPrint [08:32:30]line Счет N : (3)127158 [08:32:30]line ИНН: 02508201610067 [08:32:30]line Контрольно-Кассовый Чек [08:32:30]line ПРОДАЖА [08:32:30]line Товар: 2000036230011 [08:32:30]line Кофе Латте XL(GABB TRADE) [08:32:30]line 1.000 * 130.00 [08:32:30]line = 130.00 [08:32:30]line НДС 12% НСП 1% [08:32:30]line > о реализуемом товаре [08:32:30]line ИТОГО: 130.00 [08:32:30]line НСП 1% : 1.15 [08:32:30]line НДС 12% : 13.80 [08:32:30]line Наличными: 130.00 [08:32:30]line Безнал.: 0.00 [08:32:30]line Место: АЗС № 5 "Партнер Нефть" [08:32:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:32:30]line СНО: Общий режим [08:32:30]line Чек 33 13.09.2024 08:32 [08:32:30]line Смена: 505 ФФД: 1.0 [08:32:30]line ЗНМ: 03000000022 [08:32:30]line РНМ: 0000000000091423 [08:32:30]line Версия ККМ: 001 [08:32:30]line ФМ: 0000000000874692 [08:32:30]line ФД: 92225 [08:32:30]line ФПД: 179082656202148 [08:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T083238&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92225&fm=179082656202148&tin=02508201610067®Number=0000000000091423&sum=13000 [08:32:30]OFD Sender: Processing packet 92225 [packets to send 63, broken 62] [08:32:30]ProducePacketName [08:32:30]name=ofd_packets/00092225 [08:32:30]OFD Sender: To server: pG, [08:32:30]CommunicateWithHost lk.salyk.kg:30040 [08:32:30]ConnectInit lk.salyk.kg [08:32:30]line 0 [08:32:30]written 0, free lines is 4095 [08:32:30]Connected sock=10 [08:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 99 09 20 01 5E DE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 21 00 00 00 F4 03 04 00 A6 F8 E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 68 01 00 35 04 06 00 A2 DF EE 1B BD A4 48 4B D1 16 1C E1 10 48 [08:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 06 56 47 00 ED D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 68 01 00 F4 03 04 00 26 A1 E3 66 B6 04 01 00 00 2A 38 8C 0B 54 04 9A 1C [08:32:30]CommunicateWithHost err = 0 [08:32:30]CheckOFDResponse [08:32:30]1017 (14) - 77093643461234 [08:32:30]1041 (16) - 0000000000874692 [08:32:30]1040 (4) - 92225 [08:32:30]1012 (4) - 13.09.2024 02:19 [08:32:30]1206 (1) - 0 [08:32:30]OFD Sender: Remove packet 92225 [08:32:30]ProducePacketName [08:32:30]name=ofd_packets/00092225 [08:32:30]NVStorageDeleteData [08:32:31]Write to MH i2c: 01 00 00 DF 5E 3D [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 DF 5E 00 00 00 00 00 31 0D 82 [08:32:31]RasterBufferAndPrint [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]written 0, free lines is 3385 [08:32:31]MH_Cut [08:32:31]Write to MH i2c: D1 01 00 E6 5E 01 16 [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 01 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 01 00 E6 5E 00 15 [08:32:31]Write to MH i2c: 01 00 00 E7 5E 45 [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]OFD Sender: No OFD packet to send [08:32:31]*** Cut start [08:32:31]*** Purtial cut [08:32:31]*** Stage 1: CUTSNS_PIN = 1 [08:32:33]Read from MH i2c: 01 [08:32:33]MH_I2C_Read... [08:32:33]*** Stop cut motor [08:32:33]*** Cut end [08:32:33]Read from MH i2c: 01 07 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 E7 5E 00 00 00 00 00 FF 0F 5A [08:32:33]process_action close_receipt done [08:32:33]requested_data is exist [08:32:33]produce_requested_data [08:32:33]requested_item fm.sn is exist - process it [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 11 00 00 [08:32:33]Write to MH i2c: E2 08 00 E8 5E 80 11 00 00 00 00 00 00 C0 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 E8 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 17 [08:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:32:33]wFMCommunicate OK [08:32:33]requested_item fd.num is exist - process it [08:32:33]SAM_PROTO_GetFieldsCounters [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 13 00 00 [08:32:33]Write to MH i2c: E2 08 00 E9 5E 80 13 00 00 00 00 00 00 C3 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 62 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 62 00 E9 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 41 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [08:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 41 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_GetFieldsCounters done [08:32:33]requested_item shift.num is exist - process it [08:32:33]requested_item shift.opened is exist - process it [08:32:33]req_shift_opened [08:32:33]FM_GetShiftState [08:32:33]SAM_PROTO_GetShiftState [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 13 01 00 [08:32:33]Write to MH i2c: E2 08 00 EA 5E 80 13 01 00 00 00 00 00 C5 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 EA 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 51 [08:32:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_GetShiftState done [08:32:33]FM_GetShiftState done [08:32:33]req_shift_opened done [08:32:33]requested_item shift.open_date is exist - process it [08:32:33]req_shift_open_date [08:32:33]req_shift_open_date done [08:32:33]produce_requested_data done [08:32:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92225,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:32:33]process_action_free close_receipt [08:32:33]json_value_free [08:32:33]json_value_free done [08:32:33]process_json_proto returns [08:32:33]Send response to host [08:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92225,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:32:33]free response buf [08:32:33]execute_script done [08:32:33]execute_script returns [08:32:33]free content buf [08:32:33]Sock 9.Close socket [08:32:33]Sock 9.Thread stoped [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [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: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:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:39]accept exits with 8 [08:45:39]New connection [08:45:39]New thread 3067256164 created [08:45:39]Thread 3067399524 joined [08:45:39]Waiting for new connection... [08:45:39] Sock 8.Parse request [08:45:39]Sock 8.Check first char [08:45:39]Sock 8.First char is OK [08:45:39]request: POST /json_proto HTTP/1.0 [08:45:39]Method: POST [08:45:39]URL: /json_proto [08:45:39]Method is POST - this is cgi request [08:45:39]url: /json_proto [08:45:39]query_string will be loaded in cgi processing [08:45:39]execute_cgi json_proto POST (null) [08:45:39]execute_cgi path=json_proto method=POST [08:45:39]POST find Content-Length [08:45:39]Host: 172.17.57.71:8080 [08:45:39]Content-Length: 787 [08:45:39]Content-Type: application/json [08:45:39] [08:45:39]POST finish read [08:45:39]Found Content-Length = 787 [08:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127159", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:39]execute_script... [08:45: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 : (3)127159", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:39]POST & json_proto [08:45:39]process_json_proto [08:45:39]json parsed OK: [08:45:39]protocol is kg_v1.0 [08:45:39]action value=close_receipt [08:45:39]process_action close_receipt [08:45:39]cmd_close_receipt [08:45:39]MH_GetDate [08:45:39]Write to MH i2c: F0 00 00 EB 5E 38 [08:45:39]Write i2c OK [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: F0 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: F0 09 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: F0 09 00 EB 5E 00 BD FB E3 66 33 3A A4 66 B9 [08:45:39]GetLastDocTimeStamp 1726216358 [08:45:39]current date 1726217149 [08:45:39]FM_GetShiftState [08:45:39]SAM_PROTO_GetShiftState [08:45:39]wFMCommunicate request_size=4 [08:45:39]MH_SAM_APDU [08:45:39]CAPDU: 80 13 01 00 [08:45:39]Write to MH i2c: E2 08 00 EC 5E 80 13 01 00 00 00 00 00 C7 [08:45:39]Write i2c OK [08:45:39]MH_I2C_Read... [08:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:39]Read from MH i2c: E2 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 0E 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 0E 00 EC 5E 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 53 [08:45:39]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:45:39]wFMCommunicate OK [08:45:39]SAM_PROTO_GetShiftState done [08:45:39]FM_GetShiftState done [08:45:39]opened in 1726186930 [08:45:39]opened+sec_in_day 1726273330 [08:45:39]quantity*price = 14400 [08:45:39]sum+1 = 14401 [08:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 34 13.09.2024 08:45 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92226 ФПД: 149155267152315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T084549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92226&fm=149155267152315&tin=02508201610067®Number=0000000000091423&sum=14400 0 [08:45:40]StoreToDocumentArchive [08:45:40]shift 505 fd 92226 [08:45:40]save to /storage/0505/doc_00092226 [08:45:40]save last doc name /storage/0505/doc_00092226 to /storage/kkm_last_doc_name [08:45:40]save OK [08:45:40]Clear old archive folders... [08:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:45:40]tlvbuf is 01765740 [08:45:40]SAM_PROTO_ClearQueue [08:45:40]wFMCommunicate request_size=4 [08:45:40]MH_SAM_APDU [08:45:40]CAPDU: 80 09 00 00 [08:45:40]Write to MH i2c: E2 08 00 F9 5E 80 09 00 00 00 00 00 00 C9 [08:45:40]Write i2c OK [08:45:40]MH_I2C_Read... [08:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:40]Read from MH i2c: E2 [08:45:40]MH_I2C_Read... [08:45:40]Read from MH i2c: E2 03 00 [08:45:40]MH_I2C_Read... [08:45:40]Read from MH i2c: E2 03 00 F9 5E 00 90 00 CB [08:45:40]RAPDU: 90 00 [08:45:40]wFMCommunicate OK [08:45:40]SAM_PROTO_ClearQueue done [08:45:40]KKMCreateOFDPacket [08:45:40]OFDProtocolAddRootSTLVToBuf [08:45:40]FM_MakeSignedData [08:45:40]FM_MakeSignedData [08:45:40]SAM_PROTO_SignData [08:45:40]wFMCommunicate request_size=4 [08:45:40]MH_SAM_APDU [08:45:40]CAPDU: 80 0D 01 02 [08:45:40]Write to MH i2c: E2 08 00 FA 5E 80 0D 01 02 00 00 00 00 D1 [08:45:40]Write i2c OK [08:45:40]MH_I2C_Read... [08:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:40]Read from MH i2c: E2 [08:45:40]MH_I2C_Read... [08:45:40]Read from MH i2c: E2 03 00 [08:45:40]MH_I2C_Read... [08:45:40]Read from MH i2c: E2 03 00 FA 5E 00 90 00 CC [08:45:40]RAPDU: 90 00 [08:45:40]wFMCommunicate OK [08:45:40]wFMCommunicate request_size=255 [08:45:40]MH_SAM_APDU [08:45:40]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FB E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [08:45:40]Write to MH i2c: E2 02 01 FB 5E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FB E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 52 [08:45:40]Write i2c OK [08:45:40]MH_I2C_Read... [08:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:41]Read from MH i2c: E2 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 03 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 03 00 FB 5E 00 90 00 CD [08:45:41]RAPDU: 90 00 [08:45:41]wFMCommunicate OK [08:45:41]wFMCommunicate request_size=32 [08:45:41]MH_SAM_APDU [08:45:41]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 42 68 01 00 35 04 06 00 87 A7 EA B7 09 BB [08:45:41]Write to MH i2c: E2 23 00 FC 5E 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 42 68 01 00 35 04 06 00 87 A7 EA B7 09 BB 00 00 73 [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:41]Read from MH i2c: E2 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 03 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 03 00 FC 5E 00 90 00 CE [08:45:41]RAPDU: 90 00 [08:45:41]wFMCommunicate OK [08:45:41]wFMCommunicate request_size=4 [08:45:41]MH_SAM_APDU [08:45:41]CAPDU: 80 0D 03 02 [08:45:41]Write to MH i2c: E2 08 00 FD 5E 80 0D 03 02 00 00 00 00 D6 [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:41]Read from MH i2c: E2 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 0B 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 0B 00 FD 5E 00 E4 07 F8 E6 70 CE 30 ED 90 00 FB [08:45:41]RAPDU: E4 07 F8 E6 70 CE 30 ED 90 00 [08:45:41]wFMCommunicate OK [08:45:41]SAM_PROTO_SignData done [08:45:41]FM_MakeSignedData done [08:45:41]CreateOFDProtocolMessage [08:45:41]wFMCommunicate request_size=4 [08:45:41]MH_SAM_APDU [08:45:41]CAPDU: 80 11 00 00 [08:45:41]Write to MH i2c: E2 08 00 FE 5E 80 11 00 00 00 00 00 00 D6 [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:41]Read from MH i2c: E2 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 17 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 17 00 FE 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2D [08:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:45:41]wFMCommunicate OK [08:45:41]CreateOFDProtocolMessage done [08:45:41]OFDSenderStorePacket 92226 [08:45:41]StoreOFDPacket docnum=92226 [08:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B2 83 1D 01 5E CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FB E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 68 01 00 35 04 06 00 87 A7 EA B7 09 BB E4 07 F8 E6 70 CE 30 ED [08:45:41]CheckFolder [08:45:41]dirname=/storage/ofd_packets [08:45:41]CheckFolder done [08:45:41]ProducePacketName [08:45:41]name=ofd_packets/00092226 [08:45:41]NVStorageSaveData ofd_packets/00092226 [08:45:41]File name is /storage/ofd_packets/00092226 [08:45:41]Write 323 bytes [08:45:41]NVStorageSaveData done [08:45:41]OFDSenderStorePacket done [08:45:41]KKMCreateOFDPacket done [08:45:41]NVStorageSaveData kkm_last_timestamp [08:45:41]File name is /storage/kkm_last_timestamp [08:45:41]Write 4 bytes [08:45:41]NVStorageSaveData done [08:45:41]ExternCall_PrintAddStr [08:45:41]wPrintStart [08:45:41]Write to MH i2c: 01 00 00 FF 5E 5D [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: 01 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: 01 07 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: 01 07 00 FF 5E 00 00 00 00 00 FF 0F 72 [08:45:41]RasterBufferAndPrint [08:45:41]line Счет N : (3)127159 [08:45:41]line ИНН: 02508201610067 [08:45:41]line Контрольно-Кассовый Чек [08:45:41]line ПРОДАЖА [08:45:41]line Товар: 48743570 [08:45:41]line Сигареты Winston XStyle Blue [08:45:41]line 1.000 * 144.00 [08:45:41]line = 144.00 [08:45:41]line НДС 12% НСП 1% [08:45:41]line > о реализуемом товаре [08:45:41]line ИТОГО: 144.00 [08:45:41]line НСП 1% : 1.27 [08:45:41]line НДС 12% : 15.29 [08:45:41]line Наличными: 0.00 [08:45:41]line Безнал.: 144.00 [08:45:41]line Место: АЗС № 5 "Партнер Нефть" [08:45:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:45:41]line СНО: Общий режим [08:45:41]line Чек 34 13.09.2024 08:45 [08:45:41]line Смена: 505 ФФД: 1.0 [08:45:41]line ЗНМ: 03000000022 [08:45:41]line РНМ: 0000000000091423 [08:45:41]line Версия ККМ: 001 [08:45:41]line Платежная система: О! деньги [08:45:41]line ФМ: 0000000000874692 [08:45:41]line ФД: 92226 [08:45:41]line ФПД: 149155267152315 [08:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T084549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92226&fm=149155267152315&tin=02508201610067®Number=0000000000091423&sum=14400 [08:45:41]OFD Sender: Processing packet 92226 [packets to send 63, broken 62] [08:45:41]ProducePacketName [08:45:41]name=ofd_packets/00092226 [08:45:41]OFD Sender: To server: pG, [08:45:41]CommunicateWithHost lk.salyk.kg:30040 [08:45:41]ConnectInit lk.salyk.kg [08:45:41]line 0 [08:45:41]written 0, free lines is 4095 [08:45:41]Connected sock=10 [08:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B2 83 1D 01 5E CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FB E3 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 68 01 00 35 04 06 00 87 A7 EA B7 09 BB E4 07 F8 E6 70 CE 30 ED [08:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AF 63 47 00 26 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 68 01 00 F4 03 04 00 3D A4 E3 66 B6 04 01 00 00 8E 79 46 A1 59 26 B8 F1 [08:45:41]CommunicateWithHost err = 0 [08:45:41]CheckOFDResponse [08:45:41]1017 (14) - 77093643461234 [08:45:41]1041 (16) - 0000000000874692 [08:45:41]1040 (4) - 92226 [08:45:41]1012 (4) - 13.09.2024 02:32 [08:45:41]1206 (1) - 0 [08:45:41]OFD Sender: Remove packet 92226 [08:45:41]ProducePacketName [08:45:41]name=ofd_packets/00092226 [08:45:41]NVStorageDeleteData [08:45:42]Write to MH i2c: 01 00 00 29 5F 88 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: 01 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: 01 07 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: 01 07 00 29 5F 00 00 00 00 00 06 0D A2 [08:45:42]RasterBufferAndPrint [08:45:42]line [08:45:42]line [08:45:42]line [08:45:42]line [08:45:42]line [08:45:42]written 0, free lines is 3342 [08:45:42]MH_Cut [08:45:42]Write to MH i2c: D1 01 00 30 5F 01 61 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: D1 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: D1 01 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: D1 01 00 30 5F 00 60 [08:45:42]Write to MH i2c: 01 00 00 31 5F 90 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]OFD Sender: No OFD packet to send [08:45:42]*** Cut start [08:45:42]*** Purtial cut [08:45:42]*** Stage 1: CUTSNS_PIN = 1 [08:45:44]Read from MH i2c: 01 [08:45:44]MH_I2C_Read... [08:45:44]*** Stop cut motor [08:45:44]*** Cut end [08:45:44]Read from MH i2c: 01 07 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 31 5F 00 00 00 00 00 FF 0F A5 [08:45:44]process_action close_receipt done [08:45:44]requested_data is exist [08:45:44]produce_requested_data [08:45:44]requested_item fm.sn is exist - process it [08:45:44]wFMCommunicate request_size=4 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 11 00 00 [08:45:44]Write to MH i2c: E2 08 00 32 5F 80 11 00 00 00 00 00 00 0B [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 17 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 17 00 32 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 62 [08:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:45:44]wFMCommunicate OK [08:45:44]requested_item fd.num is exist - process it [08:45:44]SAM_PROTO_GetFieldsCounters [08:45:44]wFMCommunicate request_size=4 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 13 00 00 [08:45:44]Write to MH i2c: E2 08 00 33 5F 80 13 00 00 00 00 00 00 0E [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 62 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 62 00 33 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 42 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [08:45:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 42 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:44]wFMCommunicate OK [08:45:44]SAM_PROTO_GetFieldsCounters done [08:45:44]requested_item shift.num is exist - process it [08:45:44]requested_item shift.opened is exist - process it [08:45:44]req_shift_opened [08:45:44]FM_GetShiftState [08:45:44]SAM_PROTO_GetShiftState [08:45:44]wFMCommunicate request_size=4 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 13 01 00 [08:45:44]Write to MH i2c: E2 08 00 34 5F 80 13 01 00 00 00 00 00 10 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 0E 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 0E 00 34 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9C [08:45:44]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [08:45:44]wFMCommunicate OK [08:45:44]SAM_PROTO_GetShiftState done [08:45:44]FM_GetShiftState done [08:45:44]req_shift_opened done [08:45:44]requested_item shift.open_date is exist - process it [08:45:44]req_shift_open_date [08:45:44]req_shift_open_date done [08:45:44]produce_requested_data done [08:45:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92226,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [08:45:44]process_action_free close_receipt [08:45:44]json_value_free [08:45:44]json_value_free done [08:45:44]process_json_proto returns [08:45:44]Send response to host [08:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92226,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [08:45:44]free response buf [08:45:44]execute_script done [08:45:44]execute_script returns [08:45:44]free content buf [08:45:44]Sock 8.Close socket [08:45:44]Sock 8.Thread stoped [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:04]accept exits with 9 [09:17:04]New connection [09:17:04]New thread 3067399524 created [09:17:04]Thread 3067256164 joined [09:17:04]Waiting for new connection... [09:17:04] Sock 9.Parse request [09:17:04]Sock 9.Check first char [09:17:04]Sock 9.First char is OK [09:17:04]request: POST /json_proto HTTP/1.0 [09:17:04]Method: POST [09:17:04]URL: /json_proto [09:17:04]Method is POST - this is cgi request [09:17:04]url: /json_proto [09:17:04]query_string will be loaded in cgi processing [09:17:04]execute_cgi json_proto POST (null) [09:17:04]execute_cgi path=json_proto method=POST [09:17:04]POST find Content-Length [09:17:04]Host: 172.17.57.71:8080 [09:17:04]Content-Length: 656 [09:17:04]Content-Type: application/json [09:17:04] [09:17:04]POST finish read [09:17:04]Found Content-Length = 656 [09:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127160", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]execute_script... [09:17: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 : (3)127160", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]POST & json_proto [09:17:04]process_json_proto [09:17:04]json parsed OK: [09:17:04]protocol is kg_v1.0 [09:17:04]action value=close_receipt [09:17:04]process_action close_receipt [09:17:04]cmd_close_receipt [09:17:04]MH_GetDate [09:17:04]Write to MH i2c: F0 00 00 35 5F 83 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 09 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 09 00 35 5F 00 1A 03 E4 66 33 3A A4 66 6A [09:17:04]GetLastDocTimeStamp 1726217149 [09:17:04]current date 1726219034 [09:17:04]FM_GetShiftState [09:17:04]SAM_PROTO_GetShiftState [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 13 01 00 [09:17:04]Write to MH i2c: E2 08 00 36 5F 80 13 01 00 00 00 00 00 12 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 36 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9E [09:17:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_GetShiftState done [09:17:04]FM_GetShiftState done [09:17:04]opened in 1726186930 [09:17:04]opened+sec_in_day 1726273330 [09:17:04]quantity*price = 14100 [09:17:04]sum+1 = 14101 [09:17:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 35 13.09.2024 09:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92227 ФПД: 134859762156555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T091714&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92227&fm=134859762156555&tin=02508201610067®Number=0000000000091423&sum=14100 0 [09:17:05]StoreToDocumentArchive [09:17:05]shift 505 fd 92227 [09:17:05]save to /storage/0505/doc_00092227 [09:17:05]save last doc name /storage/0505/doc_00092227 to /storage/kkm_last_doc_name [09:17:05]save OK [09:17:05]Clear old archive folders... [09:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=292 [09:17:05]tlvbuf is 015CE5F0 [09:17:05]SAM_PROTO_ClearQueue [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 09 00 00 [09:17:05]Write to MH i2c: E2 08 00 43 5F 80 09 00 00 00 00 00 00 14 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 43 5F 00 90 00 16 [09:17:05]RAPDU: 90 00 [09:17:05]wFMCommunicate OK [09:17:05]SAM_PROTO_ClearQueue done [09:17:05]KKMCreateOFDPacket [09:17:05]OFDProtocolAddRootSTLVToBuf [09:17:05]FM_MakeSignedData [09:17:05]FM_MakeSignedData [09:17:05]SAM_PROTO_SignData [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 0D 01 02 [09:17:05]Write to MH i2c: E2 08 00 44 5F 80 0D 01 02 00 00 00 00 1C [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 44 5F 00 90 00 17 [09:17:05]RAPDU: 90 00 [09:17:05]wFMCommunicate OK [09:17:05]wFMCommunicate request_size=255 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1A 03 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [09:17:05]Write to MH i2c: E2 02 01 45 5F 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1A 03 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 AD [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 45 5F 00 90 00 18 [09:17:05]RAPDU: 90 00 [09:17:05]wFMCommunicate OK [09:17:05]wFMCommunicate request_size=51 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 68 01 00 35 04 06 00 7A A7 7C 37 C4 0B [09:17:05]Write to MH i2c: E2 36 00 46 5F 80 0D 02 02 2E 00 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 68 01 00 35 04 06 00 7A A7 7C 37 C4 0B 00 00 FD [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 46 5F 00 90 00 19 [09:17:06]RAPDU: 90 00 [09:17:06]wFMCommunicate OK [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 0D 03 02 [09:17:06]Write to MH i2c: E2 08 00 47 5F 80 0D 03 02 00 00 00 00 21 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0B 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0B 00 47 5F 00 42 9C 89 E3 8D 4A 6C 01 90 00 B0 [09:17:06]RAPDU: 42 9C 89 E3 8D 4A 6C 01 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_SignData done [09:17:06]FM_MakeSignedData done [09:17:06]CreateOFDProtocolMessage [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 11 00 00 [09:17:06]Write to MH i2c: E2 08 00 48 5F 80 11 00 00 00 00 00 00 21 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 48 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 78 [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:17:06]wFMCommunicate OK [09:17:06]CreateOFDProtocolMessage done [09:17:06]OFDSenderStorePacket 92227 [09:17:06]StoreOFDPacket docnum=92227 [09:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 38 01 00 00 42 58 30 01 A9 89 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1A 03 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 68 01 00 35 04 06 00 7A A7 7C 37 C4 0B 42 9C 89 E3 8D 4A 6C 01 [09:17:06]CheckFolder [09:17:06]dirname=/storage/ofd_packets [09:17:06]CheckFolder done [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00092227 [09:17:06]NVStorageSaveData ofd_packets/00092227 [09:17:06]File name is /storage/ofd_packets/00092227 [09:17:06]Write 342 bytes [09:17:06]NVStorageSaveData done [09:17:06]OFDSenderStorePacket done [09:17:06]KKMCreateOFDPacket done [09:17:06]NVStorageSaveData kkm_last_timestamp [09:17:06]File name is /storage/kkm_last_timestamp [09:17:06]Write 4 bytes [09:17:06]NVStorageSaveData done [09:17:06]ExternCall_PrintAddStr [09:17:06]wPrintStart [09:17:06]Write to MH i2c: 01 00 00 49 5F A8 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 49 5F 00 00 00 00 00 FF 0F BD [09:17:06]RasterBufferAndPrint [09:17:06]line Счет N : (3)127160 [09:17:06]line ИНН: 02508201610067 [09:17:06]line Контрольно-Кассовый Чек [09:17:06]line ПРОДАЖА [09:17:06]line Товар: 4870216765026 [09:17:06]line Нагр.Таб.Палоч. HEETS Silver Selection [09:17:06]line 1.000 * 141.00 [09:17:06]line = 141.00 [09:17:06]line НДС 12% НСП 1% [09:17:06]line > о реализуемом товаре [09:17:06]line ИТОГО: 141.00 [09:17:06]line НСП 1% : 1.25 [09:17:06]line НДС 12% : 14.97 [09:17:06]line Наличными: 141.00 [09:17:06]line Безнал.: 0.00 [09:17:06]line Место: АЗС № 5 "Партнер Нефть" [09:17:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:17:06]line СНО: Общий режим [09:17:06]line Чек 35 13.09.2024 09:17 [09:17:06]line Смена: 505 ФФД: 1.0 [09:17:06]line ЗНМ: 03000000022 [09:17:06]line РНМ: 0000000000091423 [09:17:06]line Версия ККМ: 001 [09:17:06]line ФМ: 0000000000874692 [09:17:06]line ФД: 92227 [09:17:06]line ФПД: 134859762156555 [09:17:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T091714&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92227&fm=134859762156555&tin=02508201610067®Number=0000000000091423&sum=14100 [09:17:06]line 0 [09:17:06]written 0, free lines is 4095 [09:17:06]OFD Sender: Processing packet 92227 [packets to send 63, broken 62] [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00092227 [09:17:06]OFD Sender: To server: pG, [09:17:06]CommunicateWithHost lk.salyk.kg:30040 [09:17:06]ConnectInit lk.salyk.kg [09:17:06]Connected sock=10 [09:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 38 01 00 00 42 58 30 01 A9 89 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1A 03 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 68 01 00 35 04 06 00 7A A7 7C 37 C4 0B 42 9C 89 E3 8D 4A 6C 01 [09:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FE CB 47 00 FF 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 34 36 39 32 10 04 04 00 43 68 01 00 F4 03 04 00 99 AB E3 66 B6 04 01 00 00 D0 2F AE 98 90 BB 39 35 [09:17:06]CommunicateWithHost err = 0 [09:17:06]CheckOFDResponse [09:17:06]1017 (14) - 77093643461234 [09:17:06]1041 (16) - 0000000000874692 [09:17:06]1040 (4) - 92227 [09:17:06]1012 (4) - 13.09.2024 03:03 [09:17:06]1206 (1) - 0 [09:17:06]OFD Sender: Remove packet 92227 [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00092227 [09:17:06]NVStorageDeleteData [09:17:06]Write to MH i2c: 01 00 00 72 5F D1 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 72 5F 00 00 00 00 00 0C 0D F1 [09:17:06]RasterBufferAndPrint [09:17:06]line [09:17:06]line [09:17:06]line [09:17:06]line [09:17:06]line [09:17:06]written 0, free lines is 3348 [09:17:06]MH_Cut [09:17:06]Write to MH i2c: D1 01 00 79 5F 01 AA [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: D1 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: D1 01 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: D1 01 00 79 5F 00 A9 [09:17:06]Write to MH i2c: 01 00 00 7A 5F D9 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:07]OFD Sender: No OFD packet to send [09:17:07]*** Cut start [09:17:07]*** Purtial cut [09:17:07]*** Stage 1: CUTSNS_PIN = 1 [09:17:09]Read from MH i2c: 01 [09:17:09]MH_I2C_Read... [09:17:09]*** Stop cut motor [09:17:09]*** Cut end [09:17:09]Read from MH i2c: 01 07 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: 01 07 00 7A 5F 00 00 00 00 00 FF 0F EE [09:17:09]process_action close_receipt done [09:17:09]requested_data is exist [09:17:09]produce_requested_data [09:17:09]requested_item fm.sn is exist - process it [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 11 00 00 [09:17:09]Write to MH i2c: E2 08 00 7B 5F 80 11 00 00 00 00 00 00 54 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 17 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 17 00 7B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AB [09:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:17:09]wFMCommunicate OK [09:17:09]requested_item fd.num is exist - process it [09:17:09]SAM_PROTO_GetFieldsCounters [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 13 00 00 [09:17:09]Write to MH i2c: E2 08 00 7C 5F 80 13 00 00 00 00 00 00 57 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 62 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 62 00 7C 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 43 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 43 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:09]wFMCommunicate OK [09:17:09]SAM_PROTO_GetFieldsCounters done [09:17:09]requested_item shift.num is exist - process it [09:17:09]requested_item shift.opened is exist - process it [09:17:09]req_shift_opened [09:17:09]FM_GetShiftState [09:17:09]SAM_PROTO_GetShiftState [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 13 01 00 [09:17:09]Write to MH i2c: E2 08 00 7D 5F 80 13 01 00 00 00 00 00 59 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 0E 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 0E 00 7D 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E5 [09:17:09]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [09:17:09]wFMCommunicate OK [09:17:09]SAM_PROTO_GetShiftState done [09:17:09]FM_GetShiftState done [09:17:09]req_shift_opened done [09:17:09]requested_item shift.open_date is exist - process it [09:17:09]req_shift_open_date [09:17:09]req_shift_open_date done [09:17:09]produce_requested_data done [09:17:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92227,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [09:17:09]process_action_free close_receipt [09:17:09]json_value_free [09:17:09]json_value_free done [09:17:09]process_json_proto returns [09:17:09]Send response to host [09:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92227,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [09:17:09]free response buf [09:17:09]execute_script done [09:17:09]execute_script returns [09:17:09]free content buf [09:17:09]Sock 9.Close socket [09:17:09]Sock 9.Thread stoped [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:28]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:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:34:59]accept exits with 8 [09:34:59]New connection [09:34:59]New thread 3067256164 created [09:34:59]Thread 3067399524 joined [09:34:59]Waiting for new connection... [09:34:59] Sock 8.Parse request [09:34:59]Sock 8.Check first char [09:34:59]Sock 8.First char is OK [09:34:59]request: POST /json_proto HTTP/1.0 [09:34:59]Method: POST [09:34:59]URL: /json_proto [09:34:59]Method is POST - this is cgi request [09:34:59]url: /json_proto [09:34:59]query_string will be loaded in cgi processing [09:34:59]execute_cgi json_proto POST (null) [09:34:59]execute_cgi path=json_proto method=POST [09:34:59]POST find Content-Length [09:34:59]Host: 172.17.57.71:8080 [09:34:59]Content-Length: 1530 [09:34:59]Content-Type: application/json [09:34:59] [09:34:59]POST finish read [09:34:59]Found Content-Length = 1530 [09:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127162", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]execute_script... [09:34: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 : (3)127162", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]POST & json_proto [09:34:59]process_json_proto [09:34:59]json parsed OK: [09:34:59]protocol is kg_v1.0 [09:34:59]action value=close_receipt [09:34:59]process_action close_receipt [09:34:59]cmd_close_receipt [09:34:59]MH_GetDate [09:34:59]Write to MH i2c: F0 00 00 7E 5F CC [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 09 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 09 00 7E 5F 00 4D 07 E4 66 33 3A A4 66 EA [09:34:59]GetLastDocTimeStamp 1726219034 [09:34:59]current date 1726220109 [09:34:59]FM_GetShiftState [09:34:59]SAM_PROTO_GetShiftState [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 13 01 00 [09:34:59]Write to MH i2c: E2 08 00 7F 5F 80 13 01 00 00 00 00 00 5B [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 7F 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E7 [09:34:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_GetShiftState done [09:34:59]FM_GetShiftState done [09:34:59]opened in 1726186930 [09:34:59]opened+sec_in_day 1726273330 [09:34:59]quantity*price = 6000 [09:34:59]sum+1 = 6001 [09:34:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.82 НДС 12% : 33.97 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 36 13.09.2024 09:35 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92228 ФПД: 139419730679145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T093509&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92228&fm=139419730679145&tin=02508201610067®Number=0000000000091423&sum=32000 0 [09:35:00]StoreToDocumentArchive [09:35:00]shift 505 fd 92228 [09:35:00]save to /storage/0505/doc_00092228 [09:35:00]save last doc name /storage/0505/doc_00092228 to /storage/kkm_last_doc_name [09:35:00]save OK [09:35:00]Clear old archive folders... [09:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=638 [09:35:00]tlvbuf is 0165E4D0 [09:35:00]SAM_PROTO_ClearQueue [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 09 00 00 [09:35:00]Write to MH i2c: E2 08 00 8C 5F 80 09 00 00 00 00 00 00 5D [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 8C 5F 00 90 00 5F [09:35:00]RAPDU: 90 00 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_ClearQueue done [09:35:00]KKMCreateOFDPacket [09:35:00]OFDProtocolAddRootSTLVToBuf [09:35:00]FM_MakeSignedData [09:35:00]FM_MakeSignedData [09:35:00]SAM_PROTO_SignData [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 0D 01 02 [09:35:00]Write to MH i2c: E2 08 00 8D 5F 80 0D 01 02 00 00 00 00 65 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 8D 5F 00 90 00 60 [09:35:00]RAPDU: 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=255 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 0D 02 02 FA 03 00 7E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 [09:35:00]Write to MH i2c: E2 02 01 8E 5F 80 0D 02 02 FA 00 03 00 7E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 00 00 E6 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 8E 5F 00 90 00 61 [09:35:00]RAPDU: 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=255 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 0D 02 02 FA 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 [09:35:01]Write to MH i2c: E2 02 01 8F 5F 80 0D 02 02 FA 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 00 00 F9 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 8F 5F 00 90 00 62 [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=147 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 0D 02 02 8E F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 24 00 00 00 F4 03 04 00 4D 07 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 68 01 00 35 04 06 00 7E CD 2F 85 95 69 [09:35:01]Write to MH i2c: E2 96 00 90 5F 80 0D 02 02 8E 00 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 24 00 00 00 F4 03 04 00 4D 07 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 68 01 00 35 04 06 00 7E CD 2F 85 95 69 00 00 00 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 90 5F 00 90 00 63 [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 0D 03 02 [09:35:01]Write to MH i2c: E2 08 00 91 5F 80 0D 03 02 00 00 00 00 6B [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0B 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0B 00 91 5F 00 9D 56 2F 59 F6 79 7F 27 90 00 FC [09:35:01]RAPDU: 9D 56 2F 59 F6 79 7F 27 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_SignData done [09:35:01]FM_MakeSignedData done [09:35:01]CreateOFDProtocolMessage [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 11 00 00 [09:35:01]Write to MH i2c: E2 08 00 92 5F 80 11 00 00 00 00 00 00 6B [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 92 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C2 [09:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:35:01]wFMCommunicate OK [09:35:01]CreateOFDProtocolMessage done [09:35:01]OFDSenderStorePacket 92228 [09:35:01]StoreOFDPacket docnum=92228 [09:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 92 02 00 00 B8 7F 8A 02 CF 7C 5A 03 01 00 03 00 7E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 24 00 00 00 F4 03 04 00 4D 07 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 68 01 00 35 04 06 00 7E CD 2F 85 95 69 9D 56 2F 59 F6 79 7F 27 [09:35:01]CheckFolder [09:35:01]dirname=/storage/ofd_packets [09:35:01]CheckFolder done [09:35:01]ProducePacketName [09:35:01]name=ofd_packets/00092228 [09:35:01]NVStorageSaveData ofd_packets/00092228 [09:35:01]File name is /storage/ofd_packets/00092228 [09:35:01]Write 688 bytes [09:35:01]NVStorageSaveData done [09:35:01]OFDSenderStorePacket done [09:35:01]KKMCreateOFDPacket done [09:35:01]NVStorageSaveData kkm_last_timestamp [09:35:01]File name is /storage/kkm_last_timestamp [09:35:01]Write 4 bytes [09:35:01]NVStorageSaveData done [09:35:01]ExternCall_PrintAddStr [09:35:01]wPrintStart [09:35:01]Write to MH i2c: 01 00 00 93 5F F2 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 93 5F 00 00 00 00 00 FF 0F 07 [09:35:01]RasterBufferAndPrint [09:35:01]line Счет N : (3)127162 [09:35:01]line ИНН: 02508201610067 [09:35:01]line Контрольно-Кассовый Чек [09:35:01]line ПРОДАЖА [09:35:01]line Товар: 2000032780025 [09:35:01]line Сосиска в тесте DC 110г [09:35:01]line 1.000 * 60.00 [09:35:01]line = 60.00 [09:35:01]line НДС 12% НСП 1% [09:35:01]line > о реализуемом товаре [09:35:01]line Товар: 2000032760017 [09:35:01]line Слойка DC треугольная мясо110г [09:35:01]line 1.000 * 65.00 [09:35:01]line = 65.00 [09:35:01]line НДС 12% НСП 1% [09:35:01]line > о реализуемом товаре [09:35:01]line Товар: 2000032780015 [09:35:01]line Слойка DC треугольная курица 110г [09:35:01]line 1.000 * 65.00 [09:35:01]line = 65.00 [09:35:01]line НДС 12% НСП 1% [09:35:01]line > о реализуемом товаре [09:35:01]line Товар: 2000036230011 [09:35:01]line Кофе Латте XL(GABB TRADE) [09:35:01]line 1.000 * 130.00 [09:35:01]line = 130.00 [09:35:01]line НДС 12% НСП 1% [09:35:01]line > о реализуемом товаре [09:35:01]line ИТОГО: 320.00 [09:35:01]line НСП 1% : 2.82 [09:35:01]line НДС 12% : 33.97 [09:35:01]line Наличными: 320.00 [09:35:01]line Безнал.: 0.00 [09:35:01]line Место: АЗС № 5 "Партнер Нефть" [09:35:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:35:01]line СНО: Общий режим [09:35:01]line Чек 36 13.09.2024 09:35 [09:35:01]line Смена: 505 ФФД: 1.0 [09:35:01]line ЗНМ: 03000000022 [09:35:01]line РНМ: 0000000000091423 [09:35:01]line Версия ККМ: 001 [09:35:01]line ФМ: 0000000000874692 [09:35:01]line ФД: 92228 [09:35:01]line ФПД: 139419730679145 [09:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T093509&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92228&fm=139419730679145&tin=02508201610067®Number=0000000000091423&sum=32000 [09:35:01]OFD Sender: Processing packet 92228 [packets to send 63, broken 62] [09:35:01]ProducePacketName [09:35:01]name=ofd_packets/00092228 [09:35:01]OFD Sender: To server: pG, [09:35:01]CommunicateWithHost lk.salyk.kg:30040 [09:35:01]ConnectInit lk.salyk.kg [09:35:01]line 0 [09:35:01]written 0, free lines is 4095 [09:35:01]Connected sock=10 [09:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 92 02 00 00 B8 7F 8A 02 CF 7C 5A 03 01 00 03 00 7E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 24 00 00 00 F4 03 04 00 4D 07 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 68 01 00 35 04 06 00 7E CD 2F 85 95 69 9D 56 2F 59 F6 79 7F 27 [09:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D8 81 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 34 36 39 32 10 04 04 00 44 68 01 00 F4 03 04 00 CD AF E3 66 B6 04 01 00 00 DA 41 FF F3 54 D8 EF D8 [09:35:02]CommunicateWithHost err = 0 [09:35:02]CheckOFDResponse [09:35:02]1017 (14) - 77093643461234 [09:35:02]1041 (16) - 0000000000874692 [09:35:02]1040 (4) - 92228 [09:35:02]1012 (4) - 13.09.2024 03:21 [09:35:02]1206 (1) - 0 [09:35:02]OFD Sender: Remove packet 92228 [09:35:02]ProducePacketName [09:35:02]name=ofd_packets/00092228 [09:35:02]NVStorageDeleteData [09:35:02]Write to MH i2c: 01 00 00 CF 5F 2E [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 07 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 07 00 CF 5F 00 00 00 00 00 29 0C 6A [09:35:02]RasterBufferAndPrint [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]written 0, free lines is 3121 [09:35:02]MH_Cut [09:35:02]Write to MH i2c: D1 01 00 D6 5F 01 07 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 01 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 01 00 D6 5F 00 06 [09:35:02]Write to MH i2c: 01 00 00 D7 5F 36 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]OFD Sender: No OFD packet to send [09:35:03]*** Cut start [09:35:03]*** Purtial cut [09:35:03]*** Stage 1: CUTSNS_PIN = 1 [09:35:05]Read from MH i2c: 01 [09:35:05]MH_I2C_Read... [09:35:05]*** Stop cut motor [09:35:05]*** Cut end [09:35:05]Read from MH i2c: 01 07 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 D7 5F 00 00 00 00 00 FF 0F 4B [09:35:05]process_action close_receipt done [09:35:05]requested_data is exist [09:35:05]produce_requested_data [09:35:05]requested_item fm.sn is exist - process it [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 11 00 00 [09:35:05]Write to MH i2c: E2 08 00 D8 5F 80 11 00 00 00 00 00 00 B1 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 D8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [09:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:35:05]wFMCommunicate OK [09:35:05]requested_item fd.num is exist - process it [09:35:05]SAM_PROTO_GetFieldsCounters [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 13 00 00 [09:35:05]Write to MH i2c: E2 08 00 D9 5F 80 13 00 00 00 00 00 00 B4 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 62 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 62 00 D9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 44 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [09:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 44 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_GetFieldsCounters done [09:35:05]requested_item shift.num is exist - process it [09:35:05]requested_item shift.opened is exist - process it [09:35:05]req_shift_opened [09:35:05]FM_GetShiftState [09:35:05]SAM_PROTO_GetShiftState [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 13 01 00 [09:35:05]Write to MH i2c: E2 08 00 DA 5F 80 13 01 00 00 00 00 00 B6 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0E 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0E 00 DA 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 42 [09:35:05]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_GetShiftState done [09:35:05]FM_GetShiftState done [09:35:05]req_shift_opened done [09:35:05]requested_item shift.open_date is exist - process it [09:35:05]req_shift_open_date [09:35:05]req_shift_open_date done [09:35:05]produce_requested_data done [09:35:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92228,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [09:35:05]process_action_free close_receipt [09:35:05]json_value_free [09:35:05]json_value_free done [09:35:05]process_json_proto returns [09:35:05]Send response to host [09:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92228,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [09:35:05]free response buf [09:35:05]execute_script done [09:35:05]execute_script returns [09:35:05]free content buf [09:35:05]Sock 8.Close socket [09:35:05]Sock 8.Thread stoped [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]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:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52: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: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:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [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: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:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:14]accept exits with 9 [10:03:14]New connection [10:03:14]New thread 3067399524 created [10:03:14]Thread 3067256164 joined [10:03:14]Waiting for new connection... [10:03:14] Sock 9.Parse request [10:03:14]Sock 9.Check first char [10:03:14]Sock 9.First char is OK [10:03:14]request: POST /json_proto HTTP/1.0 [10:03:14]Method: POST [10:03:14]URL: /json_proto [10:03:14]Method is POST - this is cgi request [10:03:14]url: /json_proto [10:03:14]query_string will be loaded in cgi processing [10:03:14]execute_cgi json_proto POST (null) [10:03:14]execute_cgi path=json_proto method=POST [10:03:14]POST find Content-Length [10:03:14]Host: 172.17.57.71:8080 [10:03:14]Content-Length: 1285 [10:03:14]Content-Type: application/json [10:03:14] [10:03:14]POST finish read [10:03:14]Found Content-Length = 1285 [10:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127163", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600300077793", "name": "\u0428\u043E\u043A \u0410\u043B\u0451\u043D\u043A\u0430 20\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 277.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:14]execute_script... [10:03:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127163", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600300077793", "name": "\u0428\u043E\u043A \u0410\u043B\u0451\u043D\u043A\u0430 20\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 277.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:14]POST & json_proto [10:03:14]process_json_proto [10:03:14]json parsed OK: [10:03:14]protocol is kg_v1.0 [10:03:14]action value=close_receipt [10:03:14]process_action close_receipt [10:03:14]cmd_close_receipt [10:03:14]MH_GetDate [10:03:14]Write to MH i2c: F0 00 00 DB 5F 29 [10:03:14]Write i2c OK [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: F0 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: F0 09 00 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: F0 09 00 DB 5F 00 ED 0D E4 66 33 3A A4 66 ED [10:03:14]GetLastDocTimeStamp 1726220109 [10:03:14]current date 1726221805 [10:03:14]FM_GetShiftState [10:03:14]SAM_PROTO_GetShiftState [10:03:14]wFMCommunicate request_size=4 [10:03:14]MH_SAM_APDU [10:03:14]CAPDU: 80 13 01 00 [10:03:14]Write to MH i2c: E2 08 00 DC 5F 80 13 01 00 00 00 00 00 B8 [10:03:14]Write i2c OK [10:03:14]MH_I2C_Read... [10:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:14]Read from MH i2c: E2 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: E2 0E 00 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: E2 0E 00 DC 5F 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 44 [10:03:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:03:14]wFMCommunicate OK [10:03:14]SAM_PROTO_GetShiftState done [10:03:14]FM_GetShiftState done [10:03:14]opened in 1726186930 [10:03:14]opened+sec_in_day 1726273330 [10:03:14]quantity*price = 15000 [10:03:14]sum+1 = 15001 [10:03:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600300077793 Шок Алёнка 20г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 1.000 * 87.00 = 87.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 277.00 НСП 1% : 2.45 НДС 12% : 29.42 Наличными: 0.00 Безнал.: 277.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 37 13.09.2024 10:03 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92229 ФПД: 157652648556883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100325&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92229&fm=157652648556883&tin=02508201610067®Number=0000000000091423&sum=27700 0 [10:03:15]StoreToDocumentArchive [10:03:15]shift 505 fd 92229 [10:03:15]save to /storage/0505/doc_00092229 [10:03:15]save last doc name /storage/0505/doc_00092229 to /storage/kkm_last_doc_name [10:03:15]save OK [10:03:15]Clear old archive folders... [10:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=475 [10:03:15]tlvbuf is 01790D70 [10:03:15]SAM_PROTO_ClearQueue [10:03:15]wFMCommunicate request_size=4 [10:03:15]MH_SAM_APDU [10:03:15]CAPDU: 80 09 00 00 [10:03:15]Write to MH i2c: E2 08 00 E9 5F 80 09 00 00 00 00 00 00 BA [10:03:15]Write i2c OK [10:03:15]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 E9 5F 00 90 00 BC [10:03:16]RAPDU: 90 00 [10:03:16]wFMCommunicate OK [10:03:16]SAM_PROTO_ClearQueue done [10:03:16]KKMCreateOFDPacket [10:03:16]OFDProtocolAddRootSTLVToBuf [10:03:16]FM_MakeSignedData [10:03:16]FM_MakeSignedData [10:03:16]SAM_PROTO_SignData [10:03:16]wFMCommunicate request_size=4 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 0D 01 02 [10:03:16]Write to MH i2c: E2 08 00 EA 5F 80 0D 01 02 00 00 00 00 C2 [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 EA 5F 00 90 00 BD [10:03:16]RAPDU: 90 00 [10:03:16]wFMCommunicate OK [10:03:16]wFMCommunicate request_size=255 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 0D 02 02 FA 03 00 DB 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 30 30 33 30 30 30 37 37 37 39 33 06 04 18 00 D0 A8 D0 BE D0 BA 20 D0 90 D0 BB D1 91 D0 BD D0 BA D0 B0 20 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 [10:03:16]Write to MH i2c: E2 02 01 EB 5F 80 0D 02 02 FA 00 03 00 DB 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 30 30 33 30 30 30 37 37 37 39 33 06 04 18 00 D0 A8 D0 BE D0 BA 20 D0 90 D0 BB D1 91 D0 BD D0 BA D0 B0 20 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 00 00 DD [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 EB 5F 00 90 00 BE [10:03:16]RAPDU: 90 00 [10:03:16]wFMCommunicate OK [10:03:16]wFMCommunicate request_size=234 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 0D 02 02 E5 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 ED 0D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 68 01 00 35 04 06 00 8F 62 5E 1D 79 53 [10:03:16]Write to MH i2c: E2 ED 00 EC 5F 80 0D 02 02 E5 00 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 ED 0D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 68 01 00 35 04 06 00 8F 62 5E 1D 79 53 00 00 1E [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 03 00 EC 5F 00 90 00 BF [10:03:16]RAPDU: 90 00 [10:03:16]wFMCommunicate OK [10:03:16]wFMCommunicate request_size=4 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 0D 03 02 [10:03:16]Write to MH i2c: E2 08 00 ED 5F 80 0D 03 02 00 00 00 00 C7 [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0B 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0B 00 ED 5F 00 72 76 26 34 E9 AC E3 FA 90 00 7C [10:03:16]RAPDU: 72 76 26 34 E9 AC E3 FA 90 00 [10:03:16]wFMCommunicate OK [10:03:16]SAM_PROTO_SignData done [10:03:16]FM_MakeSignedData done [10:03:16]CreateOFDProtocolMessage [10:03:16]wFMCommunicate request_size=4 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 11 00 00 [10:03:16]Write to MH i2c: E2 08 00 EE 5F 80 11 00 00 00 00 00 00 C7 [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 17 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 17 00 EE 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1E [10:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:03:17]wFMCommunicate OK [10:03:17]CreateOFDProtocolMessage done [10:03:17]OFDSenderStorePacket 92229 [10:03:17]StoreOFDPacket docnum=92229 [10:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 EF 01 00 00 09 57 E7 01 F7 88 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 30 30 33 30 30 30 37 37 37 39 33 06 04 18 00 D0 A8 D0 BE D0 BA 20 D0 90 D0 BB D1 91 D0 BD D0 BA D0 B0 20 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 ED 0D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 68 01 00 35 04 06 00 8F 62 5E 1D 79 53 72 76 26 34 E9 AC E3 FA [10:03:17]CheckFolder [10:03:17]dirname=/storage/ofd_packets [10:03:17]CheckFolder done [10:03:17]ProducePacketName [10:03:17]name=ofd_packets/00092229 [10:03:17]NVStorageSaveData ofd_packets/00092229 [10:03:17]File name is /storage/ofd_packets/00092229 [10:03:17]Write 525 bytes [10:03:17]NVStorageSaveData done [10:03:17]OFDSenderStorePacket done [10:03:17]KKMCreateOFDPacket done [10:03:17]NVStorageSaveData kkm_last_timestamp [10:03:17]File name is /storage/kkm_last_timestamp [10:03:17]Write 4 bytes [10:03:17]NVStorageSaveData done [10:03:17]ExternCall_PrintAddStr [10:03:17]wPrintStart [10:03:17]Write to MH i2c: 01 00 00 EF 5F 4E [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 07 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 07 00 EF 5F 00 00 00 00 00 FF 0F 63 [10:03:17]RasterBufferAndPrint [10:03:17]line Счет N : (3)127163 [10:03:17]line ИНН: 02508201610067 [10:03:17]line Контрольно-Кассовый Чек [10:03:17]line ПРОДАЖА [10:03:17]line Товар: 4640030091607 [10:03:17]line Сигареты ESSE Exchange [10:03:17]line 1.000 * 150.00 [10:03:17]line = 150.00 [10:03:17]line НДС 12% НСП 1% [10:03:17]line > о реализуемом товаре [10:03:17]line Товар: 4600300077793 [10:03:17]line Шок Алёнка 20г [10:03:17]line 1.000 * 40.00 [10:03:17]line = 40.00 [10:03:17]line НДС 12% НСП 1% [10:03:17]line > о реализуемом товаре [10:03:17]line Товар: 4860019001339 [10:03:17]line Вода Боржоми 0,33л ст [10:03:17]line 1.000 * 87.00 [10:03:17]line = 87.00 [10:03:17]line НДС 12% НСП 1% [10:03:17]line > о реализуемом товаре [10:03:17]line ИТОГО: 277.00 [10:03:17]line НСП 1% : 2.45 [10:03:17]line НДС 12% : 29.42 [10:03:17]line Наличными: 0.00 [10:03:17]line Безнал.: 277.00 [10:03:17]line Место: АЗС № 5 "Партнер Нефть" [10:03:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:03:17]line СНО: Общий режим [10:03:17]line Чек 37 13.09.2024 10:03 [10:03:17]line Смена: 505 ФФД: 1.0 [10:03:17]line ЗНМ: 03000000022 [10:03:17]line РНМ: 0000000000091423 [10:03:17]line Версия ККМ: 001 [10:03:17]line Платежная система: О! деньги [10:03:17]line ФМ: 0000000000874692 [10:03:17]line ФД: 92229 [10:03:17]line ФПД: 157652648556883 [10:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100325&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92229&fm=157652648556883&tin=02508201610067®Number=0000000000091423&sum=27700 [10:03:17]OFD Sender: Processing packet 92229 [packets to send 63, broken 62] [10:03:17]ProducePacketName [10:03:17]name=ofd_packets/00092229 [10:03:17]OFD Sender: To server: pG, [10:03:17]CommunicateWithHost lk.salyk.kg:30040 [10:03:17]ConnectInit lk.salyk.kg [10:03:17]Connected sock=10 [10:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 EF 01 00 00 09 57 E7 01 F7 88 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 30 30 33 30 30 30 37 37 37 39 33 06 04 18 00 D0 A8 D0 BE D0 BA 20 D0 90 D0 BB D1 91 D0 BD D0 BA D0 B0 20 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 line 0 [10:03:17]00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 ED 0D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 68 01 00 35 04 06 00 8F 62 5E 1D 79 53 72 76 26 34 E9 AC E3 FA [10:03:17]written 0, free lines is 4095 [10:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7B 55 47 00 C4 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 68 01 00 F4 03 04 00 6C B6 E3 66 B6 04 01 00 00 32 88 30 6D B6 4D 68 10 [10:03:17]CommunicateWithHost err = 0 [10:03:17]CheckOFDResponse [10:03:17]1017 (14) - 77093643461234 [10:03:17]1041 (16) - 0000000000874692 [10:03:17]1040 (4) - 92229 [10:03:17]1012 (4) - 13.09.2024 03:50 [10:03:17]1206 (1) - 0 [10:03:17]OFD Sender: Remove packet 92229 [10:03:17]ProducePacketName [10:03:17]name=ofd_packets/00092229 [10:03:17]NVStorageDeleteData [10:03:18]Write to MH i2c: 01 00 00 25 60 85 [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 25 60 00 00 00 00 00 74 0C 0C [10:03:18]RasterBufferAndPrint [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]written 0, free lines is 3198 [10:03:18]MH_Cut [10:03:18]Write to MH i2c: D1 01 00 2C 60 01 5E [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 01 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 01 00 2C 60 00 5D [10:03:18]Write to MH i2c: 01 00 00 2D 60 8D [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]OFD Sender: No OFD packet to send [10:03:18]*** Cut start [10:03:18]*** Purtial cut [10:03:18]*** Stage 1: CUTSNS_PIN = 1 [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]*** Stop cut motor [10:03:20]*** Cut end [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 2D 60 00 00 00 00 00 FF 0F A2 [10:03:20]process_action close_receipt done [10:03:20]requested_data is exist [10:03:20]produce_requested_data [10:03:20]requested_item fm.sn is exist - process it [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 11 00 00 [10:03:20]Write to MH i2c: E2 08 00 2E 60 80 11 00 00 00 00 00 00 08 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 2E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5F [10:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:03:20]wFMCommunicate OK [10:03:20]requested_item fd.num is exist - process it [10:03:20]SAM_PROTO_GetFieldsCounters [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 13 00 00 [10:03:20]Write to MH i2c: E2 08 00 2F 60 80 13 00 00 00 00 00 00 0B [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 62 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 62 00 2F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 45 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 45 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_GetFieldsCounters done [10:03:20]requested_item shift.num is exist - process it [10:03:20]requested_item shift.opened is exist - process it [10:03:20]req_shift_opened [10:03:20]FM_GetShiftState [10:03:20]SAM_PROTO_GetShiftState [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 13 01 00 [10:03:20]Write to MH i2c: E2 08 00 30 60 80 13 01 00 00 00 00 00 0D [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 30 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 99 [10:03:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_GetShiftState done [10:03:21]FM_GetShiftState done [10:03:21]req_shift_opened done [10:03:21]requested_item shift.open_date is exist - process it [10:03:21]req_shift_open_date [10:03:21]req_shift_open_date done [10:03:21]produce_requested_data done [10:03:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92229,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:03:21]process_action_free close_receipt [10:03:21]json_value_free [10:03:21]json_value_free done [10:03:21]process_json_proto returns [10:03:21]Send response to host [10:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92229,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:03:21]free response buf [10:03:21]execute_script done [10:03:21]execute_script returns [10:03:21]free content buf [10:03:21]Sock 9.Close socket [10:03:21]Sock 9.Thread stoped [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:07]accept exits with 8 [10:04:07]New connection [10:04:07]New thread 3067256164 created [10:04:07]Thread 3067399524 joined [10:04:07]Waiting for new connection... [10:04:07] Sock 8.Parse request [10:04:07]Sock 8.Check first char [10:04:07]Sock 8.First char is OK [10:04:07]request: POST /json_proto HTTP/1.0 [10:04:07]Method: POST [10:04:07]URL: /json_proto [10:04:07]Method is POST - this is cgi request [10:04:07]url: /json_proto [10:04:07]query_string will be loaded in cgi processing [10:04:07]execute_cgi json_proto POST (null) [10:04:07]execute_cgi path=json_proto method=POST [10:04:07]POST find Content-Length [10:04:07]Host: 172.17.57.71:8080 [10:04:07]Content-Length: 1083 [10:04:07]Content-Type: application/json [10:04:07] [10:04:07]POST finish read [10:04:07]Found Content-Length = 1083 [10:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127164", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:07]execute_script... [10:04: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 : (3)127164", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:07]POST & json_proto [10:04:07]process_json_proto [10:04:07]json parsed OK: [10:04:07]protocol is kg_v1.0 [10:04:07]action value=close_receipt [10:04:07]process_action close_receipt [10:04:07]cmd_close_receipt [10:04:07]MH_GetDate [10:04:07]Write to MH i2c: F0 00 00 31 60 80 [10:04:07]Write i2c OK [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: F0 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: F0 09 00 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: F0 09 00 31 60 00 22 0E E4 66 33 3A A4 66 7A [10:04:07]GetLastDocTimeStamp 1726221805 [10:04:07]current date 1726221858 [10:04:07]FM_GetShiftState [10:04:07]SAM_PROTO_GetShiftState [10:04:07]wFMCommunicate request_size=4 [10:04:07]MH_SAM_APDU [10:04:07]CAPDU: 80 13 01 00 [10:04:07]Write to MH i2c: E2 08 00 32 60 80 13 01 00 00 00 00 00 0F [10:04:07]Write i2c OK [10:04:07]MH_I2C_Read... [10:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:07]Read from MH i2c: E2 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 0E 00 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 0E 00 32 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9B [10:04:07]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:04:07]wFMCommunicate OK [10:04:07]SAM_PROTO_GetShiftState done [10:04:07]FM_GetShiftState done [10:04:07]opened in 1726186930 [10:04:07]opened+sec_in_day 1726273330 [10:04:07]quantity*price = 13000 [10:04:07]sum+1 = 13001 [10:04:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 38 13.09.2024 10:04 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92230 ФПД: 51320565675343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100418&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92230&fm=51320565675343&tin=02508201610067®Number=0000000000091423&sum=24500 0 [10:04:08]StoreToDocumentArchive [10:04:08]shift 505 fd 92230 [10:04:08]save to /storage/0505/doc_00092230 [10:04:08]save last doc name /storage/0505/doc_00092230 to /storage/kkm_last_doc_name [10:04:08]save OK [10:04:08]Clear old archive folders... [10:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=392 [10:04:08]tlvbuf is 01657AE0 [10:04:08]SAM_PROTO_ClearQueue [10:04:08]wFMCommunicate request_size=4 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 09 00 00 [10:04:08]Write to MH i2c: E2 08 00 3F 60 80 09 00 00 00 00 00 00 11 [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 3F 60 00 90 00 13 [10:04:08]RAPDU: 90 00 [10:04:08]wFMCommunicate OK [10:04:08]SAM_PROTO_ClearQueue done [10:04:08]KKMCreateOFDPacket [10:04:08]OFDProtocolAddRootSTLVToBuf [10:04:08]FM_MakeSignedData [10:04:08]FM_MakeSignedData [10:04:08]SAM_PROTO_SignData [10:04:08]wFMCommunicate request_size=4 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 0D 01 02 [10:04:08]Write to MH i2c: E2 08 00 40 60 80 0D 01 02 00 00 00 00 19 [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 40 60 00 90 00 14 [10:04:08]RAPDU: 90 00 [10:04:08]wFMCommunicate OK [10:04:08]wFMCommunicate request_size=255 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [10:04:08]Write to MH i2c: E2 02 01 41 60 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 0D [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:09]Read from MH i2c: E2 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 03 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [10:04:09]RAPDU: 90 00 [10:04:09]wFMCommunicate OK [10:04:09]wFMCommunicate request_size=151 [10:04:09]MH_SAM_APDU [10:04:09]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 68 01 00 35 04 06 00 2E AD 00 16 35 4F [10:04:09]Write to MH i2c: E2 9A 00 42 60 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 68 01 00 35 04 06 00 2E AD 00 16 35 4F 00 00 4D [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:09]Read from MH i2c: E2 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 03 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [10:04:09]RAPDU: 90 00 [10:04:09]wFMCommunicate OK [10:04:09]wFMCommunicate request_size=4 [10:04:09]MH_SAM_APDU [10:04:09]CAPDU: 80 0D 03 02 [10:04:09]Write to MH i2c: E2 08 00 43 60 80 0D 03 02 00 00 00 00 1E [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:09]Read from MH i2c: E2 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 0B 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 0B 00 43 60 00 0B 05 60 44 02 C1 84 84 90 00 9E [10:04:09]RAPDU: 0B 05 60 44 02 C1 84 84 90 00 [10:04:09]wFMCommunicate OK [10:04:09]SAM_PROTO_SignData done [10:04:09]FM_MakeSignedData done [10:04:09]CreateOFDProtocolMessage [10:04:09]wFMCommunicate request_size=4 [10:04:09]MH_SAM_APDU [10:04:09]CAPDU: 80 11 00 00 [10:04:09]Write to MH i2c: E2 08 00 44 60 80 11 00 00 00 00 00 00 1E [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:09]Read from MH i2c: E2 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 17 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 17 00 44 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 75 [10:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:04:09]wFMCommunicate OK [10:04:09]CreateOFDProtocolMessage done [10:04:09]OFDSenderStorePacket 92230 [10:04:09]StoreOFDPacket docnum=92230 [10:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 01 00 00 CE 49 94 01 6D 2B 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 68 01 00 35 04 06 00 2E AD 00 16 35 4F 0B 05 60 44 02 C1 84 84 [10:04:09]CheckFolder [10:04:09]dirname=/storage/ofd_packets [10:04:09]CheckFolder done [10:04:09]ProducePacketName [10:04:09]name=ofd_packets/00092230 [10:04:09]NVStorageSaveData ofd_packets/00092230 [10:04:09]File name is /storage/ofd_packets/00092230 [10:04:09]Write 442 bytes [10:04:09]NVStorageSaveData done [10:04:09]OFDSenderStorePacket done [10:04:09]KKMCreateOFDPacket done [10:04:09]NVStorageSaveData kkm_last_timestamp [10:04:09]File name is /storage/kkm_last_timestamp [10:04:09]Write 4 bytes [10:04:09]NVStorageSaveData done [10:04:09]ExternCall_PrintAddStr [10:04:09]wPrintStart [10:04:09]Write to MH i2c: 01 00 00 45 60 A5 [10:04:09]OFD Sender: Processing packet 92230 [packets to send 63, broken 62] [10:04:09]ProducePacketName [10:04:09]name=ofd_packets/00092230 [10:04:09]OFD Sender: To server: pG, [10:04:09]CommunicateWithHost lk.salyk.kg:30040 [10:04:09]ConnectInit lk.salyk.kg [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 07 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 07 00 45 60 00 00 00 00 00 FF 0F BA [10:04:09]RasterBufferAndPrint [10:04:09]line Счет N : (3)127164 [10:04:09]line ИНН: 02508201610067 [10:04:09]line Контрольно-Кассовый Чек [10:04:09]line ПРОДАЖА [10:04:09]line Товар: 2000036220012 [10:04:09]line Кофе Капучино XL(GABB TRADE) [10:04:09]line 1.000 * 130.00 [10:04:09]line = 130.00 [10:04:09]line НДС 12% НСП 1% [10:04:09]line > о реализуемом товаре [10:04:09]line Товар: 2000036210013 [10:04:09]line Кофе Капучино (GABB TRADE) [10:04:09]line 1.000 * 115.00 [10:04:09]line = 115.00 [10:04:09]line НДС 12% НСП 1% [10:04:09]line > о реализуемом товаре [10:04:09]line ИТОГО: 245.00 [10:04:09]line НСП 1% : 2.17 [10:04:09]line НДС 12% : 26.01 [10:04:09]line Наличными: 0.00 [10:04:09]line Безнал.: 245.00 [10:04:09]line Место: АЗС № 5 "Партнер Нефть" [10:04:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:04:09]line СНО: Общий режим [10:04:09]line Чек 38 13.09.2024 10:04 [10:04:09]line Смена: 505 ФФД: 1.0 [10:04:09]line ЗНМ: 03000000022 [10:04:09]line РНМ: 0000000000091423 [10:04:09]line Версия ККМ: 001 [10:04:09]line Платежная система: Бакай Банк [10:04:09]line ФМ: 0000000000874692 [10:04:09]line ФД: 92230 [10:04:09]line ФПД: 51320565675343 [10:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100418&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92230&fm=51320565675343&tin=02508201610067®Number=0000000000091423&sum=24500 [10:04:09]line 0 [10:04:09]written 0, free lines is 4095 [10:04:09]Connected sock=10 [10:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 01 00 00 CE 49 94 01 6D 2B 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 68 01 00 35 04 06 00 2E AD 00 16 35 4F 0B 05 60 44 02 C1 84 84 [10:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 27 30 47 00 51 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 68 01 00 F4 03 04 00 A1 B6 E3 66 B6 04 01 00 00 C0 10 E6 CF 89 DB D2 EE [10:04:10]CommunicateWithHost err = 0 [10:04:10]CheckOFDResponse [10:04:10]1017 (14) - 77093643461234 [10:04:10]1041 (16) - 0000000000874692 [10:04:10]1040 (4) - 92230 [10:04:10]1012 (4) - 13.09.2024 03:50 [10:04:10]1206 (1) - 0 [10:04:10]OFD Sender: Remove packet 92230 [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00092230 [10:04:10]NVStorageDeleteData [10:04:10]Write to MH i2c: 01 00 00 76 60 D6 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 76 60 00 00 00 00 00 A4 0C 8D [10:04:10]RasterBufferAndPrint [10:04:10]line [10:04:10]line [10:04:10]line [10:04:10]line [10:04:10]line [10:04:10]written 0, free lines is 3244 [10:04:10]MH_Cut [10:04:10]Write to MH i2c: D1 01 00 7D 60 01 AF [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: D1 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: D1 01 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: D1 01 00 7D 60 00 AE [10:04:10]Write to MH i2c: 01 00 00 7E 60 DE [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]OFD Sender: No OFD packet to send [10:04:11]*** Cut start [10:04:11]*** Purtial cut [10:04:11]*** Stage 1: CUTSNS_PIN = 1 [10:04:13]Read from MH i2c: 01 [10:04:13]MH_I2C_Read... [10:04:13]*** Stop cut motor [10:04:13]*** Cut end [10:04:13]Read from MH i2c: 01 07 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: 01 07 00 7E 60 00 00 00 00 00 FF 0F F3 [10:04:13]process_action close_receipt done [10:04:13]requested_data is exist [10:04:13]produce_requested_data [10:04:13]requested_item fm.sn is exist - process it [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 11 00 00 [10:04:13]Write to MH i2c: E2 08 00 7F 60 80 11 00 00 00 00 00 00 59 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 17 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 17 00 7F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [10:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:04:13]wFMCommunicate OK [10:04:13]requested_item fd.num is exist - process it [10:04:13]SAM_PROTO_GetFieldsCounters [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 13 00 00 [10:04:13]Write to MH i2c: E2 08 00 80 60 80 13 00 00 00 00 00 00 5C [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 62 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 62 00 80 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 46 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [10:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 46 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_GetFieldsCounters done [10:04:13]requested_item shift.num is exist - process it [10:04:13]requested_item shift.opened is exist - process it [10:04:13]req_shift_opened [10:04:13]FM_GetShiftState [10:04:13]SAM_PROTO_GetShiftState [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 13 01 00 [10:04:13]Write to MH i2c: E2 08 00 81 60 80 13 01 00 00 00 00 00 5E [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0E 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0E 00 81 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EA [10:04:13]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_GetShiftState done [10:04:13]FM_GetShiftState done [10:04:13]req_shift_opened done [10:04:13]requested_item shift.open_date is exist - process it [10:04:13]req_shift_open_date [10:04:13]req_shift_open_date done [10:04:13]produce_requested_data done [10:04:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92230,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:04:13]process_action_free close_receipt [10:04:13]json_value_free [10:04:13]json_value_free done [10:04:13]process_json_proto returns [10:04:13]Send response to host [10:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92230,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:04:13]free response buf [10:04:13]execute_script done [10:04:13]execute_script returns [10:04:13]free content buf [10:04:13]Sock 8.Close socket [10:04:13]Sock 8.Thread stoped [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:54]accept exits with 9 [10:06:54]New connection [10:06:54]New thread 3067399524 created [10:06:54]Thread 3067256164 joined [10:06:54]Waiting for new connection... [10:06:54] Sock 9.Parse request [10:06:54]Sock 9.Check first char [10:06:54]Sock 9.First char is OK [10:06:54]request: POST /json_proto HTTP/1.0 [10:06:54]Method: POST [10:06:54]URL: /json_proto [10:06:54]Method is POST - this is cgi request [10:06:54]url: /json_proto [10:06:54]query_string will be loaded in cgi processing [10:06:54]execute_cgi json_proto POST (null) [10:06:54]execute_cgi path=json_proto method=POST [10:06:54]POST find Content-Length [10:06:54]Host: 172.17.57.71:8080 [10:06:54]Content-Length: 891 [10:06:54]Content-Type: application/json [10:06:54] [10:06:54]POST finish read [10:06:54]Found Content-Length = 891 [10:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127165", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:54]execute_script... [10:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127165", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:54]POST & json_proto [10:06:54]process_json_proto [10:06:54]json parsed OK: [10:06:54]protocol is kg_v1.0 [10:06:54]action value=close_receipt [10:06:54]process_action close_receipt [10:06:54]cmd_close_receipt [10:06:54]MH_GetDate [10:06:54]Write to MH i2c: F0 00 00 82 60 D1 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 09 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 09 00 82 60 00 C9 0E E4 66 33 3A A4 66 72 [10:06:54]GetLastDocTimeStamp 1726221858 [10:06:54]current date 1726222025 [10:06:54]FM_GetShiftState [10:06:54]SAM_PROTO_GetShiftState [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 13 01 00 [10:06:54]Write to MH i2c: E2 08 00 83 60 80 13 01 00 00 00 00 00 60 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 83 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EC [10:06:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetShiftState done [10:06:54]FM_GetShiftState done [10:06:54]opened in 1726186930 [10:06:54]opened+sec_in_day 1726273330 [10:06:54]quantity*price = 9000 [10:06:54]sum+1 = 9001 [10:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 39 13.09.2024 10:07 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92231 ФПД: 6628718508459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92231&fm=6628718508459&tin=02508201610067®Number=0000000000091423&sum=9000 0 [10:06:55]StoreToDocumentArchive [10:06:55]shift 505 fd 92231 [10:06:55]save to /storage/0505/doc_00092231 [10:06:55]save last doc name /storage/0505/doc_00092231 to /storage/kkm_last_doc_name [10:06:55]save OK [10:06:55]Clear old archive folders... [10:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=305 [10:06:55]tlvbuf is 01590F00 [10:06:55]SAM_PROTO_ClearQueue [10:06:55]wFMCommunicate request_size=4 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 09 00 00 [10:06:55]Write to MH i2c: E2 08 00 90 60 80 09 00 00 00 00 00 00 62 [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 90 60 00 90 00 64 [10:06:55]RAPDU: 90 00 [10:06:55]wFMCommunicate OK [10:06:55]SAM_PROTO_ClearQueue done [10:06:55]KKMCreateOFDPacket [10:06:55]OFDProtocolAddRootSTLVToBuf [10:06:55]FM_MakeSignedData [10:06:55]FM_MakeSignedData [10:06:55]SAM_PROTO_SignData [10:06:55]wFMCommunicate request_size=4 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 0D 01 02 [10:06:55]Write to MH i2c: E2 08 00 91 60 80 0D 01 02 00 00 00 00 6A [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 91 60 00 90 00 65 [10:06:55]RAPDU: 90 00 [10:06:55]wFMCommunicate OK [10:06:55]wFMCommunicate request_size=255 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C9 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 [10:06:55]Write to MH i2c: E2 02 01 92 60 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C9 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 00 00 F0 [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]OFD Sender: No OFD packet to send [10:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 92 60 00 90 00 66 [10:06:55]RAPDU: 90 00 [10:06:55]wFMCommunicate OK [10:06:55]wFMCommunicate request_size=64 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 68 01 00 35 04 06 00 06 07 5E 69 79 AB [10:06:56]Write to MH i2c: E2 43 00 93 60 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 68 01 00 35 04 06 00 06 07 5E 69 79 AB 00 00 60 [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 93 60 00 90 00 67 [10:06:56]RAPDU: 90 00 [10:06:56]wFMCommunicate OK [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 0D 03 02 [10:06:56]Write to MH i2c: E2 08 00 94 60 80 0D 03 02 00 00 00 00 6F [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0B 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0B 00 94 60 00 AD 1A 39 3D 9A 2B 80 48 90 00 3A [10:06:56]RAPDU: AD 1A 39 3D 9A 2B 80 48 90 00 [10:06:56]wFMCommunicate OK [10:06:56]SAM_PROTO_SignData done [10:06:56]FM_MakeSignedData done [10:06:56]CreateOFDProtocolMessage [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 11 00 00 [10:06:56]Write to MH i2c: E2 08 00 95 60 80 11 00 00 00 00 00 00 6F [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 95 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C6 [10:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:06:56]wFMCommunicate OK [10:06:56]CreateOFDProtocolMessage done [10:06:56]OFDSenderStorePacket 92231 [10:06:56]StoreOFDPacket docnum=92231 [10:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 45 01 00 00 20 1B 3D 01 64 15 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C9 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 68 01 00 35 04 06 00 06 07 5E 69 79 AB AD 1A 39 3D 9A 2B 80 48 [10:06:56]CheckFolder [10:06:56]dirname=/storage/ofd_packets [10:06:56]CheckFolder done [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00092231 [10:06:56]NVStorageSaveData ofd_packets/00092231 [10:06:56]File name is /storage/ofd_packets/00092231 [10:06:56]Write 355 bytes [10:06:56]NVStorageSaveData done [10:06:56]OFDSenderStorePacket done [10:06:56]KKMCreateOFDPacket done [10:06:56]NVStorageSaveData kkm_last_timestamp [10:06:56]File name is /storage/kkm_last_timestamp [10:06:56]Write 4 bytes [10:06:56]NVStorageSaveData done [10:06:56]ExternCall_PrintAddStr [10:06:56]wPrintStart [10:06:56]Write to MH i2c: 01 00 00 96 60 F6 [10:06:56]OFD Sender: Processing packet 92231 [packets to send 63, broken 62] [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00092231 [10:06:56]OFD Sender: To server: pG, [10:06:56]CommunicateWithHost lk.salyk.kg:30040 [10:06:56]ConnectInit lk.salyk.kg [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 96 60 00 00 00 00 00 FF 0F 0B [10:06:56]RasterBufferAndPrint [10:06:56]line Счет N : (3)127165 [10:06:56]line ИНН: 02508201610067 [10:06:56]line Контрольно-Кассовый Чек [10:06:56]line ПРОДАЖА [10:06:56]line Товар: 4870235681086 [10:06:56]line Grizzly волнистые Сыр с халапеньо 55 гр [10:06:56]line 1.000 * 90.00 [10:06:56]line = 90.00 [10:06:56]line НДС 12% НСП 1% [10:06:56]line > о реализуемом товаре [10:06:56]line ИТОГО: 90.00 [10:06:56]line НСП 1% : 0.80 [10:06:56]line НДС 12% : 9.56 [10:06:56]line Наличными: 0.00 [10:06:56]line Безнал.: 90.00 [10:06:56]line Место: АЗС № 5 "Партнер Нефть" [10:06:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:06:56]line СНО: Общий режим [10:06:56]line Чек 39 13.09.2024 10:07 [10:06:56]line Смена: 505 ФФД: 1.0 [10:06:56]line ЗНМ: 03000000022 [10:06:56]line РНМ: 0000000000091423 [10:06:56]line Версия ККМ: 001 [10:06:56]line Платежная система: Бакай Банк [10:06:56]line ФМ: 0000000000874692 [10:06:56]line ФД: 92231 [10:06:56]line ФПД: 6628718508459 [10:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T100705&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92231&fm=6628718508459&tin=02508201610067®Number=0000000000091423&sum=9000 [10:06:56]line 0 [10:06:56]Connected sock=10 [10:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 45 01 00 00 20 1B 3D 01 64 15 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C9 0E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 68 01 00 35 04 06 00 06 07 5E 69 79 AB AD 1A 39 3D 9A 2B 80 48 [10:06:56]written 0, free lines is 4095 [10:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 25 E3 47 00 93 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 68 01 00 F4 03 04 00 48 B7 E3 66 B6 04 01 00 00 48 43 CA 86 53 D2 7D 42 [10:06:56]CommunicateWithHost err = 0 [10:06:56]CheckOFDResponse [10:06:56]1017 (14) - 77093643461234 [10:06:56]1041 (16) - 0000000000874692 [10:06:56]1040 (4) - 92231 [10:06:56]1012 (4) - 13.09.2024 03:53 [10:06:56]1206 (1) - 0 [10:06:56]OFD Sender: Remove packet 92231 [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00092231 [10:06:56]NVStorageDeleteData [10:06:57]Write to MH i2c: 01 00 00 C1 60 21 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 07 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 07 00 C1 60 00 00 00 00 00 EA 0C 1E [10:06:57]RasterBufferAndPrint [10:06:57]line [10:06:57]line [10:06:57]line [10:06:57]line [10:06:57]line [10:06:57]written 0, free lines is 3315 [10:06:57]MH_Cut [10:06:57]Write to MH i2c: D1 01 00 C8 60 01 FA [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: D1 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: D1 01 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: D1 01 00 C8 60 00 F9 [10:06:57]Write to MH i2c: 01 00 00 C9 60 29 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]OFD Sender: No OFD packet to send [10:06:57]*** Cut start [10:06:57]*** Purtial cut [10:06:57]*** Stage 1: CUTSNS_PIN = 1 [10:06:59]Read from MH i2c: 01 [10:06:59]MH_I2C_Read... [10:06:59]*** Stop cut motor [10:06:59]*** Cut end [10:06:59]Read from MH i2c: 01 07 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: 01 07 00 C9 60 00 00 00 00 00 FF 0F 3E [10:06:59]process_action close_receipt done [10:06:59]requested_data is exist [10:06:59]produce_requested_data [10:06:59]requested_item fm.sn is exist - process it [10:06:59]wFMCommunicate request_size=4 [10:06:59]MH_SAM_APDU [10:06:59]CAPDU: 80 11 00 00 [10:06:59]Write to MH i2c: E2 08 00 CA 60 80 11 00 00 00 00 00 00 A4 [10:06:59]Write i2c OK [10:06:59]MH_I2C_Read... [10:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:59]Read from MH i2c: E2 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 17 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 17 00 CA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FB [10:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:06:59]wFMCommunicate OK [10:06:59]requested_item fd.num is exist - process it [10:06:59]SAM_PROTO_GetFieldsCounters [10:06:59]wFMCommunicate request_size=4 [10:06:59]MH_SAM_APDU [10:06:59]CAPDU: 80 13 00 00 [10:06:59]Write to MH i2c: E2 08 00 CB 60 80 13 00 00 00 00 00 00 A7 [10:06:59]Write i2c OK [10:06:59]MH_I2C_Read... [10:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:59]Read from MH i2c: E2 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 62 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 62 00 CB 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 47 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [10:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 47 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:59]wFMCommunicate OK [10:06:59]SAM_PROTO_GetFieldsCounters done [10:06:59]requested_item shift.num is exist - process it [10:06:59]requested_item shift.opened is exist - process it [10:06:59]req_shift_opened [10:06:59]FM_GetShiftState [10:06:59]SAM_PROTO_GetShiftState [10:06:59]wFMCommunicate request_size=4 [10:06:59]MH_SAM_APDU [10:06:59]CAPDU: 80 13 01 00 [10:06:59]Write to MH i2c: E2 08 00 CC 60 80 13 01 00 00 00 00 00 A9 [10:06:59]Write i2c OK [10:06:59]MH_I2C_Read... [10:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:59]Read from MH i2c: E2 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 0E 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 0E 00 CC 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 35 [10:06:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:06:59]wFMCommunicate OK [10:06:59]SAM_PROTO_GetShiftState done [10:06:59]FM_GetShiftState done [10:06:59]req_shift_opened done [10:06:59]requested_item shift.open_date is exist - process it [10:06:59]req_shift_open_date [10:06:59]req_shift_open_date done [10:06:59]produce_requested_data done [10:06:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92231,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:06:59]process_action_free close_receipt [10:06:59]json_value_free [10:06:59]json_value_free done [10:06:59]process_json_proto returns [10:06:59]Send response to host [10:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92231,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:06:59]free response buf [10:06:59]execute_script done [10:06:59]execute_script returns [10:06:59]free content buf [10:06:59]Sock 9.Close socket [10:06:59]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:03]accept exits with 8 [10:11:03]New connection [10:11:03]New thread 3067256164 created [10:11:03]Thread 3067399524 joined [10:11:03]Waiting for new connection... [10:11:03] Sock 8.Parse request [10:11:03]Sock 8.Check first char [10:11:03]Sock 8.First char is OK [10:11:03]request: POST /json_proto HTTP/1.0 [10:11:03]Method: POST [10:11:03]URL: /json_proto [10:11:03]Method is POST - this is cgi request [10:11:03]url: /json_proto [10:11:03]query_string will be loaded in cgi processing [10:11:03]execute_cgi json_proto POST (null) [10:11:03]execute_cgi path=json_proto method=POST [10:11:03]POST find Content-Length [10:11:03]Host: 172.17.57.71:8080 [10:11:03]Content-Length: 640 [10:11:03]Content-Type: application/json [10:11:03] [10:11:03]POST finish read [10:11:03]Found Content-Length = 640 [10:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127166", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]execute_script... [10:11: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 : (3)127166", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]POST & json_proto [10:11:03]process_json_proto [10:11:03]json parsed OK: [10:11:03]protocol is kg_v1.0 [10:11:03]action value=close_receipt [10:11:03]process_action close_receipt [10:11:03]cmd_close_receipt [10:11:03]MH_GetDate [10:11:03]Write to MH i2c: F0 00 00 CD 60 1C [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 CD 60 00 C2 0F E4 66 33 3A A4 66 B7 [10:11:03]GetLastDocTimeStamp 1726222025 [10:11:03]current date 1726222274 [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 CE 60 80 13 01 00 00 00 00 00 AB [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 CE 60 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 37 [10:11:03]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]opened in 1726186930 [10:11:03]opened+sec_in_day 1726273330 [10:11:03]quantity*price = 3500 [10:11:03]sum+1 = 3501 [10:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 40 13.09.2024 10:11 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92232 ФПД: 192078302509985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T101114&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92232&fm=192078302509985&tin=02508201610067®Number=0000000000091423&sum=3500 0 [10:11:04]StoreToDocumentArchive [10:11:04]shift 505 fd 92232 [10:11:04]save to /storage/0505/doc_00092232 [10:11:04]save last doc name /storage/0505/doc_00092232 to /storage/kkm_last_doc_name [10:11:04]save OK [10:11:04]Clear old archive folders... [10:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:11:04]tlvbuf is 01765A30 [10:11:04]SAM_PROTO_ClearQueue [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 09 00 00 [10:11:04]Write to MH i2c: E2 08 00 DB 60 80 09 00 00 00 00 00 00 AD [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 DB 60 00 90 00 AF [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_ClearQueue done [10:11:04]KKMCreateOFDPacket [10:11:04]OFDProtocolAddRootSTLVToBuf [10:11:04]FM_MakeSignedData [10:11:04]FM_MakeSignedData [10:11:04]SAM_PROTO_SignData [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 01 02 [10:11:04]Write to MH i2c: E2 08 00 DC 60 80 0D 01 02 00 00 00 00 B5 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 DC 60 00 90 00 B0 [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]wFMCommunicate request_size=255 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C2 0F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [10:11:04]Write to MH i2c: E2 02 01 DD 60 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C2 0F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 C3 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 DD 60 00 90 00 B1 [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=34 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 68 01 00 35 04 06 00 AE B1 B6 FD 7B A1 [10:11:05]Write to MH i2c: E2 25 00 DE 60 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 68 01 00 35 04 06 00 AE B1 B6 FD 7B A1 00 00 5C [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 DE 60 00 90 00 B2 [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 03 02 [10:11:05]Write to MH i2c: E2 08 00 DF 60 80 0D 03 02 00 00 00 00 BA [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 DF 60 00 DE 7D F7 1D F3 FB 44 D1 90 00 2D [10:11:05]RAPDU: DE 7D F7 1D F3 FB 44 D1 90 00 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_SignData done [10:11:05]FM_MakeSignedData done [10:11:05]CreateOFDProtocolMessage [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 11 00 00 [10:11:05]Write to MH i2c: E2 08 00 E0 60 80 11 00 00 00 00 00 00 BA [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 E0 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 11 [10:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:11:05]wFMCommunicate OK [10:11:05]CreateOFDProtocolMessage done [10:11:05]OFDSenderStorePacket 92232 [10:11:05]StoreOFDPacket docnum=92232 [10:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2B 03 1F 01 8F ED 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C2 0F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 68 01 00 35 04 06 00 AE B1 B6 FD 7B A1 DE 7D F7 1D F3 FB 44 D1 [10:11:05]CheckFolder [10:11:05]dirname=/storage/ofd_packets [10:11:05]CheckFolder done [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00092232 [10:11:05]NVStorageSaveData ofd_packets/00092232 [10:11:05]File name is /storage/ofd_packets/00092232 [10:11:05]Write 325 bytes [10:11:05]NVStorageSaveData done [10:11:05]OFDSenderStorePacket done [10:11:05]KKMCreateOFDPacket done [10:11:05]NVStorageSaveData kkm_last_timestamp [10:11:05]File name is /storage/kkm_last_timestamp [10:11:05]Write 4 bytes [10:11:05]NVStorageSaveData done [10:11:05]ExternCall_PrintAddStr [10:11:05]wPrintStart [10:11:05]Write to MH i2c: 01 00 00 E1 60 41 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 E1 60 00 00 00 00 00 FF 0F 56 [10:11:05]RasterBufferAndPrint [10:11:05]line Счет N : (3)127166 [10:11:05]line ИНН: 02508201610067 [10:11:05]line Контрольно-Кассовый Чек [10:11:05]line ПРОДАЖА [10:11:05]line Товар: 2000032710015 [10:11:05]line Сочник DC творог 75г [10:11:05]line 1.000 * 35.00 [10:11:05]line = 35.00 [10:11:05]line НДС 12% НСП 1% [10:11:05]line > о реализуемом товаре [10:11:05]line ИТОГО: 35.00 [10:11:05]line НСП 1% : 0.31 [10:11:05]line НДС 12% : 3.72 [10:11:05]line Наличными: 35.00 [10:11:05]line Безнал.: 0.00 [10:11:05]line Место: АЗС № 5 "Партнер Нефть" [10:11:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:11:05]line СНО: Общий режим [10:11:05]line Чек 40 13.09.2024 10:11 [10:11:05]line Смена: 505 ФФД: 1.0 [10:11:05]line ЗНМ: 03000000022 [10:11:05]line РНМ: 0000000000091423 [10:11:05]line Версия ККМ: 001 [10:11:05]line ФМ: 0000000000874692 [10:11:05]line ФД: 92232 [10:11:05]line ФПД: 192078302509985 [10:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T101114&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92232&fm=192078302509985&tin=02508201610067®Number=0000000000091423&sum=3500 [10:11:05]OFD Sender: Processing packet 92232 [packets to send 63, broken 62] [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00092232 [10:11:05]OFD Sender: To server: pG, [10:11:05]CommunicateWithHost lk.salyk.kg:30040 [10:11:05]ConnectInit lk.salyk.kg [10:11:05]line 0 [10:11:05]written 0, free lines is 4095 [10:11:05]Connected sock=10 [10:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2B 03 1F 01 8F ED 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C2 0F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 68 01 00 35 04 06 00 AE B1 B6 FD 7B A1 DE 7D F7 1D F3 FB 44 D1 [10:11:05]Write to MH i2c: 01 00 00 09 61 6A [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 09 61 00 00 00 00 00 23 0D A1 [10:11:05]RasterBufferAndPrint [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]written 0, free lines is 3368 [10:11:05]MH_Cut [10:11:05]Write to MH i2c: D1 01 00 10 61 01 43 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: D1 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: D1 01 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: D1 01 00 10 61 00 42 [10:11:05]Write to MH i2c: 01 00 00 11 61 72 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E5 15 47 00 B9 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 68 01 00 F4 03 04 00 41 B8 E3 66 B6 04 01 00 00 72 4B 9A 1E A4 12 F7 54 [10:11:05]CommunicateWithHost err = 0 [10:11:05]CheckOFDResponse [10:11:05]1017 (14) - 77093643461234 [10:11:05]1041 (16) - 0000000000874692 [10:11:05]1040 (4) - 92232 [10:11:05]1012 (4) - 13.09.2024 03:57 [10:11:05]1206 (1) - 0 [10:11:05]OFD Sender: Remove packet 92232 [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00092232 [10:11:05]NVStorageDeleteData [10:11:06]*** Cut start [10:11:06]*** Purtial cut [10:11:06]*** Stage 1: CUTSNS_PIN = 1 [10:11:06]OFD Sender: No OFD packet to send [10:11:08]Read from MH i2c: 01 [10:11:08]MH_I2C_Read... [10:11:08]*** Stop cut motor [10:11:08]*** Cut end [10:11:08]Read from MH i2c: 01 07 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: 01 07 00 11 61 00 00 00 00 00 FF 0F 87 [10:11:08]process_action close_receipt done [10:11:08]requested_data is exist [10:11:08]produce_requested_data [10:11:08]requested_item fm.sn is exist - process it [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 11 00 00 [10:11:08]Write to MH i2c: E2 08 00 12 61 80 11 00 00 00 00 00 00 ED [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 17 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 17 00 12 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [10:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:11:08]wFMCommunicate OK [10:11:08]requested_item fd.num is exist - process it [10:11:08]SAM_PROTO_GetFieldsCounters [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 13 00 00 [10:11:08]Write to MH i2c: E2 08 00 13 61 80 13 00 00 00 00 00 00 F0 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 62 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 62 00 13 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 48 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 48 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:08]wFMCommunicate OK [10:11:08]SAM_PROTO_GetFieldsCounters done [10:11:08]requested_item shift.num is exist - process it [10:11:08]requested_item shift.opened is exist - process it [10:11:08]req_shift_opened [10:11:08]FM_GetShiftState [10:11:08]SAM_PROTO_GetShiftState [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 13 01 00 [10:11:08]Write to MH i2c: E2 08 00 14 61 80 13 01 00 00 00 00 00 F2 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 0E 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 0E 00 14 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7E [10:11:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:11:08]wFMCommunicate OK [10:11:08]SAM_PROTO_GetShiftState done [10:11:08]FM_GetShiftState done [10:11:08]req_shift_opened done [10:11:08]requested_item shift.open_date is exist - process it [10:11:08]req_shift_open_date [10:11:08]req_shift_open_date done [10:11:08]produce_requested_data done [10:11:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92232,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:11:08]process_action_free close_receipt [10:11:08]json_value_free [10:11:08]json_value_free done [10:11:08]process_json_proto returns [10:11:08]Send response to host [10:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92232,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:11:08]free response buf [10:11:08]execute_script done [10:11:08]execute_script returns [10:11:08]free content buf [10:11:08]Sock 8.Close socket [10:11:08]Sock 8.Thread stoped [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:15]accept exits with 9 [10:15:15]New connection [10:15:15]New thread 3067399524 created [10:15:15]Thread 3067256164 joined [10:15:15]Waiting for new connection... [10:15:15] Sock 9.Parse request [10:15:15]Sock 9.Check first char [10:15:15]Sock 9.First char is OK [10:15:15]request: POST /json_proto HTTP/1.0 [10:15:15]Method: POST [10:15:15]URL: /json_proto [10:15:15]Method is POST - this is cgi request [10:15:15]url: /json_proto [10:15:15]query_string will be loaded in cgi processing [10:15:15]execute_cgi json_proto POST (null) [10:15:15]execute_cgi path=json_proto method=POST [10:15:15]POST find Content-Length [10:15:15]Host: 172.17.57.71:8080 [10:15:15]Content-Length: 907 [10:15:15]Content-Type: application/json [10:15:15] [10:15:15]POST finish read [10:15:15]Found Content-Length = 907 [10:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127167", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 172.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:15]execute_script... [10:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127167", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 172.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:15]POST & json_proto [10:15:15]process_json_proto [10:15:15]json parsed OK: [10:15:15]protocol is kg_v1.0 [10:15:15]action value=close_receipt [10:15:15]process_action close_receipt [10:15:15]cmd_close_receipt [10:15:15]MH_GetDate [10:15:15]Write to MH i2c: F0 00 00 15 61 65 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 09 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 09 00 15 61 00 BE 10 E4 66 33 3A A4 66 FD [10:15:15]GetLastDocTimeStamp 1726222274 [10:15:15]current date 1726222526 [10:15:15]FM_GetShiftState [10:15:15]SAM_PROTO_GetShiftState [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 13 01 00 [10:15:15]Write to MH i2c: E2 08 00 16 61 80 13 01 00 00 00 00 00 F4 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:15]Read from MH i2c: E2 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 0E 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 0E 00 16 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 80 [10:15:15]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:15:15]wFMCommunicate OK [10:15:15]SAM_PROTO_GetShiftState done [10:15:15]FM_GetShiftState done [10:15:15]opened in 1726186930 [10:15:15]opened+sec_in_day 1726273330 [10:15:15]quantity*price = 4200 [10:15:15]sum+1 = 4201 [10:15:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 172.00 НСП 1% : 1.52 НДС 12% : 18.26 Наличными: 172.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 41 13.09.2024 10:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92233 ФПД: 197159033109430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T101526&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92233&fm=197159033109430&tin=02508201610067®Number=0000000000091423&sum=17200 0 [10:15:16]StoreToDocumentArchive [10:15:16]shift 505 fd 92233 [10:15:16]save to /storage/0505/doc_00092233 [10:15:16]save last doc name /storage/0505/doc_00092233 to /storage/kkm_last_doc_name [10:15:16]save OK [10:15:16]Clear old archive folders... [10:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=387 [10:15:16]tlvbuf is 01657E80 [10:15:16]SAM_PROTO_ClearQueue [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 09 00 00 [10:15:16]Write to MH i2c: E2 08 00 23 61 80 09 00 00 00 00 00 00 F6 [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 23 61 00 90 00 F8 [10:15:16]RAPDU: 90 00 [10:15:16]wFMCommunicate OK [10:15:16]SAM_PROTO_ClearQueue done [10:15:16]KKMCreateOFDPacket [10:15:16]OFDProtocolAddRootSTLVToBuf [10:15:16]FM_MakeSignedData [10:15:16]FM_MakeSignedData [10:15:16]SAM_PROTO_SignData [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 0D 01 02 [10:15:16]Write to MH i2c: E2 08 00 24 61 80 0D 01 02 00 00 00 00 FE [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 24 61 00 90 00 F9 [10:15:16]RAPDU: 90 00 [10:15:16]wFMCommunicate OK [10:15:16]wFMCommunicate request_size=255 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [10:15:16]Write to MH i2c: E2 02 01 25 61 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 21 [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 25 61 00 90 00 FA [10:15:17]RAPDU: 90 00 [10:15:17]wFMCommunicate OK [10:15:17]wFMCommunicate request_size=146 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 0D 02 02 8D 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 07 00 00 00 00 07 04 06 00 30 43 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 BE 10 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 68 01 00 35 04 06 00 B3 50 AA 21 FB B6 [10:15:17]Write to MH i2c: E2 95 00 26 61 80 0D 02 02 8D 00 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 07 00 00 00 00 07 04 06 00 30 43 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 BE 10 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 68 01 00 35 04 06 00 B3 50 AA 21 FB B6 00 00 EF [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 26 61 00 90 00 FB [10:15:17]RAPDU: 90 00 [10:15:17]wFMCommunicate OK [10:15:17]wFMCommunicate request_size=4 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 0D 03 02 [10:15:17]Write to MH i2c: E2 08 00 27 61 80 0D 03 02 00 00 00 00 03 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 0B 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 0B 00 27 61 00 5D 6E AD E2 61 0D BA A2 90 00 28 [10:15:17]RAPDU: 5D 6E AD E2 61 0D BA A2 90 00 [10:15:17]wFMCommunicate OK [10:15:17]SAM_PROTO_SignData done [10:15:17]FM_MakeSignedData done [10:15:17]CreateOFDProtocolMessage [10:15:17]wFMCommunicate request_size=4 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 11 00 00 [10:15:17]Write to MH i2c: E2 08 00 28 61 80 11 00 00 00 00 00 00 03 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 17 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 17 00 28 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5A [10:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:15:17]wFMCommunicate OK [10:15:17]CreateOFDProtocolMessage done [10:15:17]OFDSenderStorePacket 92233 [10:15:17]StoreOFDPacket docnum=92233 [10:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 97 01 00 00 4F 55 8F 01 04 E2 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 07 00 00 00 00 07 04 06 00 30 43 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 BE 10 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 68 01 00 35 04 06 00 B3 50 AA 21 FB B6 5D 6E AD E2 61 0D BA A2 [10:15:17]CheckFolder [10:15:17]dirname=/storage/ofd_packets [10:15:17]CheckFolder done [10:15:17]ProducePacketName [10:15:17]name=ofd_packets/00092233 [10:15:17]NVStorageSaveData ofd_packets/00092233 [10:15:17]File name is /storage/ofd_packets/00092233 [10:15:17]Write 437 bytes [10:15:17]NVStorageSaveData done [10:15:17]OFDSenderStorePacket done [10:15:17]KKMCreateOFDPacket done [10:15:17]NVStorageSaveData kkm_last_timestamp [10:15:17]File name is /storage/kkm_last_timestamp [10:15:17]Write 4 bytes [10:15:17]NVStorageSaveData done [10:15:17]ExternCall_PrintAddStr [10:15:17]wPrintStart [10:15:17]Write to MH i2c: 01 00 00 29 61 8A [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 07 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 07 00 29 61 00 00 00 00 00 FF 0F 9F [10:15:17]RasterBufferAndPrint [10:15:17]line Счет N : (3)127167 [10:15:17]line ИНН: 02508201610067 [10:15:17]line Контрольно-Кассовый Чек [10:15:17]line ПРОДАЖА [10:15:17]line Товар: 5449000005489 [10:15:17]line Вода Бонаква 1л б/г [10:15:17]line 1.000 * 42.00 [10:15:17]line = 42.00 [10:15:17]line НДС 12% НСП 1% [10:15:17]line > о реализуемом товаре [10:15:17]line Товар: 2000036220012 [10:15:17]line Кофе Капучино XL(GABB TRADE) [10:15:17]line 1.000 * 130.00 [10:15:17]line = 130.00 [10:15:17]line НДС 12% НСП 1% [10:15:17]line > о реализуемом товаре [10:15:17]line ИТОГО: 172.00 [10:15:17]line НСП 1% : 1.52 [10:15:17]line НДС 12% : 18.26 [10:15:17]line Наличными: 172.00 [10:15:17]line Безнал.: 0.00 [10:15:17]line Место: АЗС № 5 "Партнер Нефть" [10:15:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:15:17]line СНО: Общий режим [10:15:17]line Чек 41 13.09.2024 10:15 [10:15:17]line Смена: 505 ФФД: 1.0 [10:15:17]line ЗНМ: 03000000022 [10:15:17]line РНМ: 0000000000091423 [10:15:17]line Версия ККМ: 001 [10:15:17]line ФМ: 0000000000874692 [10:15:17]line ФД: 92233 [10:15:17]line ФПД: 197159033109430 [10:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T101526&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92233&fm=197159033109430&tin=02508201610067®Number=0000000000091423&sum=17200 [10:15:17]line 0 [10:15:17]OFD Sender: Processing packet 92233 [packets to send 63, broken 62] [10:15:17]ProducePacketName [10:15:17]name=ofd_packets/00092233 [10:15:17]OFD Sender: To server: pG, [10:15:17]CommunicateWithHost lk.salyk.kg:30040 [10:15:17]ConnectInit lk.salyk.kg [10:15:17]written 0, free lines is 4095 [10:15:17]Connected sock=10 [10:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 97 01 00 00 4F 55 8F 01 04 E2 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 07 00 00 00 00 07 04 06 00 30 43 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 BE 10 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 68 01 00 35 04 06 00 B3 50 AA 21 FB B6 5D 6E AD E2 61 0D BA A2 [10:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A6 82 47 00 F0 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 68 01 00 F4 03 04 00 3D B9 E3 66 B6 04 01 00 00 A2 E1 4E 32 94 21 58 EB [10:15:18]CommunicateWithHost err = 0 [10:15:18]CheckOFDResponse [10:15:18]1017 (14) - 77093643461234 [10:15:18]1041 (16) - 0000000000874692 [10:15:18]1040 (4) - 92233 [10:15:18]1012 (4) - 13.09.2024 04:02 [10:15:18]1206 (1) - 0 [10:15:18]OFD Sender: Remove packet 92233 [10:15:18]ProducePacketName [10:15:18]name=ofd_packets/00092233 [10:15:18]NVStorageDeleteData [10:15:18]Write to MH i2c: 01 00 00 58 61 B9 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 58 61 00 00 00 00 00 C3 0C 8F [10:15:18]RasterBufferAndPrint [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]written 0, free lines is 3274 [10:15:18]MH_Cut [10:15:18]Write to MH i2c: D1 01 00 5F 61 01 92 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 01 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 01 00 5F 61 00 91 [10:15:18]Write to MH i2c: 01 00 00 60 61 C1 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]OFD Sender: No OFD packet to send [10:15:19]*** Cut start [10:15:19]*** Purtial cut [10:15:19]*** Stage 1: CUTSNS_PIN = 1 [10:15:21]Read from MH i2c: 01 [10:15:21]MH_I2C_Read... [10:15:21]*** Stop cut motor [10:15:21]*** Cut end [10:15:21]Read from MH i2c: 01 07 00 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: 01 07 00 60 61 00 00 00 00 00 FF 0F D6 [10:15:21]process_action close_receipt done [10:15:21]requested_data is exist [10:15:21]produce_requested_data [10:15:21]requested_item fm.sn is exist - process it [10:15:21]wFMCommunicate request_size=4 [10:15:21]MH_SAM_APDU [10:15:21]CAPDU: 80 11 00 00 [10:15:21]Write to MH i2c: E2 08 00 61 61 80 11 00 00 00 00 00 00 3C [10:15:21]Write i2c OK [10:15:21]MH_I2C_Read... [10:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:21]Read from MH i2c: E2 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 17 00 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 17 00 61 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 93 [10:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:15:21]wFMCommunicate OK [10:15:21]requested_item fd.num is exist - process it [10:15:21]SAM_PROTO_GetFieldsCounters [10:15:21]wFMCommunicate request_size=4 [10:15:21]MH_SAM_APDU [10:15:21]CAPDU: 80 13 00 00 [10:15:21]Write to MH i2c: E2 08 00 62 61 80 13 00 00 00 00 00 00 3F [10:15:21]Write i2c OK [10:15:21]MH_I2C_Read... [10:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:21]Read from MH i2c: E2 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 62 00 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 62 00 62 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 49 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 49 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:21]wFMCommunicate OK [10:15:21]SAM_PROTO_GetFieldsCounters done [10:15:21]requested_item shift.num is exist - process it [10:15:21]requested_item shift.opened is exist - process it [10:15:21]req_shift_opened [10:15:21]FM_GetShiftState [10:15:21]SAM_PROTO_GetShiftState [10:15:21]wFMCommunicate request_size=4 [10:15:21]MH_SAM_APDU [10:15:21]CAPDU: 80 13 01 00 [10:15:21]Write to MH i2c: E2 08 00 63 61 80 13 01 00 00 00 00 00 41 [10:15:21]Write i2c OK [10:15:21]MH_I2C_Read... [10:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:21]Read from MH i2c: E2 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 0E 00 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 0E 00 63 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 CD [10:15:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:15:21]wFMCommunicate OK [10:15:21]SAM_PROTO_GetShiftState done [10:15:21]FM_GetShiftState done [10:15:21]req_shift_opened done [10:15:21]requested_item shift.open_date is exist - process it [10:15:21]req_shift_open_date [10:15:21]req_shift_open_date done [10:15:21]produce_requested_data done [10:15:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92233,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:15:21]process_action_free close_receipt [10:15:21]json_value_free [10:15:21]json_value_free done [10:15:21]process_json_proto returns [10:15:21]Send response to host [10:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92233,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:15:21]free response buf [10:15:21]execute_script done [10:15:21]execute_script returns [10:15:21]free content buf [10:15:21]Sock 9.Close socket [10:15:21]Sock 9.Thread stoped [10:15:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28: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:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30: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:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]accept exits with 8 [10:33:54]New connection [10:33:54]New thread 3067256164 created [10:33:54]Thread 3067399524 joined [10:33:54]Waiting for new connection... [10:33:54] Sock 8.Parse request [10:33:54]Sock 8.Check first char [10:33:54]Sock 8.First char is OK [10:33:54]request: POST /json_proto HTTP/1.0 [10:33:54]Method: POST [10:33:54]URL: /json_proto [10:33:54]Method is POST - this is cgi request [10:33:54]url: /json_proto [10:33:54]query_string will be loaded in cgi processing [10:33:54]execute_cgi json_proto POST (null) [10:33:54]execute_cgi path=json_proto method=POST [10:33:54]POST find Content-Length [10:33:54]Host: 172.17.57.71:8080 [10:33:54]Content-Length: 944 [10:33:54]Content-Type: application/json [10:33:54] [10:33:54]POST finish read [10:33:54]Found Content-Length = 944 [10:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127168", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:54]execute_script... [10: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 : (3)127168", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:54]POST & json_proto [10:33:54]process_json_proto [10:33:54]json parsed OK: [10:33:54]protocol is kg_v1.0 [10:33:54]action value=close_receipt [10:33:54]process_action close_receipt [10:33:54]cmd_close_receipt [10:33:54]MH_GetDate [10:33:54]Write to MH i2c: F0 00 00 64 61 B4 [10:33:54]Write i2c OK [10:33:54]MH_I2C_Read... [10:33:54]Read from MH i2c: F0 [10:33:54]MH_I2C_Read... [10:33:54]Read from MH i2c: F0 09 00 [10:33:54]MH_I2C_Read... [10:33:54]Read from MH i2c: F0 09 00 64 61 00 1D 15 E4 66 33 3A A4 66 B0 [10:33:54]GetLastDocTimeStamp 1726222526 [10:33:54]current date 1726223645 [10:33:54]FM_GetShiftState [10:33:54]SAM_PROTO_GetShiftState [10:33:54]wFMCommunicate request_size=4 [10:33:54]MH_SAM_APDU [10:33:54]CAPDU: 80 13 01 00 [10:33:54]Write to MH i2c: E2 08 00 65 61 80 13 01 00 00 00 00 00 43 [10:33:54]Write i2c OK [10:33:54]MH_I2C_Read... [10:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:54]Read from MH i2c: E2 [10:33:54]MH_I2C_Read... [10:33:54]Read from MH i2c: E2 0E 00 [10:33:54]MH_I2C_Read... [10:33:54]Read from MH i2c: E2 0E 00 65 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 CF [10:33:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:33:54]wFMCommunicate OK [10:33:54]SAM_PROTO_GetShiftState done [10:33:54]FM_GetShiftState done [10:33:54]opened in 1726186930 [10:33:54]opened+sec_in_day 1726273330 [10:33:54]quantity*price = 8200 [10:33:54]sum+1 = 8201 [10:33:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 132.00 НСП 1% : 1.17 НДС 12% : 14.02 Наличными: 132.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 42 13.09.2024 10:34 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92234 ФПД: 257895343415904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T103405&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92234&fm=257895343415904&tin=02508201610067®Number=0000000000091423&sum=13200 0 [10:33:55]StoreToDocumentArchive [10:33:55]shift 505 fd 92234 [10:33:55]save to /storage/0505/doc_00092234 [10:33:55]save last doc name /storage/0505/doc_00092234 to /storage/kkm_last_doc_name [10:33:55]save OK [10:33:55]Clear old archive folders... [10:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=398 [10:33:55]tlvbuf is 0165E6A0 [10:33:55]SAM_PROTO_ClearQueue [10:33:55]wFMCommunicate request_size=4 [10:33:55]MH_SAM_APDU [10:33:55]CAPDU: 80 09 00 00 [10:33:55]Write to MH i2c: E2 08 00 72 61 80 09 00 00 00 00 00 00 45 [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:55]Read from MH i2c: E2 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 03 00 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 03 00 72 61 00 90 00 47 [10:33:55]RAPDU: 90 00 [10:33:55]wFMCommunicate OK [10:33:55]SAM_PROTO_ClearQueue done [10:33:55]KKMCreateOFDPacket [10:33:55]OFDProtocolAddRootSTLVToBuf [10:33:55]FM_MakeSignedData [10:33:55]FM_MakeSignedData [10:33:55]SAM_PROTO_SignData [10:33:55]wFMCommunicate request_size=4 [10:33:55]MH_SAM_APDU [10:33:55]CAPDU: 80 0D 01 02 [10:33:55]Write to MH i2c: E2 08 00 73 61 80 0D 01 02 00 00 00 00 4D [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:55]Read from MH i2c: E2 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 03 00 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 03 00 73 61 00 90 00 48 [10:33:55]RAPDU: 90 00 [10:33:55]wFMCommunicate OK [10:33:55]wFMCommunicate request_size=255 [10:33:55]MH_SAM_APDU [10:33:55]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 [10:33:55]Write to MH i2c: E2 02 01 74 61 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 00 95 [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 74 61 00 90 00 49 [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]wFMCommunicate request_size=157 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 1D 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 68 01 00 35 04 06 00 EA 8D F0 55 62 60 [10:33:56]Write to MH i2c: E2 A0 00 75 61 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 1D 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 68 01 00 35 04 06 00 EA 8D F0 55 62 60 00 00 2F [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 75 61 00 90 00 4A [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 03 02 [10:33:56]Write to MH i2c: E2 08 00 76 61 80 0D 03 02 00 00 00 00 52 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0B 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0B 00 76 61 00 CA 63 0F 6B DD 47 B9 94 90 00 6B [10:33:56]RAPDU: CA 63 0F 6B DD 47 B9 94 90 00 [10:33:56]wFMCommunicate OK [10:33:56]SAM_PROTO_SignData done [10:33:56]FM_MakeSignedData done [10:33:56]CreateOFDProtocolMessage [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 11 00 00 [10:33:56]Write to MH i2c: E2 08 00 77 61 80 11 00 00 00 00 00 00 52 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 17 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 17 00 77 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A9 [10:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:33:56]wFMCommunicate OK [10:33:56]CreateOFDProtocolMessage done [10:33:56]OFDSenderStorePacket 92234 [10:33:56]StoreOFDPacket docnum=92234 [10:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A2 01 00 00 94 A3 9A 01 3C 9E 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 1D 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 68 01 00 35 04 06 00 EA 8D F0 55 62 60 CA 63 0F 6B DD 47 B9 94 [10:33:56]CheckFolder [10:33:56]dirname=/storage/ofd_packets [10:33:56]CheckFolder done [10:33:56]ProducePacketName [10:33:56]name=ofd_packets/00092234 [10:33:56]NVStorageSaveData ofd_packets/00092234 [10:33:56]File name is /storage/ofd_packets/00092234 [10:33:56]Write 448 bytes [10:33:56]NVStorageSaveData done [10:33:56]OFDSenderStorePacket done [10:33:56]KKMCreateOFDPacket done [10:33:56]NVStorageSaveData kkm_last_timestamp [10:33:56]File name is /storage/kkm_last_timestamp [10:33:56]Write 4 bytes [10:33:56]NVStorageSaveData done [10:33:56]ExternCall_PrintAddStr [10:33:56]wPrintStart [10:33:56]Write to MH i2c: 01 00 00 78 61 D9 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 07 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 07 00 78 61 00 00 00 00 00 FF 0F EE [10:33:56]RasterBufferAndPrint [10:33:56]line Счет N : (3)127168 [10:33:56]line ИНН: 02508201610067 [10:33:56]line Контрольно-Кассовый Чек [10:33:56]line ПРОДАЖА [10:33:56]line Товар: 4700000480364 [10:33:56]line Напиток энерг Nitro экзотик 0.45 ж/б [10:33:56]line 1.000 * 82.00 [10:33:56]line = 82.00 [10:33:56]line НДС 12% НСП 1% [10:33:56]line > о реализуемом товаре [10:33:56]line Товар: 4700000160358 [10:33:56]line Вода Легенда 1л [10:33:56]line 1.000 * 50.00 [10:33:56]line = 50.00 [10:33:56]line НДС 12% НСП 1% [10:33:56]line > о реализуемом товаре [10:33:56]line ИТОГО: 132.00 [10:33:56]line НСП 1% : 1.17 [10:33:56]line НДС 12% : 14.02 [10:33:56]line Наличными: 132.00 [10:33:56]line Безнал.: 0.00 [10:33:56]line Место: АЗС № 5 "Партнер Нефть" [10:33:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:33:56]line СНО: Общий режим [10:33:56]line Чек 42 13.09.2024 10:34 [10:33:56]line Смена: 505 ФФД: 1.0 [10:33:56]line ЗНМ: 03000000022 [10:33:56]line РНМ: 0000000000091423 [10:33:56]line Версия ККМ: 001 [10:33:56]line ФМ: 0000000000874692 [10:33:56]line ФД: 92234 [10:33:56]line ФПД: 257895343415904 [10:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T103405&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92234&fm=257895343415904&tin=02508201610067®Number=0000000000091423&sum=13200 [10:33:56]line 0 [10:33:56]OFD Sender: Processing packet 92234 [packets to send 63, broken 62] [10:33:56]ProducePacketName [10:33:56]name=ofd_packets/00092234 [10:33:56]OFD Sender: To server: pG, [10:33:56]CommunicateWithHost lk.salyk.kg:30040 [10:33:56]ConnectInit lk.salyk.kg [10:33:56]written 0, free lines is 4095 [10:33:56]Connected sock=10 [10: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 34 36 39 32 A2 01 00 00 94 A3 9A 01 3C 9E 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 1D 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 68 01 00 35 04 06 00 EA 8D F0 55 62 60 CA 63 0F 6B DD 47 B9 94 [10:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 15 5B 47 00 B0 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 68 01 00 F4 03 04 00 9C BD E3 66 B6 04 01 00 00 D8 2B 41 4D 49 96 C2 B5 [10:33:56]CommunicateWithHost err = 0 [10:33:56]CheckOFDResponse [10:33:56]1017 (14) - 77093643461234 [10:33:56]1041 (16) - 0000000000874692 [10:33:56]1040 (4) - 92234 [10:33:56]1012 (4) - 13.09.2024 04:20 [10:33:56]1206 (1) - 0 [10:33:56]OFD Sender: Remove packet 92234 [10:33:56]ProducePacketName [10:33:56]name=ofd_packets/00092234 [10:33:56]NVStorageDeleteData [10:33:57]Write to MH i2c: 01 00 00 A7 61 08 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 07 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 07 00 A7 61 00 00 00 00 00 C7 0C E2 [10:33:57]RasterBufferAndPrint [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]written 0, free lines is 3277 [10:33:57]MH_Cut [10:33:57]Write to MH i2c: D1 01 00 AE 61 01 E1 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 01 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 01 00 AE 61 00 E0 [10:33:57]Write to MH i2c: 01 00 00 AF 61 10 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]OFD Sender: No OFD packet to send [10:33:57]*** Cut start [10:33:57]*** Purtial cut [10:33:57]*** Stage 1: CUTSNS_PIN = 1 [10:33:59]Read from MH i2c: 01 [10:33:59]MH_I2C_Read... [10:33:59]*** Stop cut motor [10:33:59]*** Cut end [10:33:59]Read from MH i2c: 01 07 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 07 00 AF 61 00 00 00 00 00 FF 0F 25 [10:33:59]process_action close_receipt done [10:33:59]requested_data is exist [10:33:59]produce_requested_data [10:33:59]requested_item fm.sn is exist - process it [10:33:59]wFMCommunicate request_size=4 [10:33:59]MH_SAM_APDU [10:33:59]CAPDU: 80 11 00 00 [10:33:59]Write to MH i2c: E2 08 00 B0 61 80 11 00 00 00 00 00 00 8B [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:59]Read from MH i2c: E2 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 17 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 17 00 B0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [10:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:33:59]wFMCommunicate OK [10:33:59]requested_item fd.num is exist - process it [10:33:59]SAM_PROTO_GetFieldsCounters [10:33:59]wFMCommunicate request_size=4 [10:33:59]MH_SAM_APDU [10:33:59]CAPDU: 80 13 00 00 [10:33:59]Write to MH i2c: E2 08 00 B1 61 80 13 00 00 00 00 00 00 8E [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 B1 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [10: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetFieldsCounters done [10:34:00]requested_item shift.num is exist - process it [10:34:00]requested_item shift.opened is exist - process it [10:34:00]req_shift_opened [10:34:00]FM_GetShiftState [10:34:00]SAM_PROTO_GetShiftState [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 01 00 [10:34:00]Write to MH i2c: E2 08 00 B2 61 80 13 01 00 00 00 00 00 90 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:00]Read from MH i2c: E2 0E 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0E 00 B2 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1C [10:34:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetShiftState done [10:34:00]FM_GetShiftState done [10:34:00]req_shift_opened done [10:34:00]requested_item shift.open_date is exist - process it [10:34:00]req_shift_open_date [10:34:00]req_shift_open_date done [10:34:00]produce_requested_data done [10:34:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92234,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:34:00]process_action_free close_receipt [10:34:00]json_value_free [10:34:00]json_value_free done [10:34:00]process_json_proto returns [10:34:00]Send response to host [10:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92234,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:34:00]free response buf [10:34:00]execute_script done [10:34:00]execute_script returns [10:34:00]free content buf [10:34:00]Sock 8.Close socket [10:34:00]Sock 8.Thread stoped [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:34:59]accept exits with 9 [10:34:59]New connection [10:34:59]New thread 3067399524 created [10:34:59]Thread 3067256164 joined [10:34:59]Waiting for new connection... [10:34:59] Sock 9.Parse request [10:34:59]Sock 9.Check first char [10:34:59]Sock 9.First char is OK [10:34:59]request: POST /json_proto HTTP/1.0 [10:34:59]Method: POST [10:34:59]URL: /json_proto [10:34:59]Method is POST - this is cgi request [10:34:59]url: /json_proto [10:34:59]query_string will be loaded in cgi processing [10:34:59]execute_cgi json_proto POST (null) [10:34:59]execute_cgi path=json_proto method=POST [10:34:59]POST find Content-Length [10:34:59]Host: 172.17.57.71:8080 [10:34:59]Content-Length: 626 [10:34:59]Content-Type: application/json [10:34:59] [10:34:59]POST finish read [10:34:59]Found Content-Length = 626 [10:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127170", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:59]execute_script... [10:34: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 : (3)127170", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:59]POST & json_proto [10:34:59]process_json_proto [10:34:59]json parsed OK: [10:34:59]protocol is kg_v1.0 [10:34:59]action value=close_receipt [10:34:59]process_action close_receipt [10:34:59]cmd_close_receipt [10:34:59]MH_GetDate [10:34:59]Write to MH i2c: F0 00 00 B3 61 03 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: F0 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: F0 09 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: F0 09 00 B3 61 00 5E 15 E4 66 33 3A A4 66 40 [10:34:59]GetLastDocTimeStamp 1726223645 [10:34:59]current date 1726223710 [10:34:59]FM_GetShiftState [10:34:59]SAM_PROTO_GetShiftState [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 01 00 [10:34:59]Write to MH i2c: E2 08 00 B4 61 80 13 01 00 00 00 00 00 92 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 B4 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1E [10:34:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetShiftState done [10:34:59]FM_GetShiftState done [10:34:59]opened in 1726186930 [10:34:59]opened+sec_in_day 1726273330 [10:34:59]quantity*price = 4000 [10:34:59]sum+1 = 4001 [10:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 43 13.09.2024 10:35 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92235 ФПД: 84140614522161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T103510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92235&fm=84140614522161&tin=02508201610067®Number=0000000000091423&sum=4000 0 [10:35:00]StoreToDocumentArchive [10:35:00]shift 505 fd 92235 [10:35:00]save to /storage/0505/doc_00092235 [10:35:00]save last doc name /storage/0505/doc_00092235 to /storage/kkm_last_doc_name [10:35:00]save OK [10:35:00]Clear old archive folders... [10:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:35:00]tlvbuf is 0159B230 [10:35:00]SAM_PROTO_ClearQueue [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 09 00 00 [10:35:00]Write to MH i2c: E2 08 00 C1 61 80 09 00 00 00 00 00 00 94 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 C1 61 00 90 00 96 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]SAM_PROTO_ClearQueue done [10:35:00]KKMCreateOFDPacket [10:35:00]OFDProtocolAddRootSTLVToBuf [10:35:00]FM_MakeSignedData [10:35:00]FM_MakeSignedData [10:35:00]SAM_PROTO_SignData [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 01 02 [10:35:00]Write to MH i2c: E2 08 00 C2 61 80 0D 01 02 00 00 00 00 9C [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 C2 61 00 90 00 97 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]wFMCommunicate request_size=255 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5E 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [10:35:00]Write to MH i2c: E2 02 01 C3 61 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5E 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 13 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 C3 61 00 90 00 98 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]wFMCommunicate request_size=28 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 4B 68 01 00 35 04 06 00 4C 86 83 70 95 31 [10:35:00]Write to MH i2c: E2 1F 00 C4 61 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 4B 68 01 00 35 04 06 00 4C 86 83 70 95 31 00 00 6F [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 C4 61 00 90 00 99 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 03 02 [10:35:00]Write to MH i2c: E2 08 00 C5 61 80 0D 03 02 00 00 00 00 A1 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0B 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0B 00 C5 61 00 90 9D 74 9C FE F7 87 6F 90 00 CA [10:35:00]RAPDU: 90 9D 74 9C FE F7 87 6F 90 00 [10:35:00]wFMCommunicate OK [10:35:00]SAM_PROTO_SignData done [10:35:00]FM_MakeSignedData done [10:35:00]CreateOFDProtocolMessage [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 11 00 00 [10:35:00]Write to MH i2c: E2 08 00 C6 61 80 11 00 00 00 00 00 00 A1 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 C6 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F8 [10:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:35:01]wFMCommunicate OK [10:35:01]CreateOFDProtocolMessage done [10:35:01]OFDSenderStorePacket 92235 [10:35:01]StoreOFDPacket docnum=92235 [10:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 87 90 19 01 D7 7C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5E 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 68 01 00 35 04 06 00 4C 86 83 70 95 31 90 9D 74 9C FE F7 87 6F [10:35:01]CheckFolder [10:35:01]dirname=/storage/ofd_packets [10:35:01]CheckFolder done [10:35:01]ProducePacketName [10:35:01]name=ofd_packets/00092235 [10:35:01]NVStorageSaveData ofd_packets/00092235 [10:35:01]File name is /storage/ofd_packets/00092235 [10:35:01]Write 319 bytes [10:35:01]NVStorageSaveData done [10:35:01]OFDSenderStorePacket done [10:35:01]KKMCreateOFDPacket done [10:35:01]NVStorageSaveData kkm_last_timestamp [10:35:01]File name is /storage/kkm_last_timestamp [10:35:01]Write 4 bytes [10:35:01]NVStorageSaveData done [10:35:01]ExternCall_PrintAddStr [10:35:01]wPrintStart [10:35:01]Write to MH i2c: 01 00 00 C7 61 28 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 C7 61 00 00 00 00 00 FF 0F 3D [10:35:01]RasterBufferAndPrint [10:35:01]line Счет N : (3)127170 [10:35:01]line ИНН: 02508201610067 [10:35:01]line Контрольно-Кассовый Чек [10:35:01]line ПРОДАЖА [10:35:01]line Товар: 4700000160198 [10:35:01]line Вода Байтик 0,5л [10:35:01]line 1.000 * 40.00 [10:35:01]line = 40.00 [10:35:01]line НДС 12% НСП 1% [10:35:01]line > о реализуемом товаре [10:35:01]line ИТОГО: 40.00 [10:35:01]line НСП 1% : 0.35 [10:35:01]line НДС 12% : 4.25 [10:35:01]line Наличными: 40.00 [10:35:01]line Безнал.: 0.00 [10:35:01]line Место: АЗС № 5 "Партнер Нефть" [10:35:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:35:01]line СНО: Общий режим [10:35:01]line Чек 43 13.09.2024 10:35 [10:35:01]line Смена: 505 ФФД: 1.0 [10:35:01]line ЗНМ: 03000000022 [10:35:01]line РНМ: 0000000000091423 [10:35:01]line Версия ККМ: 001 [10:35:01]line ФМ: 0000000000874692 [10:35:01]line ФД: 92235 [10:35:01]line ФПД: 84140614522161 [10:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T103510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92235&fm=84140614522161&tin=02508201610067®Number=0000000000091423&sum=4000 [10:35:01]line 0 [10:35:01]OFD Sender: Processing packet 92235 [packets to send 63, broken 62] [10:35:01]ProducePacketName [10:35:01]name=ofd_packets/00092235 [10:35:01]OFD Sender: To server: pG, [10:35:01]CommunicateWithHost lk.salyk.kg:30040 [10:35:01]ConnectInit lk.salyk.kg [10:35:01]written 0, free lines is 4095 [10:35:01]Connected sock=10 [10:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 87 90 19 01 D7 7C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5E 15 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 68 01 00 35 04 06 00 4C 86 83 70 95 31 90 9D 74 9C FE F7 87 6F [10:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D3 98 47 00 C7 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 34 36 39 32 10 04 04 00 4B 68 01 00 F4 03 04 00 DD BD E3 66 B6 04 01 00 00 4A E8 1B 1F 53 5F 9E CC [10:35:01]CommunicateWithHost err = 0 [10:35:01]CheckOFDResponse [10:35:01]1017 (14) - 77093643461234 [10:35:01]1041 (16) - 0000000000874692 [10:35:01]1040 (4) - 92235 [10:35:01]1012 (4) - 13.09.2024 04:21 [10:35:01]1206 (1) - 0 [10:35:01]OFD Sender: Remove packet 92235 [10:35:01]ProducePacketName [10:35:01]name=ofd_packets/00092235 [10:35:01]NVStorageDeleteData [10:35:01]Write to MH i2c: 01 00 00 EF 61 50 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 EF 61 00 00 00 00 00 0E 0D 72 [10:35:01]RasterBufferAndPrint [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]written 0, free lines is 3348 [10:35:01]MH_Cut [10:35:01]Write to MH i2c: D1 01 00 F6 61 01 29 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 01 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 01 00 F6 61 00 28 [10:35:01]Write to MH i2c: 01 00 00 F7 61 58 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:02]OFD Sender: No OFD packet to send [10:35:02]*** Cut start [10:35:02]*** Purtial cut [10:35:02]*** Stage 1: CUTSNS_PIN = 1 [10:35:04]Read from MH i2c: 01 [10:35:04]MH_I2C_Read... [10:35:04]*** Stop cut motor [10:35:04]*** Cut end [10:35:04]Read from MH i2c: 01 07 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: 01 07 00 F7 61 00 00 00 00 00 FF 0F 6D [10:35:04]process_action close_receipt done [10:35:04]requested_data is exist [10:35:04]produce_requested_data [10:35:04]requested_item fm.sn is exist - process it [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 11 00 00 [10:35:04]Write to MH i2c: E2 08 00 F8 61 80 11 00 00 00 00 00 00 D3 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 17 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 17 00 F8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2A [10:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:35:04]wFMCommunicate OK [10:35:04]requested_item fd.num is exist - process it [10:35:04]SAM_PROTO_GetFieldsCounters [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 13 00 00 [10:35:04]Write to MH i2c: E2 08 00 F9 61 80 13 00 00 00 00 00 00 D6 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 62 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 62 00 F9 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:04]wFMCommunicate OK [10:35:04]SAM_PROTO_GetFieldsCounters done [10:35:04]requested_item shift.num is exist - process it [10:35:04]requested_item shift.opened is exist - process it [10:35:04]req_shift_opened [10:35:04]FM_GetShiftState [10:35:04]SAM_PROTO_GetShiftState [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 13 01 00 [10:35:04]Write to MH i2c: E2 08 00 FA 61 80 13 01 00 00 00 00 00 D8 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 0E 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 0E 00 FA 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 64 [10:35:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:35:04]wFMCommunicate OK [10:35:04]SAM_PROTO_GetShiftState done [10:35:04]FM_GetShiftState done [10:35:04]req_shift_opened done [10:35:04]requested_item shift.open_date is exist - process it [10:35:04]req_shift_open_date [10:35:04]req_shift_open_date done [10:35:04]produce_requested_data done [10:35:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92235,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:35:04]process_action_free close_receipt [10:35:04]json_value_free [10:35:04]json_value_free done [10:35:04]process_json_proto returns [10:35:04]Send response to host [10:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92235,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:35:04]free response buf [10:35:04]execute_script done [10:35:04]execute_script returns [10:35:04]free content buf [10:35:04]Sock 9.Close socket [10:35:04]Sock 9.Thread stoped [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53: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:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:29]accept exits with 8 [10:58:29]New connection [10:58:29]New thread 3067256164 created [10:58:29]Thread 3067399524 joined [10:58:29]Waiting for new connection... [10:58:29] Sock 8.Parse request [10:58:29]Sock 8.Check first char [10:58:29]Sock 8.First char is OK [10:58:29]request: POST /json_proto HTTP/1.0 [10:58:29]Method: POST [10:58:29]URL: /json_proto [10:58:29]Method is POST - this is cgi request [10:58:29]url: /json_proto [10:58:29]query_string will be loaded in cgi processing [10:58:29]execute_cgi json_proto POST (null) [10:58:29]execute_cgi path=json_proto method=POST [10:58:29]POST find Content-Length [10:58:29]Host: 172.17.57.71:8080 [10:58:29]Content-Length: 654 [10:58:29]Content-Type: application/json [10:58:29] [10:58:29]POST finish read [10:58:29]Found Content-Length = 654 [10:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127171", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:29]execute_script... [10:58: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 : (3)127171", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:29]POST & json_proto [10:58:29]process_json_proto [10:58:29]json parsed OK: [10:58:29]protocol is kg_v1.0 [10:58:29]action value=close_receipt [10:58:29]process_action close_receipt [10:58:29]cmd_close_receipt [10:58:29]MH_GetDate [10:58:29]Write to MH i2c: F0 00 00 FB 61 4B [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 09 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: F0 09 00 FB 61 00 DF 1A E4 66 33 3A A4 66 0E [10:58:29]GetLastDocTimeStamp 1726223710 [10:58:29]current date 1726225119 [10:58:29]FM_GetShiftState [10:58:29]SAM_PROTO_GetShiftState [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 13 01 00 [10:58:29]Write to MH i2c: E2 08 00 FC 61 80 13 01 00 00 00 00 00 DA [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0E 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0E 00 FC 61 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 66 [10:58:29]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:58:29]wFMCommunicate OK [10:58:29]SAM_PROTO_GetShiftState done [10:58:29]FM_GetShiftState done [10:58:29]opened in 1726186930 [10:58:29]opened+sec_in_day 1726273330 [10:58:29]quantity*price = 7700 [10:58:29]sum+1 = 7701 [10:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 44 13.09.2024 10:58 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92236 ФПД: 255132565661359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T105840&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92236&fm=255132565661359&tin=02508201610067®Number=0000000000091423&sum=7700 0 [10:58:30]StoreToDocumentArchive [10:58:30]shift 505 fd 92236 [10:58:30]save to /storage/0505/doc_00092236 [10:58:30]save last doc name /storage/0505/doc_00092236 to /storage/kkm_last_doc_name [10:58:30]save OK [10:58:30]Clear old archive folders... [10:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:58:30]tlvbuf is 0159AD10 [10:58:30]SAM_PROTO_ClearQueue [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 09 00 00 [10:58:30]Write to MH i2c: E2 08 00 09 62 80 09 00 00 00 00 00 00 DD [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 09 62 00 90 00 DF [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]SAM_PROTO_ClearQueue done [10:58:30]KKMCreateOFDPacket [10:58:30]OFDProtocolAddRootSTLVToBuf [10:58:30]FM_MakeSignedData [10:58:30]FM_MakeSignedData [10:58:30]SAM_PROTO_SignData [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 01 02 [10:58:30]Write to MH i2c: E2 08 00 0A 62 80 0D 01 02 00 00 00 00 E5 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 0A 62 00 90 00 E0 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=255 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E0 1A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:58:30]Write to MH i2c: E2 02 01 0B 62 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E0 1A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E4 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 0B 62 00 90 00 E1 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=52 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 68 01 00 35 04 06 00 E8 0A AD F2 66 AF [10:58:30]Write to MH i2c: E2 37 00 0C 62 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 68 01 00 35 04 06 00 E8 0A AD F2 66 AF 00 00 04 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 03 00 0C 62 00 90 00 E2 [10:58:30]RAPDU: 90 00 [10:58:30]wFMCommunicate OK [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 0D 03 02 [10:58:30]Write to MH i2c: E2 08 00 0D 62 80 0D 03 02 00 00 00 00 EA [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 0B 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 0B 00 0D 62 00 DE F6 04 3F AE 08 6A 78 90 00 9A [10:58:30]RAPDU: DE F6 04 3F AE 08 6A 78 90 00 [10:58:30]wFMCommunicate OK [10:58:30]SAM_PROTO_SignData done [10:58:30]FM_MakeSignedData done [10:58:30]CreateOFDProtocolMessage [10:58:30]wFMCommunicate request_size=4 [10:58:30]MH_SAM_APDU [10:58:30]CAPDU: 80 11 00 00 [10:58:30]Write to MH i2c: E2 08 00 0E 62 80 11 00 00 00 00 00 00 EA [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:30]Read from MH i2c: E2 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 17 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: E2 17 00 0E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 41 [10:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:58:30]wFMCommunicate OK [10:58:30]CreateOFDProtocolMessage done [10:58:30]OFDSenderStorePacket 92236 [10:58:30]StoreOFDPacket docnum=92236 [10:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 D0 D5 31 01 48 A7 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E0 1A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 68 01 00 35 04 06 00 E8 0A AD F2 66 AF DE F6 04 3F AE 08 6A 78 [10:58:30]CheckFolder [10:58:30]dirname=/storage/ofd_packets [10:58:30]CheckFolder done [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00092236 [10:58:30]NVStorageSaveData ofd_packets/00092236 [10:58:30]File name is /storage/ofd_packets/00092236 [10:58:30]Write 343 bytes [10:58:30]NVStorageSaveData done [10:58:30]OFDSenderStorePacket done [10:58:30]KKMCreateOFDPacket done [10:58:30]NVStorageSaveData kkm_last_timestamp [10:58:30]File name is /storage/kkm_last_timestamp [10:58:30]Write 4 bytes [10:58:30]NVStorageSaveData done [10:58:30]ExternCall_PrintAddStr [10:58:30]wPrintStart [10:58:30]Write to MH i2c: 01 00 00 0F 62 71 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 0F 62 00 00 00 00 00 FF 0F 86 [10:58:30]RasterBufferAndPrint [10:58:30]line Счет N : (3)127171 [10:58:30]line ИНН: 02508201610067 [10:58:30]line Контрольно-Кассовый Чек [10:58:30]line ПРОДАЖА [10:58:30]line Товар: 4700000480050 [10:58:30]line Напиток Nitro Energy эн green ж/б 0,45л [10:58:30]line 1.000 * 77.00 [10:58:30]line = 77.00 [10:58:30]line НДС 12% НСП 1% [10:58:30]line > о реализуемом товаре [10:58:30]line ИТОГО: 77.00 [10:58:30]line НСП 1% : 0.68 [10:58:30]line НДС 12% : 8.18 [10:58:30]line Наличными: 77.00 [10:58:30]line Безнал.: 0.00 [10:58:30]line Место: АЗС № 5 "Партнер Нефть" [10:58:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:58:30]line СНО: Общий режим [10:58:30]line Чек 44 13.09.2024 10:58 [10:58:30]line Смена: 505 ФФД: 1.0 [10:58:30]line ЗНМ: 03000000022 [10:58:30]line РНМ: 0000000000091423 [10:58:30]line Версия ККМ: 001 [10:58:30]line ФМ: 0000000000874692 [10:58:30]line ФД: 92236 [10:58:30]line ФПД: 255132565661359 [10:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T105840&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92236&fm=255132565661359&tin=02508201610067®Number=0000000000091423&sum=7700 [10:58:31]OFD Sender: Processing packet 92236 [packets to send 63, broken 62] [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00092236 [10:58:31]OFD Sender: To server: pG, [10:58:31]CommunicateWithHost lk.salyk.kg:30040 [10:58:31]ConnectInit lk.salyk.kg [10:58:31]line 0 [10:58:31]written 0, free lines is 4095 [10:58:31]Connected sock=10 [10:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 D0 D5 31 01 48 A7 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E0 1A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 68 01 00 35 04 06 00 E8 0A AD F2 66 AF DE F6 04 3F AE 08 6A 78 [10:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2A 04 47 00 80 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 68 01 00 F4 03 04 00 5F C3 E3 66 B6 04 01 00 00 F9 90 F2 88 DA EB B9 E1 [10:58:31]CommunicateWithHost err = 0 [10:58:31]CheckOFDResponse [10:58:31]1017 (14) - 77093643461234 [10:58:31]1041 (16) - 0000000000874692 [10:58:31]1040 (4) - 92236 [10:58:31]1012 (4) - 13.09.2024 04:45 [10:58:31]1206 (1) - 0 [10:58:31]OFD Sender: Remove packet 92236 [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00092236 [10:58:31]NVStorageDeleteData [10:58:31]Write to MH i2c: 01 00 00 38 62 9A [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 38 62 00 00 00 00 00 12 0D C0 [10:58:31]RasterBufferAndPrint [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]line [10:58:31]written 0, free lines is 3353 [10:58:31]MH_Cut [10:58:31]Write to MH i2c: D1 01 00 3F 62 01 73 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: D1 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: D1 01 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: D1 01 00 3F 62 00 72 [10:58:31]Write to MH i2c: 01 00 00 40 62 A2 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:32]OFD Sender: No OFD packet to send [10:58:32]*** Cut start [10:58:32]*** Purtial cut [10:58:32]*** Stage 1: CUTSNS_PIN = 1 [10:58:34]Read from MH i2c: 01 [10:58:34]MH_I2C_Read... [10:58:34]*** Stop cut motor [10:58:34]*** Cut end [10:58:34]Read from MH i2c: 01 07 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: 01 07 00 40 62 00 00 00 00 00 FF 0F B7 [10:58:34]process_action close_receipt done [10:58:34]requested_data is exist [10:58:34]produce_requested_data [10:58:34]requested_item fm.sn is exist - process it [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 11 00 00 [10:58:34]Write to MH i2c: E2 08 00 41 62 80 11 00 00 00 00 00 00 1D [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 17 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 17 00 41 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 74 [10:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:58:34]wFMCommunicate OK [10:58:34]requested_item fd.num is exist - process it [10:58:34]SAM_PROTO_GetFieldsCounters [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 00 00 [10:58:34]Write to MH i2c: E2 08 00 42 62 80 13 00 00 00 00 00 00 20 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 62 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 62 00 42 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetFieldsCounters done [10:58:34]requested_item shift.num is exist - process it [10:58:34]requested_item shift.opened is exist - process it [10:58:34]req_shift_opened [10:58:34]FM_GetShiftState [10:58:34]SAM_PROTO_GetShiftState [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 01 00 [10:58:34]Write to MH i2c: E2 08 00 43 62 80 13 01 00 00 00 00 00 22 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 43 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AE [10:58:34]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetShiftState done [10:58:34]FM_GetShiftState done [10:58:34]req_shift_opened done [10:58:34]requested_item shift.open_date is exist - process it [10:58:34]req_shift_open_date [10:58:34]req_shift_open_date done [10:58:34]produce_requested_data done [10:58:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92236,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [10:58:34]process_action_free close_receipt [10:58:34]json_value_free [10:58:34]json_value_free done [10:58:34]process_json_proto returns [10:58:34]Send response to host [10:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92236,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [10:58:34]free response buf [10:58:34]execute_script done [10:58:34]execute_script returns [10:58:34]free content buf [10:58:34]Sock 8.Close socket [10:58:34]Sock 8.Thread stoped [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:14]accept exits with 9 [11:14:14]New connection [11:14:14]New thread 3067399524 created [11:14:14]Thread 3067256164 joined [11:14:14]Waiting for new connection... [11:14:14] Sock 9.Parse request [11:14:14]Sock 9.Check first char [11:14:14]Sock 9.First char is OK [11:14:14]request: POST /json_proto HTTP/1.0 [11:14:14]Method: POST [11:14:14]URL: /json_proto [11:14:14]Method is POST - this is cgi request [11:14:14]url: /json_proto [11:14:14]query_string will be loaded in cgi processing [11:14:14]execute_cgi json_proto POST (null) [11:14:14]execute_cgi path=json_proto method=POST [11:14:14]POST find Content-Length [11:14:14]Host: 172.17.57.71:8080 [11:14:14]Content-Length: 639 [11:14:14]Content-Type: application/json [11:14:14] [11:14:14]POST finish read [11:14:14]Found Content-Length = 639 [11:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127172", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:14]execute_script... [11:14: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 : (3)127172", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:14]POST & json_proto [11:14:14]process_json_proto [11:14:14]json parsed OK: [11:14:14]protocol is kg_v1.0 [11:14:14]action value=close_receipt [11:14:14]process_action close_receipt [11:14:14]cmd_close_receipt [11:14:14]MH_GetDate [11:14:14]Write to MH i2c: F0 00 00 44 62 95 [11:14:14]Write i2c OK [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: F0 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: F0 09 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: F0 09 00 44 62 00 91 1E E4 66 33 3A A4 66 0E [11:14:14]GetLastDocTimeStamp 1726225120 [11:14:14]current date 1726226065 [11:14:14]FM_GetShiftState [11:14:14]SAM_PROTO_GetShiftState [11:14:14]wFMCommunicate request_size=4 [11:14:14]MH_SAM_APDU [11:14:14]CAPDU: 80 13 01 00 [11:14:14]Write to MH i2c: E2 08 00 45 62 80 13 01 00 00 00 00 00 24 [11:14:14]Write i2c OK [11:14:14]MH_I2C_Read... [11:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:14]Read from MH i2c: E2 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 0E 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 0E 00 45 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B0 [11:14:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:14:14]wFMCommunicate OK [11:14:14]SAM_PROTO_GetShiftState done [11:14:14]FM_GetShiftState done [11:14:14]opened in 1726186930 [11:14:14]opened+sec_in_day 1726273330 [11:14:14]quantity*price = 10500 [11:14:14]sum+1 = 10501 [11:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 45 13.09.2024 11:14 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92237 ФПД: 86045600060089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T111425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92237&fm=86045600060089&tin=02508201610067®Number=0000000000091423&sum=10500 0 [11:14:15]StoreToDocumentArchive [11:14:15]shift 505 fd 92237 [11:14:15]save to /storage/0505/doc_00092237 [11:14:15]save last doc name /storage/0505/doc_00092237 to /storage/kkm_last_doc_name [11:14:15]save OK [11:14:15]Clear old archive folders... [11:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:14:15]tlvbuf is 01783B60 [11:14:15]SAM_PROTO_ClearQueue [11:14:15]wFMCommunicate request_size=4 [11:14:15]MH_SAM_APDU [11:14:15]CAPDU: 80 09 00 00 [11:14:15]Write to MH i2c: E2 08 00 52 62 80 09 00 00 00 00 00 00 26 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:15]Read from MH i2c: E2 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 52 62 00 90 00 28 [11:14:15]RAPDU: 90 00 [11:14:15]wFMCommunicate OK [11:14:15]SAM_PROTO_ClearQueue done [11:14:15]KKMCreateOFDPacket [11:14:15]OFDProtocolAddRootSTLVToBuf [11:14:15]FM_MakeSignedData [11:14:15]FM_MakeSignedData [11:14:15]SAM_PROTO_SignData [11:14:15]wFMCommunicate request_size=4 [11:14:15]MH_SAM_APDU [11:14:15]CAPDU: 80 0D 01 02 [11:14:15]Write to MH i2c: E2 08 00 53 62 80 0D 01 02 00 00 00 00 2E [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:15]Read from MH i2c: E2 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 53 62 00 90 00 29 [11:14:15]RAPDU: 90 00 [11:14:15]wFMCommunicate OK [11:14:15]wFMCommunicate request_size=255 [11:14:15]MH_SAM_APDU [11:14:15]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:14:15]Write to MH i2c: E2 02 01 54 62 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0A [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:15]Read from MH i2c: E2 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 03 00 54 62 00 90 00 2A [11:14:15]RAPDU: 90 00 [11:14:15]wFMCommunicate OK [11:14:15]wFMCommunicate request_size=30 [11:14:15]MH_SAM_APDU [11:14:15]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 4D 68 01 00 35 04 06 00 4E 42 0D 6D 12 B9 [11:14:15]Write to MH i2c: E2 21 00 55 62 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 4D 68 01 00 35 04 06 00 4E 42 0D 6D 12 B9 00 00 B9 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:16]Read from MH i2c: E2 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 03 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 03 00 55 62 00 90 00 2B [11:14:16]RAPDU: 90 00 [11:14:16]wFMCommunicate OK [11:14:16]wFMCommunicate request_size=4 [11:14:16]MH_SAM_APDU [11:14:16]CAPDU: 80 0D 03 02 [11:14:16]Write to MH i2c: E2 08 00 56 62 80 0D 03 02 00 00 00 00 33 [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:16]Read from MH i2c: E2 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 0B 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 0B 00 56 62 00 01 F4 F3 9B 37 99 B2 64 90 00 9D [11:14:16]RAPDU: 01 F4 F3 9B 37 99 B2 64 90 00 [11:14:16]wFMCommunicate OK [11:14:16]SAM_PROTO_SignData done [11:14:16]FM_MakeSignedData done [11:14:16]CreateOFDProtocolMessage [11:14:16]wFMCommunicate request_size=4 [11:14:16]MH_SAM_APDU [11:14:16]CAPDU: 80 11 00 00 [11:14:16]Write to MH i2c: E2 08 00 57 62 80 11 00 00 00 00 00 00 33 [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:16]Read from MH i2c: E2 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 17 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: E2 17 00 57 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8A [11:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:16]wFMCommunicate OK [11:14:16]CreateOFDProtocolMessage done [11:14:16]OFDSenderStorePacket 92237 [11:14:16]StoreOFDPacket docnum=92237 [11:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 64 72 1B 01 E9 1C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 68 01 00 35 04 06 00 4E 42 0D 6D 12 B9 01 F4 F3 9B 37 99 B2 64 [11:14:16]CheckFolder [11:14:16]dirname=/storage/ofd_packets [11:14:16]CheckFolder done [11:14:16]ProducePacketName [11:14:16]name=ofd_packets/00092237 [11:14:16]NVStorageSaveData ofd_packets/00092237 [11:14:16]File name is /storage/ofd_packets/00092237 [11:14:16]Write 321 bytes [11:14:16]NVStorageSaveData done [11:14:16]OFDSenderStorePacket done [11:14:16]KKMCreateOFDPacket done [11:14:16]NVStorageSaveData kkm_last_timestamp [11:14:16]File name is /storage/kkm_last_timestamp [11:14:16]Write 4 bytes [11:14:16]NVStorageSaveData done [11:14:16]ExternCall_PrintAddStr [11:14:16]wPrintStart [11:14:16]Write to MH i2c: 01 00 00 58 62 BA [11:14:16]OFD Sender: Processing packet 92237 [packets to send 63, broken 62] [11:14:16]ProducePacketName [11:14:16]name=ofd_packets/00092237 [11:14:16]OFD Sender: To server: pG, [11:14:16]CommunicateWithHost lk.salyk.kg:30040 [11:14:16]ConnectInit lk.salyk.kg [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 07 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 07 00 58 62 00 00 00 00 00 FF 0F CF [11:14:16]RasterBufferAndPrint [11:14:16]line Счет N : (3)127172 [11:14:16]line ИНН: 02508201610067 [11:14:16]line Контрольно-Кассовый Чек [11:14:16]line ПРОДАЖА [11:14:16]line Товар: 5449000006271 [11:14:16]line Напиток Фанта 1л [11:14:16]line 1.000 * 105.00 [11:14:16]line = 105.00 [11:14:16]line НДС 12% НСП 1% [11:14:16]line > о реализуемом товаре [11:14:16]line ИТОГО: 105.00 [11:14:16]line НСП 1% : 0.93 [11:14:16]line НДС 12% : 11.15 [11:14:16]line Наличными: 105.00 [11:14:16]line Безнал.: 0.00 [11:14:16]line Место: АЗС № 5 "Партнер Нефть" [11:14:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:14:16]line СНО: Общий режим [11:14:16]line Чек 45 13.09.2024 11:14 [11:14:16]line Смена: 505 ФФД: 1.0 [11:14:16]line ЗНМ: 03000000022 [11:14:16]line РНМ: 0000000000091423 [11:14:16]line Версия ККМ: 001 [11:14:16]line ФМ: 0000000000874692 [11:14:16]line ФД: 92237 [11:14:16]line ФПД: 86045600060089 [11:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T111425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92237&fm=86045600060089&tin=02508201610067®Number=0000000000091423&sum=10500 [11:14:16]Connected sock=10 [11:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 64 72 1B 01 E9 1C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 68 01 00 35 04 06 00 4E 42 0D 6D 12 B9 01 F4 F3 9B 37 99 B2 64 [11:14:16]line 0 [11:14:16]written 0, free lines is 4095 [11:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4C C2 47 00 2D 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 34 36 39 32 10 04 04 00 4D 68 01 00 F4 03 04 00 10 C7 E3 66 B6 04 01 00 00 31 9F 40 34 CB 45 16 4F [11:14:16]CommunicateWithHost err = 0 [11:14:16]CheckOFDResponse [11:14:16]1017 (14) - 77093643461234 [11:14:16]1041 (16) - 0000000000874692 [11:14:16]1040 (4) - 92237 [11:14:16]1012 (4) - 13.09.2024 05:01 [11:14:16]1206 (1) - 0 [11:14:16]OFD Sender: Remove packet 92237 [11:14:16]ProducePacketName [11:14:16]name=ofd_packets/00092237 [11:14:16]NVStorageDeleteData [11:14:16]Write to MH i2c: 01 00 00 80 62 E2 [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 07 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: 01 07 00 80 62 00 00 00 00 00 12 0D 08 [11:14:16]RasterBufferAndPrint [11:14:16]line [11:14:16]line [11:14:16]line [11:14:16]line [11:14:16]line [11:14:16]written 0, free lines is 3353 [11:14:16]MH_Cut [11:14:16]Write to MH i2c: D1 01 00 87 62 01 BB [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: D1 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: D1 01 00 [11:14:16]MH_I2C_Read... [11:14:16]Read from MH i2c: D1 01 00 87 62 00 BA [11:14:16]Write to MH i2c: 01 00 00 88 62 EA [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:17]OFD Sender: No OFD packet to send [11:14:17]*** Cut start [11:14:17]*** Purtial cut [11:14:17]*** Stage 1: CUTSNS_PIN = 1 [11:14:19]Read from MH i2c: 01 [11:14:19]MH_I2C_Read... [11:14:19]*** Stop cut motor [11:14:19]*** Cut end [11:14:19]Read from MH i2c: 01 07 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: 01 07 00 88 62 00 00 00 00 00 FF 0F FF [11:14:19]process_action close_receipt done [11:14:19]requested_data is exist [11:14:19]produce_requested_data [11:14:19]requested_item fm.sn is exist - process it [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 11 00 00 [11:14:19]Write to MH i2c: E2 08 00 89 62 80 11 00 00 00 00 00 00 65 [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 17 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 17 00 89 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BC [11:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:19]wFMCommunicate OK [11:14:19]requested_item fd.num is exist - process it [11:14:19]SAM_PROTO_GetFieldsCounters [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 13 00 00 [11:14:19]Write to MH i2c: E2 08 00 8A 62 80 13 00 00 00 00 00 00 68 [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 62 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 62 00 8A 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:19]wFMCommunicate OK [11:14:19]SAM_PROTO_GetFieldsCounters done [11:14:19]requested_item shift.num is exist - process it [11:14:19]requested_item shift.opened is exist - process it [11:14:19]req_shift_opened [11:14:19]FM_GetShiftState [11:14:19]SAM_PROTO_GetShiftState [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 13 01 00 [11:14:19]Write to MH i2c: E2 08 00 8B 62 80 13 01 00 00 00 00 00 6A [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 0E 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 0E 00 8B 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F6 [11:14:19]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:14:19]wFMCommunicate OK [11:14:19]SAM_PROTO_GetShiftState done [11:14:19]FM_GetShiftState done [11:14:19]req_shift_opened done [11:14:19]requested_item shift.open_date is exist - process it [11:14:19]req_shift_open_date [11:14:19]req_shift_open_date done [11:14:19]produce_requested_data done [11:14:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92237,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:14:19]process_action_free close_receipt [11:14:19]json_value_free [11:14:19]json_value_free done [11:14:19]process_json_proto returns [11:14:19]Send response to host [11:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92237,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:14:19]free response buf [11:14:19]execute_script done [11:14:19]execute_script returns [11:14:19]free content buf [11:14:19]Sock 9.Close socket [11:14:19]Sock 9.Thread stoped [11:14:20]accept exits with 8 [11:14:20]New connection [11:14:20]New thread 3067256164 created [11:14:20]Thread 3067399524 joined [11:14:20]Waiting for new connection... [11:14:20] Sock 8.Parse request [11:14:20]Sock 8.Check first char [11:14:20]Sock 8.First char is OK [11:14:20]request: POST /json_proto HTTP/1.0 [11:14:20]Method: POST [11:14:20]URL: /json_proto [11:14:20]Method is POST - this is cgi request [11:14:20]url: /json_proto [11:14:20]query_string will be loaded in cgi processing [11:14:20]execute_cgi json_proto POST (null) [11:14:20]execute_cgi path=json_proto method=POST [11:14:20]POST find Content-Length [11:14:20]Host: 172.17.57.71:8080 [11:14:20]Content-Length: 682 [11:14:20]Content-Type: application/json [11:14:20] [11:14:20]POST finish read [11:14:20]Found Content-Length = 682 [11:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:20]execute_script... [11:14: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)646742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:20]POST & json_proto [11:14:20]process_json_proto [11:14:20]json parsed OK: [11:14:20]protocol is kg_v1.0 [11:14:20]action value=close_receipt [11:14:20]process_action close_receipt [11:14:20]cmd_close_receipt [11:14:20]MH_GetDate [11:14:20]Write to MH i2c: F0 00 00 8C 62 DD [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: F0 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: F0 09 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: F0 09 00 8C 62 00 97 1E E4 66 33 3A A4 66 5C [11:14:20]GetLastDocTimeStamp 1726226065 [11:14:20]current date 1726226071 [11:14:20]FM_GetShiftState [11:14:20]SAM_PROTO_GetShiftState [11:14:20]wFMCommunicate request_size=4 [11:14:20]MH_SAM_APDU [11:14:20]CAPDU: 80 13 01 00 [11:14:20]Write to MH i2c: E2 08 00 8D 62 80 13 01 00 00 00 00 00 6C [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 0E 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 0E 00 8D 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F8 [11:14:20]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:14:20]wFMCommunicate OK [11:14:20]SAM_PROTO_GetShiftState done [11:14:20]FM_GetShiftState done [11:14:20]opened in 1726186930 [11:14:20]opened+sec_in_day 1726273330 [11:14:20]quantity*price = 100060 [11:14:20]sum+1 = 100062 [11:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 46 13.09.2024 11:14 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92238 ФПД: 83606850807452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T111431&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92238&fm=83606850807452&tin=02508201610067®Number=0000000000091423&sum=100000 [11:14:21]StoreToDocumentArchive [11:14:21]shift 505 fd 92238 [11:14:21]save to /storage/0505/doc_00092238 [11:14:21]save last doc name /storage/0505/doc_00092238 to /storage/kkm_last_doc_name [11:14:21]save OK [11:14:21]Clear old archive folders... [11:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:21]tlvbuf is 0165E220 [11:14:21]SAM_PROTO_ClearQueue [11:14:21]wFMCommunicate request_size=4 [11:14:21]MH_SAM_APDU [11:14:21]CAPDU: 80 09 00 00 [11:14:21]Write to MH i2c: E2 08 00 9A 62 80 09 00 00 00 00 00 00 6E [11:14:21]Write i2c OK [11:14:21]MH_I2C_Read... [11:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:21]Read from MH i2c: E2 [11:14:21]MH_I2C_Read... [11:14:21]Read from MH i2c: E2 03 00 [11:14:21]MH_I2C_Read... [11:14:21]Read from MH i2c: E2 03 00 9A 62 00 90 00 70 [11:14:21]RAPDU: 90 00 [11:14:21]wFMCommunicate OK [11:14:21]SAM_PROTO_ClearQueue done [11:14:21]KKMCreateOFDPacket [11:14:21]OFDProtocolAddRootSTLVToBuf [11:14:21]FM_MakeSignedData [11:14:21]FM_MakeSignedData [11:14:21]SAM_PROTO_SignData [11:14:21]wFMCommunicate request_size=4 [11:14:21]MH_SAM_APDU [11:14:21]CAPDU: 80 0D 01 02 [11:14:21]Write to MH i2c: E2 08 00 9B 62 80 0D 01 02 00 00 00 00 76 [11:14:21]Write i2c OK [11:14:21]MH_I2C_Read... [11:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:21]Read from MH i2c: E2 [11:14:21]MH_I2C_Read... [11:14:21]Read from MH i2c: E2 03 00 [11:14:21]MH_I2C_Read... [11:14:21]Read from MH i2c: E2 03 00 9B 62 00 90 00 71 [11:14:21]RAPDU: 90 00 [11:14:21]wFMCommunicate OK [11:14:21]wFMCommunicate request_size=255 [11:14:21]MH_SAM_APDU [11:14: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 97 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 68 01 00 35 04 06 00 4C [11:14:21]Write to MH i2c: E2 02 01 9C 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 97 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 68 01 00 35 04 06 00 4C 00 00 93 [11:14:21]Write i2c OK [11:14:21]MH_I2C_Read... [11:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:22]Read from MH i2c: E2 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 03 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 03 00 9C 62 00 90 00 72 [11:14:22]RAPDU: 90 00 [11:14:22]wFMCommunicate OK [11:14:22]wFMCommunicate request_size=10 [11:14:22]MH_SAM_APDU [11:14:22]CAPDU: 80 0D 02 02 05 0A 3C A4 A6 9C [11:14:22]Write to MH i2c: E2 0D 00 9D 62 80 0D 02 02 05 00 0A 3C A4 A6 9C 00 00 AF [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]OFD Sender: No OFD packet to send [11:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:22]Read from MH i2c: E2 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 03 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 03 00 9D 62 00 90 00 73 [11:14:22]RAPDU: 90 00 [11:14:22]wFMCommunicate OK [11:14:22]wFMCommunicate request_size=4 [11:14:22]MH_SAM_APDU [11:14:22]CAPDU: 80 0D 03 02 [11:14:22]Write to MH i2c: E2 08 00 9E 62 80 0D 03 02 00 00 00 00 7B [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:22]Read from MH i2c: E2 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 0B 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 0B 00 9E 62 00 A7 00 96 06 1F 5A DD 42 90 00 57 [11:14:22]RAPDU: A7 00 96 06 1F 5A DD 42 90 00 [11:14:22]wFMCommunicate OK [11:14:22]SAM_PROTO_SignData done [11:14:22]FM_MakeSignedData done [11:14:22]CreateOFDProtocolMessage [11:14:22]wFMCommunicate request_size=4 [11:14:22]MH_SAM_APDU [11:14:22]CAPDU: 80 11 00 00 [11:14:22]Write to MH i2c: E2 08 00 9F 62 80 11 00 00 00 00 00 00 7B [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:22]Read from MH i2c: E2 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 17 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 17 00 9F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D2 [11:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:22]wFMCommunicate OK [11:14:22]CreateOFDProtocolMessage done [11:14:22]OFDSenderStorePacket 92238 [11:14:22]StoreOFDPacket docnum=92238 [11:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 E5 0B 07 01 9B 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 97 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 68 01 00 35 04 06 00 4C 0A 3C A4 A6 9C A7 00 96 06 1F 5A DD 42 [11:14:22]CheckFolder [11:14:22]dirname=/storage/ofd_packets [11:14:22]CheckFolder done [11:14:22]ProducePacketName [11:14:22]name=ofd_packets/00092238 [11:14:22]NVStorageSaveData ofd_packets/00092238 [11:14:22]File name is /storage/ofd_packets/00092238 [11:14:22]Write 301 bytes [11:14:22]NVStorageSaveData done [11:14:22]OFDSenderStorePacket done [11:14:22]KKMCreateOFDPacket done [11:14:22]NVStorageSaveData kkm_last_timestamp [11:14:22]File name is /storage/kkm_last_timestamp [11:14:22]Write 4 bytes [11:14:22]NVStorageSaveData done [11:14:22]ExternCall_PrintAddStr [11:14:22]wPrintStart [11:14:22]Write to MH i2c: 01 00 00 A0 62 02 [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 07 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 07 00 A0 62 00 00 00 00 00 FF 0F 17 [11:14:22]RasterBufferAndPrint [11:14:22]line Счет N : (1)646742 [11:14:22]line ИНН: 02508201610067 [11:14:22]line Контрольно-Кассовый Чек [11:14:22]line ПРОДАЖА [11:14:22]line ТРК (МРК, ГНК) : 22 [11:14:22]line Товар: 2710124500 [11:14:22]line Аи-95-К-5 [11:14:22]line 13.540 * 73.90 [11:14:22]line = 1000.61 [11:14:22]line НДС 12% НСП 1% [11:14:22]line > о реализуемом товаре [11:14:22]line ОКРУГЛЕНИЕ: -0.61 [11:14:22]line ИТОГО: 1000.00 [11:14:22]line Внесено: 1000.00 [11:14:22]line СДАЧА: 0.00 [11:14:22]line НСП 1% : 8.85 [11:14:22]line НДС 12% : 106.26 [11:14:22]line Наличными: 1000.00 [11:14:22]line Безнал.: 0.00 [11:14:22]line Место: АЗС № 5 "Партнер Нефть" [11:14:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:14:22]line СНО: Общий режим [11:14:22]line Чек 46 13.09.2024 11:14 [11:14:22]line Смена: 505 ФФД: 1.0 [11:14:22]line ЗНМ: 03000000022 [11:14:22]line РНМ: 0000000000091423 [11:14:22]line Версия ККМ: 001 [11:14:22]line ФМ: 0000000000874692 [11:14:22]line ФД: 92238 [11:14:22]line ФПД: 83606850807452 [11:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T111431&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92238&fm=83606850807452&tin=02508201610067®Number=0000000000091423&sum=100000 [11:14:22]written 0, free lines is 4095 [11:14:22]OFD Sender: Processing packet 92238 [packets to send 63, broken 62] [11:14:22]ProducePacketName [11:14:22]name=ofd_packets/00092238 [11:14:22]OFD Sender: To server: pG, [11:14:22]CommunicateWithHost lk.salyk.kg:30040 [11:14:22]ConnectInit lk.salyk.kg [11:14:22]Connected sock=10 [11:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 E5 0B 07 01 9B 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 97 1E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 68 01 00 35 04 06 00 4C 0A 3C A4 A6 9C A7 00 96 06 1F 5A DD 42 [11:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2F 83 47 00 B1 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 34 36 39 32 10 04 04 00 4E 68 01 00 F4 03 04 00 16 C7 E3 66 B6 04 01 00 00 16 CB E1 EA D4 12 DB B0 [11:14:22]CommunicateWithHost err = 0 [11:14:22]CheckOFDResponse [11:14:22]1017 (14) - 77093643461234 [11:14:22]1041 (16) - 0000000000874692 [11:14:22]1040 (4) - 92238 [11:14:22]1012 (4) - 13.09.2024 05:01 [11:14:22]1206 (1) - 0 [11:14:22]OFD Sender: Remove packet 92238 [11:14:22]ProducePacketName [11:14:22]name=ofd_packets/00092238 [11:14:22]NVStorageDeleteData [11:14:22]Write to MH i2c: 01 00 00 CB 62 2D [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 07 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: 01 07 00 CB 62 00 00 00 00 00 02 0D 43 [11:14:22]RasterBufferAndPrint [11:14:22]line [11:14:22]line [11:14:22]line [11:14:22]line [11:14:22]line [11:14:22]written 0, free lines is 3339 [11:14:22]MH_Cut [11:14:22]Write to MH i2c: D1 01 00 D2 62 01 06 [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: D1 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: D1 01 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: D1 01 00 D2 62 00 05 [11:14:22]Write to MH i2c: 01 00 00 D3 62 35 [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:23]OFD Sender: No OFD packet to send [11:14:23]*** Cut start [11:14:23]*** Purtial cut [11:14:23]*** Stage 1: CUTSNS_PIN = 1 [11:14:25]Read from MH i2c: 01 [11:14:25]MH_I2C_Read... [11:14:25]*** Stop cut motor [11:14:25]*** Cut end [11:14:25]Read from MH i2c: 01 07 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 07 00 D3 62 00 00 00 00 00 FF 0F 4A [11:14:25]process_action close_receipt done [11:14:25]requested_data is exist [11:14:25]produce_requested_data [11:14:25]requested_item fm.sn is exist - process it [11:14:25]wFMCommunicate request_size=4 [11:14:25]MH_SAM_APDU [11:14:25]CAPDU: 80 11 00 00 [11:14:25]Write to MH i2c: E2 08 00 D4 62 80 11 00 00 00 00 00 00 B0 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:25]Read from MH i2c: E2 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 17 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 17 00 D4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 07 [11:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:25]wFMCommunicate OK [11:14:25]requested_item fd.num is exist - process it [11:14:25]SAM_PROTO_GetFieldsCounters [11:14:25]wFMCommunicate request_size=4 [11:14:25]MH_SAM_APDU [11:14:25]CAPDU: 80 13 00 00 [11:14:25]Write to MH i2c: E2 08 00 D5 62 80 13 00 00 00 00 00 00 B3 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:25]Read from MH i2c: E2 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 62 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 62 00 D5 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:25]wFMCommunicate OK [11:14:25]SAM_PROTO_GetFieldsCounters done [11:14:25]requested_item shift.num is exist - process it [11:14:25]requested_item shift.opened is exist - process it [11:14:25]req_shift_opened [11:14:25]FM_GetShiftState [11:14:25]SAM_PROTO_GetShiftState [11:14:25]wFMCommunicate request_size=4 [11:14:25]MH_SAM_APDU [11:14:25]CAPDU: 80 13 01 00 [11:14:25]Write to MH i2c: E2 08 00 D6 62 80 13 01 00 00 00 00 00 B5 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:25]Read from MH i2c: E2 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 0E 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: E2 0E 00 D6 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 41 [11:14:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:14:25]wFMCommunicate OK [11:14:25]SAM_PROTO_GetShiftState done [11:14:25]FM_GetShiftState done [11:14:25]req_shift_opened done [11:14:25]requested_item shift.open_date is exist - process it [11:14:25]req_shift_open_date [11:14:25]req_shift_open_date done [11:14:25]produce_requested_data done [11:14:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92238,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:14:25]process_action_free close_receipt [11:14:25]json_value_free [11:14:25]json_value_free done [11:14:25]process_json_proto returns [11:14:25]Send response to host [11:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92238,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:14:25]free response buf [11:14:25]execute_script done [11:14:25]execute_script returns [11:14:25]free content buf [11:14:25]Sock 8.Close socket [11:14:25]Sock 8.Thread stoped [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:21]accept exits with 9 [11:20:21]New connection [11:20:21]New thread 3067399524 created [11:20:21]Thread 3067256164 joined [11:20:21]Waiting for new connection... [11:20:21] Sock 9.Parse request [11:20:21]Sock 9.Check first char [11:20:21]Sock 9.First char is OK [11:20:21]request: POST /json_proto HTTP/1.0 [11:20:21]Method: POST [11:20:21]URL: /json_proto [11:20:21]Method is POST - this is cgi request [11:20:21]url: /json_proto [11:20:21]query_string will be loaded in cgi processing [11:20:21]execute_cgi json_proto POST (null) [11:20:21]execute_cgi path=json_proto method=POST [11:20:21]POST find Content-Length [11:20:21]Host: 172.17.57.71:8080 [11:20:21]Content-Length: 808 [11:20:21]Content-Type: application/json [11:20:21] [11:20:21]POST finish read [11:20:21]Found Content-Length = 808 [11:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:21]execute_script... [11:20: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)646744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:21]POST & json_proto [11:20:21]process_json_proto [11:20:21]json parsed OK: [11:20:21]protocol is kg_v1.0 [11:20:21]action value=close_receipt [11:20:21]process_action close_receipt [11:20:21]cmd_close_receipt [11:20:21]MH_GetDate [11:20:21]Write to MH i2c: F0 00 00 D7 62 28 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 09 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 09 00 D7 62 00 00 20 E4 66 33 3A A4 66 12 [11:20:21]GetLastDocTimeStamp 1726226071 [11:20:21]current date 1726226432 [11:20:21]FM_GetShiftState [11:20:21]SAM_PROTO_GetShiftState [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 13 01 00 [11:20:21]Write to MH i2c: E2 08 00 D8 62 80 13 01 00 00 00 00 00 B7 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 D8 62 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 43 [11:20:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:20:21]wFMCommunicate OK [11:20:21]SAM_PROTO_GetShiftState done [11:20:21]FM_GetShiftState done [11:20:21]opened in 1726186930 [11:20:21]opened+sec_in_day 1726273330 [11:20:21]quantity*price = 150056 [11:20:21]sum+1 = 150058 [11:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 47 13.09.2024 11:20 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92239 ФПД: 112897075948609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92239&fm=112897075948609&tin=02508201610067®Number=0000000000091423&sum=150057 [11:20:22]StoreToDocumentArchive [11:20:22]shift 505 fd 92239 [11:20:22]save to /storage/0505/doc_00092239 [11:20:22]save last doc name /storage/0505/doc_00092239 to /storage/kkm_last_doc_name [11:20:22]save OK [11:20:22]Clear old archive folders... [11:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:22]tlvbuf is 017656F0 [11:20:22]SAM_PROTO_ClearQueue [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 09 00 00 [11:20:22]Write to MH i2c: E2 08 00 E5 62 80 09 00 00 00 00 00 00 B9 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 E5 62 00 90 00 BB [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_ClearQueue done [11:20:22]KKMCreateOFDPacket [11:20:22]OFDProtocolAddRootSTLVToBuf [11:20:22]FM_MakeSignedData [11:20:22]FM_MakeSignedData [11:20:22]SAM_PROTO_SignData [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 0D 01 02 [11:20:22]Write to MH i2c: E2 08 00 E6 62 80 0D 01 02 00 00 00 00 C1 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 E6 62 00 90 00 BC [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]wFMCommunicate request_size=255 [11:20:22]MH_SAM_APDU [11:20: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 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 2F 00 00 00 F4 03 04 00 00 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 68 01 00 35 04 06 00 66 [11:20:22]Write to MH i2c: E2 02 01 E7 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 00 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 68 01 00 35 04 06 00 66 00 00 BC [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 E7 62 00 90 00 BD [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]wFMCommunicate request_size=10 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 0D 02 02 05 AD E6 1B AC 41 [11:20:22]Write to MH i2c: E2 0D 00 E8 62 80 0D 02 02 05 00 AD E6 1B AC 41 00 00 69 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 E8 62 00 90 00 BE [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 0D 03 02 [11:20:22]Write to MH i2c: E2 08 00 E9 62 80 0D 03 02 00 00 00 00 C6 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0B 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0B 00 E9 62 00 2E C2 41 85 EC 79 07 11 90 00 FA [11:20:22]RAPDU: 2E C2 41 85 EC 79 07 11 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_SignData done [11:20:22]FM_MakeSignedData done [11:20:22]CreateOFDProtocolMessage [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 11 00 00 [11:20:22]Write to MH i2c: E2 08 00 EA 62 80 11 00 00 00 00 00 00 C6 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 EA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [11:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:20:22]wFMCommunicate OK [11:20:22]CreateOFDProtocolMessage done [11:20:22]OFDSenderStorePacket 92239 [11:20:22]StoreOFDPacket docnum=92239 [11:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 52 D0 07 01 13 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 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 2F 00 00 00 F4 03 04 00 00 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 68 01 00 35 04 06 00 66 AD E6 1B AC 41 2E C2 41 85 EC 79 07 11 [11:20:22]CheckFolder [11:20:22]dirname=/storage/ofd_packets [11:20:22]CheckFolder done [11:20:22]ProducePacketName [11:20:22]name=ofd_packets/00092239 [11:20:22]NVStorageSaveData ofd_packets/00092239 [11:20:22]File name is /storage/ofd_packets/00092239 [11:20:22]Write 301 bytes [11:20:22]NVStorageSaveData done [11:20:22]OFDSenderStorePacket done [11:20:22]KKMCreateOFDPacket done [11:20:22]NVStorageSaveData kkm_last_timestamp [11:20:22]File name is /storage/kkm_last_timestamp [11:20:22]Write 4 bytes [11:20:22]NVStorageSaveData done [11:20:22]ExternCall_PrintAddStr [11:20:22]wPrintStart [11:20:22]Write to MH i2c: 01 00 00 EB 62 4D [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 EB 62 00 00 00 00 00 FF 0F 62 [11:20:22]RasterBufferAndPrint [11:20:22]line Счет N : (1)646744 [11:20:22]line ИНН: 02508201610067 [11:20:22]line Контрольно-Кассовый Чек [11:20:22]line ПРОДАЖА [11:20:22]line ТРК (МРК, ГНК) : 13 [11:20:22]line Товар: 2710124130 [11:20:22]line Аи-92-К-5 [11:20:22]line 22.430 * 66.90 [11:20:22]line = 1500.57 [11:20:22]line НДС 12% НСП 1% [11:20:22]line > о реализуемом товаре [11:20:22]line ИТОГО: 1500.57 [11:20:22]line НСП 1% : 13.28 [11:20:22]line НДС 12% : 159.35 [11:20:22]line Наличными: 0.00 [11:20:22]line Безнал.: 1500.57 [11:20:22]line Место: АЗС № 5 "Партнер Нефть" [11:20:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:20:22]line СНО: Общий режим [11:20:22]line Чек 47 13.09.2024 11:20 [11:20:22]line Смена: 505 ФФД: 1.0 [11:20:22]line ЗНМ: 03000000022 [11:20:22]line РНМ: 0000000000091423 [11:20:22]line Версия ККМ: 001 [11:20:22]line Платежная система: О! деньги [11:20:22]line ФМ: 0000000000874692 [11:20:22]line ФД: 92239 [11:20:22]line ФПД: 112897075948609 [11:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92239&fm=112897075948609&tin=02508201610067®Number=0000000000091423&sum=150057 [11:20:23]written 0, free lines is 4095 [11:20:23]OFD Sender: Processing packet 92239 [packets to send 63, broken 62] [11:20:23]ProducePacketName [11:20:23]name=ofd_packets/00092239 [11:20:23]OFD Sender: To server: pG, [11:20:23]CommunicateWithHost lk.salyk.kg:30040 [11:20:23]ConnectInit lk.salyk.kg [11:20:23]Connected sock=10 [11:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 52 D0 07 01 13 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 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 2F 00 00 00 F4 03 04 00 00 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 68 01 00 35 04 06 00 66 AD E6 1B AC 41 2E C2 41 85 EC 79 07 11 [11:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FA 56 47 00 59 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 68 01 00 F4 03 04 00 7F C8 E3 66 B6 04 01 00 00 36 F2 00 CB EA 64 37 D4 [11:20:23]CommunicateWithHost err = 0 [11:20:23]CheckOFDResponse [11:20:23]1017 (14) - 77093643461234 [11:20:23]1041 (16) - 0000000000874692 [11:20:23]1040 (4) - 92239 [11:20:23]1012 (4) - 13.09.2024 05:07 [11:20:23]1206 (1) - 0 [11:20:23]OFD Sender: Remove packet 92239 [11:20:23]ProducePacketName [11:20:23]name=ofd_packets/00092239 [11:20:23]NVStorageDeleteData [11:20:23]Write to MH i2c: 01 00 00 15 63 78 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 15 63 00 00 00 00 00 00 0D 8C [11:20:23]RasterBufferAndPrint [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]written 0, free lines is 3334 [11:20:23]MH_Cut [11:20:23]Write to MH i2c: D1 01 00 1C 63 01 51 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: D1 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: D1 01 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: D1 01 00 1C 63 00 50 [11:20:23]Write to MH i2c: 01 00 00 1D 63 80 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:24]OFD Sender: No OFD packet to send [11:20:24]*** Cut start [11:20:24]*** Purtial cut [11:20:24]*** Stage 1: CUTSNS_PIN = 1 [11:20:26]Read from MH i2c: 01 [11:20:26]MH_I2C_Read... [11:20:26]*** Stop cut motor [11:20:26]*** Cut end [11:20:26]Read from MH i2c: 01 07 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: 01 07 00 1D 63 00 00 00 00 00 FF 0F 95 [11:20:26]process_action close_receipt done [11:20:26]requested_data is exist [11:20:26]produce_requested_data [11:20:26]requested_item fm.sn is exist - process it [11:20:26]wFMCommunicate request_size=4 [11:20:26]MH_SAM_APDU [11:20:26]CAPDU: 80 11 00 00 [11:20:26]Write to MH i2c: E2 08 00 1E 63 80 11 00 00 00 00 00 00 FB [11:20:26]Write i2c OK [11:20:26]MH_I2C_Read... [11:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:26]Read from MH i2c: E2 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 17 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 17 00 1E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 52 [11:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:20:26]wFMCommunicate OK [11:20:26]requested_item fd.num is exist - process it [11:20:26]SAM_PROTO_GetFieldsCounters [11:20:26]wFMCommunicate request_size=4 [11:20:26]MH_SAM_APDU [11:20:26]CAPDU: 80 13 00 00 [11:20:26]Write to MH i2c: E2 08 00 1F 63 80 13 00 00 00 00 00 00 FE [11:20:26]Write i2c OK [11:20:26]MH_I2C_Read... [11:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:26]Read from MH i2c: E2 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 62 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 62 00 1F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [11:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:26]wFMCommunicate OK [11:20:26]SAM_PROTO_GetFieldsCounters done [11:20:26]requested_item shift.num is exist - process it [11:20:26]requested_item shift.opened is exist - process it [11:20:26]req_shift_opened [11:20:26]FM_GetShiftState [11:20:26]SAM_PROTO_GetShiftState [11:20:26]wFMCommunicate request_size=4 [11:20:26]MH_SAM_APDU [11:20:26]CAPDU: 80 13 01 00 [11:20:26]Write to MH i2c: E2 08 00 20 63 80 13 01 00 00 00 00 00 00 [11:20:26]Write i2c OK [11:20:26]MH_I2C_Read... [11:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:26]Read from MH i2c: E2 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 0E 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 0E 00 20 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8C [11:20:26]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:20:26]wFMCommunicate OK [11:20:26]SAM_PROTO_GetShiftState done [11:20:26]FM_GetShiftState done [11:20:26]req_shift_opened done [11:20:26]requested_item shift.open_date is exist - process it [11:20:26]req_shift_open_date [11:20:26]req_shift_open_date done [11:20:26]produce_requested_data done [11:20:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92239,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:20:26]process_action_free close_receipt [11:20:26]json_value_free [11:20:26]json_value_free done [11:20:26]process_json_proto returns [11:20:26]Send response to host [11:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92239,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:20:26]free response buf [11:20:26]execute_script done [11:20:26]execute_script returns [11:20:26]free content buf [11:20:26]Sock 9.Close socket [11:20:26]Sock 9.Thread stoped [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:36]accept exits with 8 [11:20:36]New connection [11:20:36]New thread 3067256164 created [11:20:36]Thread 3067399524 joined [11:20:36]Waiting for new connection... [11:20:36] Sock 8.Parse request [11:20:36]Sock 8.Check first char [11:20:36]Sock 8.First char is OK [11:20:36]request: POST /json_proto HTTP/1.0 [11:20:36]Method: POST [11:20:36]URL: /json_proto [11:20:36]Method is POST - this is cgi request [11:20:36]url: /json_proto [11:20:36]query_string will be loaded in cgi processing [11:20:36]execute_cgi json_proto POST (null) [11:20:36]execute_cgi path=json_proto method=POST [11:20:36]POST find Content-Length [11:20:36]Host: 172.17.57.71:8080 [11:20:36]Content-Length: 215 [11:20:36]Content-Type: application/json [11:20:36] [11:20:36]POST finish read [11:20:36]Found Content-Length = 215 [11:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:36]execute_script... [11:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:36]POST & json_proto [11:20:36]process_json_proto [11:20:36]json parsed OK: [11:20:36]protocol is kg_v1.0 [11:20:36]action value=get_value [11:20:36]process_action get_value [11:20:36]cmd_get_value [11:20:36]process_action get_value done [11:20:36]requested_data is exist [11:20:36]produce_requested_data [11:20:36]requested_item kkm.sn is exist - process it [11:20:36]requested_item kkm.ver is exist - process it [11:20:36]requested_item fm.sn is exist - process it [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 11 00 00 [11:20:36]Write to MH i2c: E2 08 00 21 63 80 11 00 00 00 00 00 00 FE [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 21 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 55 [11:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:20:36]wFMCommunicate OK [11:20:36]requested_item fd.num is exist - process it [11:20:36]SAM_PROTO_GetFieldsCounters [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 13 00 00 [11:20:36]Write to MH i2c: E2 08 00 22 63 80 13 00 00 00 00 00 00 01 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 62 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 62 00 22 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_GetFieldsCounters done [11:20:36]requested_item shift.num is exist - process it [11:20:36]requested_item shift.opened is exist - process it [11:20:36]req_shift_opened [11:20:36]FM_GetShiftState [11:20:36]SAM_PROTO_GetShiftState [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 13 01 00 [11:20:36]Write to MH i2c: E2 08 00 23 63 80 13 01 00 00 00 00 00 03 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0E 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0E 00 23 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8F [11:20:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_GetShiftState done [11:20:36]FM_GetShiftState done [11:20:36]req_shift_opened done [11:20:36]requested_item shift.open_date is exist - process it [11:20:36]req_shift_open_date [11:20:36]req_shift_open_date done [11:20:36]produce_requested_data done [11:20:36]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92239,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:20:36]process_action_free get_value [11:20:36]json_value_free [11:20:36]json_value_free done [11:20:36]process_json_proto returns [11:20:36]Send response to host [11:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92239,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:20:36]free response buf [11:20:36]execute_script done [11:20:36]execute_script returns [11:20:36]free content buf [11:20:36]Sock 8.Close socket [11:20:36]Sock 8.Thread stoped [11:20:36]accept exits with 9 [11:20:36]New connection [11:20:36]New thread 3067399524 created [11:20:36]Thread 3067256164 joined [11:20:36]Waiting for new connection... [11:20:36] Sock 9.Parse request [11:20:36]Sock 9.Check first char [11:20:36]Sock 9.First char is OK [11:20:36]request: POST /json_proto HTTP/1.0 [11:20:36]Method: POST [11:20:36]URL: /json_proto [11:20:36]Method is POST - this is cgi request [11:20:36]url: /json_proto [11:20:36]query_string will be loaded in cgi processing [11:20:36]execute_cgi json_proto POST (null) [11:20:36]execute_cgi path=json_proto method=POST [11:20:36]POST find Content-Length [11:20:36]Host: 172.17.57.71:8080 [11:20:36]Content-Length: 331 [11:20:36]Content-Type: application/json [11:20:36] [11:20:36]POST finish read [11:20:36]Found Content-Length = 331 [11:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:20:36]execute_script... [11:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:20:36]POST & json_proto [11:20:36]process_json_proto [11:20:36]json parsed OK: [11:20:36]protocol is kg_v1.0 [11:20:36]action value=get_value [11:20:36]process_action get_value [11:20:36]cmd_get_value [11:20:36]process_action get_value done [11:20:36]requested_data is exist [11:20:36]produce_requested_data [11:20:36]requested_item fm.sale.total is exist - process it [11:20:36]SAM_PROTO_GetFMData [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 13 03 00 [11:20:36]Write to MH i2c: E2 08 00 24 63 80 13 03 00 00 00 00 00 06 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 24 63 00 C5 04 85 04 C1 04 6E 04 04 00 5D 64 01 00 69 04 A1 00 6F 04 04 00 11 61 01 00 B1 04 04 00 78 77 55 B2 70 04 04 00 0C C7 03 83 72 04 04 00 6C B0 51 2F 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 46 7C F0 12 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 F7 E3 93 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4C 03 00 00 B1 04 04 00 60 C6 75 04 70 04 04 00 A8 42 3E 04 72 04 03 00 B8 83 37 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 DE 44 79 EF 03 09 90 00 A1 [11:20:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 5D 64 01 00 69 04 A1 00 6F 04 04 00 11 61 01 00 B1 04 04 00 78 77 55 B2 70 04 04 00 0C C7 03 83 72 04 04 00 6C B0 51 2F 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 46 7C F0 12 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 F7 E3 93 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4C 03 00 00 B1 04 04 00 60 C6 75 04 70 04 04 00 A8 42 3E 04 72 04 03 00 B8 83 37 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 DE 44 79 EF 03 09 90 00 [11:20:37]wFMCommunicate OK [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 17 00 00 [11:20:37]Write to MH i2c: E2 08 00 25 63 80 17 00 00 00 00 00 00 08 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 25 63 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 1A 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 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 9E [11:20:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 1A 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 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 [11:20:37]wFMCommunicate OK [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 17 00 00 [11:20:37]Write to MH i2c: E2 08 00 26 63 80 17 00 00 00 00 00 00 09 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 FD 00 26 63 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 1B [11:20:37]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 [11:20:37]wFMCommunicate OK [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 17 00 00 [11:20:37]Write to MH i2c: E2 08 00 27 63 80 17 00 00 00 00 00 00 0A [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 FD 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 FD 00 27 63 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 96 [11:20:38]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 [11:20:38]wFMCommunicate OK [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 17 00 00 [11:20:38]Write to MH i2c: E2 08 00 28 63 80 17 00 00 00 00 00 00 0B [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 E2 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 E2 00 28 63 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 [11:20:38]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 [11:20:38]wFMCommunicate OK [11:20:38]SAM_PROTO_GetFMData done [11:20:38]requested_item fm.sale_refund.total is exist - process it [11:20:38]requested_item fm.buy.total is exist - process it [11:20:38]requested_item shift.sale.total is exist - process it [11:20:38]SAM_PROTO_GetShiftData [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 13 02 00 [11:20:38]Write to MH i2c: E2 08 00 29 63 80 13 02 00 00 00 00 00 0A [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 FD 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 FD 00 29 63 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 55 D4 19 70 04 03 00 84 65 11 72 04 03 00 D1 6E 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 45 BE 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 3A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6C [11:20:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 55 D4 19 70 04 03 00 84 65 11 72 04 03 00 D1 6E 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 45 BE 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 3A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [11:20:38]wFMCommunicate OK [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 17 00 00 [11:20:38]Write to MH i2c: E2 08 00 2A 63 80 17 00 00 00 00 00 00 0D [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 2A 63 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2F [11:20:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:20:39]wFMCommunicate OK [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 17 00 00 [11:20:39]Write to MH i2c: E2 08 00 2B 63 80 17 00 00 00 00 00 00 0E [11:20:39]OFD Sender: No OFD packet to send [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 2B 63 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C5 [11:20:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:20:39]wFMCommunicate OK [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 17 00 00 [11:20:39]Write to MH i2c: E2 08 00 2C 63 80 17 00 00 00 00 00 00 0F [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 FD 00 2C 63 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 81 [11:20:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:20:39]wFMCommunicate OK [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 17 00 00 [11:20:39]Write to MH i2c: E2 08 00 2D 63 80 17 00 00 00 00 00 00 10 [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:20:40]Read from MH i2c: E2 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 CB 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 CB 00 2D 63 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F9 [11:20:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:20:40]wFMCommunicate OK [11:20:40]SAM_PROTO_GetShiftData done [11:20:40]requested_item shift.sale.total_cash is exist - process it [11:20:40]requested_item shift.sale_refund.total is exist - process it [11:20:40]requested_item shift.sale_refund.total_cash is exist - process it [11:20:40]requested_item shift.buy.total is exist - process it [11:20:40]requested_item shift.buy.total_cash is exist - process it [11:20:40]produce_requested_data done [11:20:40]produce_requested_data return {"fm.sale.total":29919455.92,"fm.sale_refund.total":748273.60,"fm.buy.total":0.00,"shift.sale.total":16927.57,"shift.sale.total_cash":11401.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} [11:20:40]process_action_free get_value [11:20:40]json_value_free [11:20:40]json_value_free done [11:20:40]process_json_proto returns [11:20:40]Send response to host [11:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29919455.92,"fm.sale_refund.total":748273.60,"fm.buy.total":0.00,"shift.sale.total":16927.57,"shift.sale.total_cash":11401.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}}} [11:20:40]free response buf [11:20:40]execute_script done [11:20:40]execute_script returns [11:20:40]free content buf [11:20:40]Sock 9.Close socket [11:20:40]Sock 9.Thread stoped [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [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: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:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:34]accept exits with 8 [11:23:34]New connection [11:23:34]New thread 3067256164 created [11:23:34]Thread 3067399524 joined [11:23:34]Waiting for new connection... [11:23:34] Sock 8.Parse request [11:23:34]Sock 8.Check first char [11:23:34]Sock 8.First char is OK [11:23:34]request: POST /json_proto HTTP/1.0 [11:23:34]Method: POST [11:23:34]URL: /json_proto [11:23:34]Method is POST - this is cgi request [11:23:34]url: /json_proto [11:23:34]query_string will be loaded in cgi processing [11:23:34]execute_cgi json_proto POST (null) [11:23:34]execute_cgi path=json_proto method=POST [11:23:34]POST find Content-Length [11:23:34]Host: 172.17.57.71:8080 [11:23:34]Content-Length: 937 [11:23:34]Content-Type: application/json [11:23:34] [11:23:34]POST finish read [11:23:34]Found Content-Length = 937 [11:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127173", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:34]execute_script... [11:23: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 : (3)127173", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:34]POST & json_proto [11:23:34]process_json_proto [11:23:34]json parsed OK: [11:23:34]protocol is kg_v1.0 [11:23:34]action value=close_receipt [11:23:34]process_action close_receipt [11:23:34]cmd_close_receipt [11:23:34]MH_GetDate [11:23:34]Write to MH i2c: F0 00 00 2E 63 80 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 09 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 09 00 2E 63 00 C1 20 E4 66 33 3A A4 66 2B [11:23:34]GetLastDocTimeStamp 1726226432 [11:23:34]current date 1726226625 [11:23:34]FM_GetShiftState [11:23:34]SAM_PROTO_GetShiftState [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 13 01 00 [11:23:34]Write to MH i2c: E2 08 00 2F 63 80 13 01 00 00 00 00 00 0F [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0E 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0E 00 2F 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9B [11:23:34]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:23:34]wFMCommunicate OK [11:23:34]SAM_PROTO_GetShiftState done [11:23:34]FM_GetShiftState done [11:23:34]opened in 1726186930 [11:23:34]opened+sec_in_day 1726273330 [11:23:34]quantity*price = 10500 [11:23:34]sum+1 = 10501 [11:23:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660013331421 Эскимо Ленинградское 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 48 13.09.2024 11:23 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92240 ФПД: 146296282051091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112345&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92240&fm=146296282051091&tin=02508201610067®Number=0000000000091423&sum=20000 0 [11:23:35]StoreToDocumentArchive [11:23:35]shift 505 fd 92240 [11:23:35]save to /storage/0505/doc_00092240 [11:23:35]save last doc name /storage/0505/doc_00092240 to /storage/kkm_last_doc_name [11:23:35]save OK [11:23:35]Clear old archive folders... [11:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=393 [11:23:35]tlvbuf is 0165E7D0 [11:23:35]SAM_PROTO_ClearQueue [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 09 00 00 [11:23:35]Write to MH i2c: E2 08 00 3C 63 80 09 00 00 00 00 00 00 11 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 3C 63 00 90 00 13 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]SAM_PROTO_ClearQueue done [11:23:35]KKMCreateOFDPacket [11:23:35]OFDProtocolAddRootSTLVToBuf [11:23:35]FM_MakeSignedData [11:23:35]FM_MakeSignedData [11:23:35]SAM_PROTO_SignData [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 01 02 [11:23:35]Write to MH i2c: E2 08 00 3D 63 80 0D 01 02 00 00 00 00 19 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 3D 63 00 90 00 14 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=255 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 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 [11:23:35]Write to MH i2c: E2 02 01 3E 63 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 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 00 00 F7 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 3E 63 00 90 00 15 [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]wFMCommunicate request_size=152 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 02 02 93 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 30 00 00 00 F4 03 04 00 C1 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 68 01 00 35 04 06 00 85 0E 41 EC 72 13 [11:23:36]Write to MH i2c: E2 9B 00 3F 63 80 0D 02 02 93 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 30 00 00 00 F4 03 04 00 C1 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 68 01 00 35 04 06 00 85 0E 41 EC 72 13 00 00 2E [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 3F 63 00 90 00 16 [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 03 02 [11:23:36]Write to MH i2c: E2 08 00 40 63 80 0D 03 02 00 00 00 00 1E [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 0B 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 0B 00 40 63 00 E9 87 4A 38 F7 28 7B BB 90 00 66 [11:23:36]RAPDU: E9 87 4A 38 F7 28 7B BB 90 00 [11:23:36]wFMCommunicate OK [11:23:36]SAM_PROTO_SignData done [11:23:36]FM_MakeSignedData done [11:23:36]CreateOFDProtocolMessage [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 11 00 00 [11:23:36]Write to MH i2c: E2 08 00 41 63 80 11 00 00 00 00 00 00 1E [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 17 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 17 00 41 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 75 [11:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:23:36]wFMCommunicate OK [11:23:36]CreateOFDProtocolMessage done [11:23:36]OFDSenderStorePacket 92240 [11:23:36]StoreOFDPacket docnum=92240 [11:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9D 01 00 00 4C 1D 95 01 5F 19 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 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 30 00 00 00 F4 03 04 00 C1 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 68 01 00 35 04 06 00 85 0E 41 EC 72 13 E9 87 4A 38 F7 28 7B BB [11:23:36]CheckFolder [11:23:36]dirname=/storage/ofd_packets [11:23:36]CheckFolder done [11:23:36]ProducePacketName [11:23:36]name=ofd_packets/00092240 [11:23:36]NVStorageSaveData ofd_packets/00092240 [11:23:36]File name is /storage/ofd_packets/00092240 [11:23:36]Write 443 bytes [11:23:36]NVStorageSaveData done [11:23:36]OFDSenderStorePacket done [11:23:36]KKMCreateOFDPacket done [11:23:36]NVStorageSaveData kkm_last_timestamp [11:23:36]File name is /storage/kkm_last_timestamp [11:23:36]Write 4 bytes [11:23:36]NVStorageSaveData done [11:23:36]ExternCall_PrintAddStr [11:23:36]wPrintStart [11:23:36]Write to MH i2c: 01 00 00 42 63 A5 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 42 63 00 00 00 00 00 FF 0F BA [11:23:36]RasterBufferAndPrint [11:23:36]line Счет N : (3)127173 [11:23:36]line ИНН: 02508201610067 [11:23:36]line Контрольно-Кассовый Чек [11:23:36]line ПРОДАЖА [11:23:36]line Товар: 2000034730018 [11:23:36]line Кофе Американо (GABB TRADE) [11:23:36]line 1.000 * 105.00 [11:23:36]line = 105.00 [11:23:36]line НДС 12% НСП 1% [11:23:36]line > о реализуемом товаре [11:23:36]line Товар: 4660013331421 [11:23:36]line Эскимо Ленинградское [11:23:36]line 1.000 * 95.00 [11:23:36]line = 95.00 [11:23:36]line НДС 12% НСП 1% [11:23:36]line > о реализуемом товаре [11:23:36]line ИТОГО: 200.00 [11:23:36]line НСП 1% : 1.77 [11:23:36]line НДС 12% : 21.24 [11:23:36]line Наличными: 200.00 [11:23:36]line Безнал.: 0.00 [11:23:36]line Место: АЗС № 5 "Партнер Нефть" [11:23:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:23:36]line СНО: Общий режим [11:23:36]line Чек 48 13.09.2024 11:23 [11:23:36]line Смена: 505 ФФД: 1.0 [11:23:36]line ЗНМ: 03000000022 [11:23:36]line РНМ: 0000000000091423 [11:23:36]line Версия ККМ: 001 [11:23:36]line ФМ: 0000000000874692 [11:23:36]line ФД: 92240 [11:23:36]line ФПД: 146296282051091 [11:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112345&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92240&fm=146296282051091&tin=02508201610067®Number=0000000000091423&sum=20000 [11:23:36]OFD Sender: Processing packet 92240 [packets to send 63, broken 62] [11:23:36]ProducePacketName [11:23:36]name=ofd_packets/00092240 [11:23:36]OFD Sender: To server: pG, [11:23:36]CommunicateWithHost lk.salyk.kg:30040 [11:23:36]ConnectInit lk.salyk.kg [11:23:36]line 0 [11:23:36]written 0, free lines is 4095 [11:23:36]Connected sock=10 [11:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9D 01 00 00 4C 1D 95 01 5F 19 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 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 30 00 00 00 F4 03 04 00 C1 20 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 68 01 00 35 04 06 00 85 0E 41 EC 72 13 E9 87 4A 38 F7 28 7B BB [11:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 93 DD 47 00 7C 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 34 36 39 32 10 04 04 00 50 68 01 00 F4 03 04 00 40 C9 E3 66 B6 04 01 00 00 15 EB 6D E5 DD 4B CA A7 [11:23:37]CommunicateWithHost err = 0 [11:23:37]CheckOFDResponse [11:23:37]1017 (14) - 77093643461234 [11:23:37]1041 (16) - 0000000000874692 [11:23:37]1040 (4) - 92240 [11:23:37]1012 (4) - 13.09.2024 05:10 [11:23:37]1206 (1) - 0 [11:23:37]OFD Sender: Remove packet 92240 [11:23:37]ProducePacketName [11:23:37]name=ofd_packets/00092240 [11:23:37]NVStorageDeleteData [11:23:37]Write to MH i2c: 01 00 00 71 63 D4 [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 71 63 00 00 00 00 00 C7 0C AE [11:23:37]RasterBufferAndPrint [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]written 0, free lines is 3279 [11:23:37]MH_Cut [11:23:37]Write to MH i2c: D1 01 00 78 63 01 AD [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 01 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 01 00 78 63 00 AC [11:23:37]Write to MH i2c: 01 00 00 79 63 DC [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]OFD Sender: No OFD packet to send [11:23:37]*** Cut start [11:23:37]*** Purtial cut [11:23:37]*** Stage 1: CUTSNS_PIN = 1 [11:23:39]Read from MH i2c: 01 [11:23:39]MH_I2C_Read... [11:23:39]*** Stop cut motor [11:23:39]*** Cut end [11:23:39]Read from MH i2c: 01 07 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 07 00 79 63 00 00 00 00 00 FF 0F F1 [11:23:39]process_action close_receipt done [11:23:39]requested_data is exist [11:23:39]produce_requested_data [11:23:39]requested_item fm.sn is exist - process it [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 11 00 00 [11:23:39]Write to MH i2c: E2 08 00 7A 63 80 11 00 00 00 00 00 00 57 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 7A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [11:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:23:40]wFMCommunicate OK [11:23:40]requested_item fd.num is exist - process it [11:23:40]SAM_PROTO_GetFieldsCounters [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 13 00 00 [11:23:40]Write to MH i2c: E2 08 00 7B 63 80 13 00 00 00 00 00 00 5A [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 62 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 62 00 7B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 50 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 50 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_GetFieldsCounters done [11:23:40]requested_item shift.num is exist - process it [11:23:40]requested_item shift.opened is exist - process it [11:23:40]req_shift_opened [11:23:40]FM_GetShiftState [11:23:40]SAM_PROTO_GetShiftState [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 13 01 00 [11:23:40]Write to MH i2c: E2 08 00 7C 63 80 13 01 00 00 00 00 00 5C [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0E 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0E 00 7C 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E8 [11:23:40]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_GetShiftState done [11:23:40]FM_GetShiftState done [11:23:40]req_shift_opened done [11:23:40]requested_item shift.open_date is exist - process it [11:23:40]req_shift_open_date [11:23:40]req_shift_open_date done [11:23:40]produce_requested_data done [11:23:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92240,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:23:40]process_action_free close_receipt [11:23:40]json_value_free [11:23:40]json_value_free done [11:23:40]process_json_proto returns [11:23:40]Send response to host [11:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92240,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:23:40]free response buf [11:23:40]execute_script done [11:23:40]execute_script returns [11:23:40]free content buf [11:23:40]Sock 8.Close socket [11:23:40]Sock 8.Thread stoped [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]accept exits with 9 [11:25:57]New connection [11:25:57]New thread 3067399524 created [11:25:57]Thread 3067256164 joined [11:25:57]Waiting for new connection... [11:25:57] Sock 9.Parse request [11:25:57]Sock 9.Check first char [11:25:57]Sock 9.First char is OK [11:25:57]request: POST /json_proto HTTP/1.0 [11:25:57]Method: POST [11:25:57]URL: /json_proto [11:25:57]Method is POST - this is cgi request [11:25:57]url: /json_proto [11:25:57]query_string will be loaded in cgi processing [11:25:57]execute_cgi json_proto POST (null) [11:25:57]execute_cgi path=json_proto method=POST [11:25:57]POST find Content-Length [11:25:57]Host: 172.17.57.71:8080 [11:25:57]Content-Length: 639 [11:25:57]Content-Type: application/json [11:25:57] [11:25:57]POST finish read [11:25:57]Found Content-Length = 639 [11:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127174", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:57]execute_script... [11:25: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 : (3)127174", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:57]POST & json_proto [11:25:57]process_json_proto [11:25:57]json parsed OK: [11:25:57]protocol is kg_v1.0 [11:25:57]action value=close_receipt [11:25:57]process_action close_receipt [11:25:57]cmd_close_receipt [11:25:57]MH_GetDate [11:25:57]Write to MH i2c: F0 00 00 7D 63 CF [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: F0 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: F0 09 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: F0 09 00 7D 63 00 50 21 E4 66 33 3A A4 66 0A [11:25:57]GetLastDocTimeStamp 1726226625 [11:25:57]current date 1726226768 [11:25:57]FM_GetShiftState [11:25:57]SAM_PROTO_GetShiftState [11:25:57]wFMCommunicate request_size=4 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 13 01 00 [11:25:57]Write to MH i2c: E2 08 00 7E 63 80 13 01 00 00 00 00 00 5E [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 0E 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 0E 00 7E 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EA [11:25:57]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:25:57]wFMCommunicate OK [11:25:57]SAM_PROTO_GetShiftState done [11:25:57]FM_GetShiftState done [11:25:57]opened in 1726186930 [11:25:57]opened+sec_in_day 1726273330 [11:25:57]quantity*price = 10500 [11:25:57]sum+1 = 10501 [11:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 49 13.09.2024 11:26 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92241 ФПД: 120905442658246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112608&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92241&fm=120905442658246&tin=02508201610067®Number=0000000000091423&sum=10500 0 [11:25:58]StoreToDocumentArchive [11:25:58]shift 505 fd 92241 [11:25:58]save to /storage/0505/doc_00092241 [11:25:58]save last doc name /storage/0505/doc_00092241 to /storage/kkm_last_doc_name [11:25:58]save OK [11:25:58]Clear old archive folders... [11:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:25:58]tlvbuf is 017E32F0 [11:25:58]SAM_PROTO_ClearQueue [11:25:58]wFMCommunicate request_size=4 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 09 00 00 [11:25:58]Write to MH i2c: E2 08 00 8B 63 80 09 00 00 00 00 00 00 60 [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 8B 63 00 90 00 62 [11:25:58]RAPDU: 90 00 [11:25:58]wFMCommunicate OK [11:25:58]SAM_PROTO_ClearQueue done [11:25:58]KKMCreateOFDPacket [11:25:58]OFDProtocolAddRootSTLVToBuf [11:25:58]FM_MakeSignedData [11:25:58]FM_MakeSignedData [11:25:58]SAM_PROTO_SignData [11:25:58]wFMCommunicate request_size=4 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 0D 01 02 [11:25:58]Write to MH i2c: E2 08 00 8C 63 80 0D 01 02 00 00 00 00 68 [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 8C 63 00 90 00 63 [11:25:58]RAPDU: 90 00 [11:25:58]wFMCommunicate OK [11:25:58]wFMCommunicate request_size=255 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 50 21 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:25:58]Write to MH i2c: E2 02 01 8D 63 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 50 21 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0A [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 8D 63 00 90 00 64 [11:25:58]RAPDU: 90 00 [11:25:58]wFMCommunicate OK [11:25:58]wFMCommunicate request_size=30 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 51 68 01 00 35 04 06 00 6D F6 7D F6 07 C6 [11:25:58]Write to MH i2c: E2 21 00 8E 63 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 51 68 01 00 35 04 06 00 6D F6 7D F6 07 C6 00 00 C5 [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 03 00 8E 63 00 90 00 65 [11:25:58]RAPDU: 90 00 [11:25:58]wFMCommunicate OK [11:25:58]wFMCommunicate request_size=4 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 0D 03 02 [11:25:58]Write to MH i2c: E2 08 00 8F 63 80 0D 03 02 00 00 00 00 6D [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 0B 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 0B 00 8F 63 00 57 C7 53 36 B7 EB 34 AE 90 00 99 [11:25:58]RAPDU: 57 C7 53 36 B7 EB 34 AE 90 00 [11:25:58]wFMCommunicate OK [11:25:58]SAM_PROTO_SignData done [11:25:58]FM_MakeSignedData done [11:25:58]CreateOFDProtocolMessage [11:25:58]wFMCommunicate request_size=4 [11:25:58]MH_SAM_APDU [11:25:58]CAPDU: 80 11 00 00 [11:25:58]Write to MH i2c: E2 08 00 90 63 80 11 00 00 00 00 00 00 6D [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:58]Read from MH i2c: E2 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 17 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: E2 17 00 90 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C4 [11:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:25:58]wFMCommunicate OK [11:25:58]CreateOFDProtocolMessage done [11:25:58]OFDSenderStorePacket 92241 [11:25:58]StoreOFDPacket docnum=92241 [11:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 E4 A4 1B 01 C4 65 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 50 21 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 68 01 00 35 04 06 00 6D F6 7D F6 07 C6 57 C7 53 36 B7 EB 34 AE [11:25:58]CheckFolder [11:25:58]dirname=/storage/ofd_packets [11:25:58]CheckFolder done [11:25:58]ProducePacketName [11:25:58]name=ofd_packets/00092241 [11:25:58]NVStorageSaveData ofd_packets/00092241 [11:25:58]File name is /storage/ofd_packets/00092241 [11:25:58]Write 321 bytes [11:25:58]NVStorageSaveData done [11:25:58]OFDSenderStorePacket done [11:25:58]KKMCreateOFDPacket done [11:25:58]NVStorageSaveData kkm_last_timestamp [11:25:58]File name is /storage/kkm_last_timestamp [11:25:58]Write 4 bytes [11:25:58]NVStorageSaveData done [11:25:58]ExternCall_PrintAddStr [11:25:58]wPrintStart [11:25:58]Write to MH i2c: 01 00 00 91 63 F4 [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 07 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 07 00 91 63 00 00 00 00 00 FF 0F 09 [11:25:58]RasterBufferAndPrint [11:25:58]line Счет N : (3)127174 [11:25:58]line ИНН: 02508201610067 [11:25:58]line Контрольно-Кассовый Чек [11:25:58]line ПРОДАЖА [11:25:58]line Товар: 5449000006271 [11:25:58]line Напиток Фанта 1л [11:25:58]line 1.000 * 105.00 [11:25:58]line = 105.00 [11:25:58]line НДС 12% НСП 1% [11:25:58]line > о реализуемом товаре [11:25:58]line ИТОГО: 105.00 [11:25:58]line НСП 1% : 0.93 [11:25:58]line НДС 12% : 11.15 [11:25:58]line Наличными: 105.00 [11:25:58]line Безнал.: 0.00 [11:25:58]line Место: АЗС № 5 "Партнер Нефть" [11:25:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:25:58]line СНО: Общий режим [11:25:58]line Чек 49 13.09.2024 11:26 [11:25:58]line Смена: 505 ФФД: 1.0 [11:25:58]line ЗНМ: 03000000022 [11:25:58]line РНМ: 0000000000091423 [11:25:58]line Версия ККМ: 001 [11:25:58]line ФМ: 0000000000874692 [11:25:58]line ФД: 92241 [11:25:58]line ФПД: 120905442658246 [11:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T112608&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92241&fm=120905442658246&tin=02508201610067®Number=0000000000091423&sum=10500 [11:25:58]line 0 [11:25:58]written 0, free lines is 4095 [11:25:58]OFD Sender: Processing packet 92241 [packets to send 63, broken 62] [11:25:58]ProducePacketName [11:25:58]name=ofd_packets/00092241 [11:25:58]OFD Sender: To server: pG, [11:25:58]CommunicateWithHost lk.salyk.kg:30040 [11:25:58]ConnectInit lk.salyk.kg [11:25:59]Connected sock=10 [11:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 E4 A4 1B 01 C4 65 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 50 21 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 68 01 00 35 04 06 00 6D F6 7D F6 07 C6 57 C7 53 36 B7 EB 34 AE [11:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C8 C8 47 00 78 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 68 01 00 F4 03 04 00 CE C9 E3 66 B6 04 01 00 00 40 DD 0C BE D5 3B 6A 38 [11:25:59]CommunicateWithHost err = 0 [11:25:59]CheckOFDResponse [11:25:59]1017 (14) - 77093643461234 [11:25:59]1041 (16) - 0000000000874692 [11:25:59]1040 (4) - 92241 [11:25:59]1012 (4) - 13.09.2024 05:12 [11:25:59]1206 (1) - 0 [11:25:59]OFD Sender: Remove packet 92241 [11:25:59]ProducePacketName [11:25:59]name=ofd_packets/00092241 [11:25:59]NVStorageDeleteData [11:25:59]Write to MH i2c: 01 00 00 B9 63 1C [11:25:59]Write i2c OK [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: 01 [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: 01 07 00 [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: 01 07 00 B9 63 00 00 00 00 00 22 0D 52 [11:25:59]RasterBufferAndPrint [11:25:59]line [11:25:59]line [11:25:59]line [11:25:59]line [11:25:59]line [11:25:59]written 0, free lines is 3367 [11:25:59]MH_Cut [11:25:59]Write to MH i2c: D1 01 00 C0 63 01 F5 [11:25:59]Write i2c OK [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: D1 [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: D1 01 00 [11:25:59]MH_I2C_Read... [11:25:59]Read from MH i2c: D1 01 00 C0 63 00 F4 [11:25:59]Write to MH i2c: 01 00 00 C1 63 24 [11:25:59]Write i2c OK [11:25:59]MH_I2C_Read... [11:25:59]OFD Sender: No OFD packet to send [11:26:00]*** Cut start [11:26:00]*** Purtial cut [11:26:00]*** Stage 1: CUTSNS_PIN = 1 [11:26:02]Read from MH i2c: 01 [11:26:02]MH_I2C_Read... [11:26:02]*** Stop cut motor [11:26:02]*** Cut end [11:26:02]Read from MH i2c: 01 07 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: 01 07 00 C1 63 00 00 00 00 00 FF 0F 39 [11:26:02]process_action close_receipt done [11:26:02]requested_data is exist [11:26:02]produce_requested_data [11:26:02]requested_item fm.sn is exist - process it [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 11 00 00 [11:26:02]Write to MH i2c: E2 08 00 C2 63 80 11 00 00 00 00 00 00 9F [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 17 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 17 00 C2 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F6 [11:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:26:02]wFMCommunicate OK [11:26:02]requested_item fd.num is exist - process it [11:26:02]SAM_PROTO_GetFieldsCounters [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 13 00 00 [11:26:02]Write to MH i2c: E2 08 00 C3 63 80 13 00 00 00 00 00 00 A2 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 62 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 62 00 C3 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 51 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 51 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:02]wFMCommunicate OK [11:26:02]SAM_PROTO_GetFieldsCounters done [11:26:02]requested_item shift.num is exist - process it [11:26:02]requested_item shift.opened is exist - process it [11:26:02]req_shift_opened [11:26:02]FM_GetShiftState [11:26:02]SAM_PROTO_GetShiftState [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 13 01 00 [11:26:02]Write to MH i2c: E2 08 00 C4 63 80 13 01 00 00 00 00 00 A4 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 0E 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 0E 00 C4 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 30 [11:26:02]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:26:02]wFMCommunicate OK [11:26:02]SAM_PROTO_GetShiftState done [11:26:02]FM_GetShiftState done [11:26:02]req_shift_opened done [11:26:02]requested_item shift.open_date is exist - process it [11:26:02]req_shift_open_date [11:26:02]req_shift_open_date done [11:26:02]produce_requested_data done [11:26:02]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92241,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:26:02]process_action_free close_receipt [11:26:02]json_value_free [11:26:02]json_value_free done [11:26:02]process_json_proto returns [11:26:02]Send response to host [11:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92241,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:26:02]free response buf [11:26:02]execute_script done [11:26:02]execute_script returns [11:26:02]free content buf [11:26:02]Sock 9.Close socket [11:26:02]Sock 9.Thread stoped [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:53]accept exits with 8 [11:36:53]New connection [11:36:53]New thread 3067256164 created [11:36:53]Thread 3067399524 joined [11:36:53]Waiting for new connection... [11:36:53] Sock 8.Parse request [11:36:53]Sock 8.Check first char [11:36:53]Sock 8.First char is OK [11:36:53]request: POST /json_proto HTTP/1.0 [11:36:53]Method: POST [11:36:53]URL: /json_proto [11:36:53]Method is POST - this is cgi request [11:36:53]url: /json_proto [11:36:53]query_string will be loaded in cgi processing [11:36:53]execute_cgi json_proto POST (null) [11:36:53]execute_cgi path=json_proto method=POST [11:36:53]POST find Content-Length [11:36:53]Host: 172.17.57.71:8080 [11:36:53]Content-Length: 622 [11:36:53]Content-Type: application/json [11:36:53] [11:36:53]POST finish read [11:36:53]Found Content-Length = 622 [11:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127175", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:53]execute_script... [11:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127175", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:53]POST & json_proto [11:36:53]process_json_proto [11:36:53]json parsed OK: [11:36:53]protocol is kg_v1.0 [11:36:53]action value=close_receipt [11:36:53]process_action close_receipt [11:36:53]cmd_close_receipt [11:36:53]MH_GetDate [11:36:53]Write to MH i2c: F0 00 00 C5 63 17 [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: F0 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: F0 09 00 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: F0 09 00 C5 63 00 E0 23 E4 66 33 3A A4 66 E4 [11:36:53]GetLastDocTimeStamp 1726226768 [11:36:53]current date 1726227424 [11:36:53]FM_GetShiftState [11:36:53]SAM_PROTO_GetShiftState [11:36:53]wFMCommunicate request_size=4 [11:36:53]MH_SAM_APDU [11:36:53]CAPDU: 80 13 01 00 [11:36:53]Write to MH i2c: E2 08 00 C6 63 80 13 01 00 00 00 00 00 A6 [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:53]Read from MH i2c: E2 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: E2 0E 00 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: E2 0E 00 C6 63 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 32 [11:36:53]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:36:53]wFMCommunicate OK [11:36:53]SAM_PROTO_GetShiftState done [11:36:53]FM_GetShiftState done [11:36:53]opened in 1726186930 [11:36:53]opened+sec_in_day 1726273330 [11:36:53]quantity*price = 15000 [11:36:53]sum+1 = 15001 [11:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 50 13.09.2024 11:37 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92242 ФПД: 136099099629024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T113704&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92242&fm=136099099629024&tin=02508201610067®Number=0000000000091423&sum=15000 0 [11:36:54]StoreToDocumentArchive [11:36:54]shift 505 fd 92242 [11:36:54]save to /storage/0505/doc_00092242 [11:36:54]save last doc name /storage/0505/doc_00092242 to /storage/kkm_last_doc_name [11:36:54]save OK [11:36:54]Clear old archive folders... [11:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:36:54]tlvbuf is 01784580 [11:36:54]SAM_PROTO_ClearQueue [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 09 00 00 [11:36:54]Write to MH i2c: E2 08 00 D3 63 80 09 00 00 00 00 00 00 A8 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 D3 63 00 90 00 AA [11:36:54]RAPDU: 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_ClearQueue done [11:36:54]KKMCreateOFDPacket [11:36:54]OFDProtocolAddRootSTLVToBuf [11:36:54]FM_MakeSignedData [11:36:54]FM_MakeSignedData [11:36:54]SAM_PROTO_SignData [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 0D 01 02 [11:36:54]Write to MH i2c: E2 08 00 D4 63 80 0D 01 02 00 00 00 00 B0 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 D4 63 00 90 00 AB [11:36:54]RAPDU: 90 00 [11:36:54]wFMCommunicate OK [11:36:54]wFMCommunicate request_size=255 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E0 23 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [11:36:54]Write to MH i2c: E2 02 01 D5 63 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E0 23 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 C0 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 D5 63 00 90 00 AC [11:36:54]RAPDU: 90 00 [11:36:54]wFMCommunicate OK [11:36:54]wFMCommunicate request_size=33 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 68 01 00 35 04 06 00 7B C8 0A 7C D5 E0 [11:36:54]Write to MH i2c: E2 24 00 D6 63 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 68 01 00 35 04 06 00 7B C8 0A 7C D5 E0 00 00 7F [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 03 00 D6 63 00 90 00 AD [11:36:54]RAPDU: 90 00 [11:36:54]wFMCommunicate OK [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 0D 03 02 [11:36:54]Write to MH i2c: E2 08 00 D7 63 80 0D 03 02 00 00 00 00 B5 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0B 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0B 00 D7 63 00 EB 00 4B 09 F1 EB 96 C1 90 00 28 [11:36:54]RAPDU: EB 00 4B 09 F1 EB 96 C1 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_SignData done [11:36:54]FM_MakeSignedData done [11:36:54]CreateOFDProtocolMessage [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 11 00 00 [11:36:54]Write to MH i2c: E2 08 00 D8 63 80 11 00 00 00 00 00 00 B5 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 D8 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0C [11:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:36:54]wFMCommunicate OK [11:36:54]CreateOFDProtocolMessage done [11:36:54]OFDSenderStorePacket 92242 [11:36:54]StoreOFDPacket docnum=92242 [11:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 D3 2D 1E 01 27 59 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E0 23 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 68 01 00 35 04 06 00 7B C8 0A 7C D5 E0 EB 00 4B 09 F1 EB 96 C1 [11:36:54]CheckFolder [11:36:54]dirname=/storage/ofd_packets [11:36:54]CheckFolder done [11:36:54]ProducePacketName [11:36:54]name=ofd_packets/00092242 [11:36:54]NVStorageSaveData ofd_packets/00092242 [11:36:54]File name is /storage/ofd_packets/00092242 [11:36:54]Write 324 bytes [11:36:54]NVStorageSaveData done [11:36:54]OFDSenderStorePacket done [11:36:54]KKMCreateOFDPacket done [11:36:54]NVStorageSaveData kkm_last_timestamp [11:36:54]File name is /storage/kkm_last_timestamp [11:36:54]Write 4 bytes [11:36:54]NVStorageSaveData done [11:36:54]ExternCall_PrintAddStr [11:36:54]wPrintStart [11:36:54]Write to MH i2c: 01 00 00 D9 63 3C [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: 01 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: 01 07 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: 01 07 00 D9 63 00 00 00 00 00 FF 0F 51 [11:36:54]RasterBufferAndPrint [11:36:54]line Счет N : (3)127175 [11:36:54]line ИНН: 02508201610067 [11:36:54]line Контрольно-Кассовый Чек [11:36:54]line ПРОДАЖА [11:36:54]line Товар: 4640030091645 [11:36:54]line Сигареты ESSE Exchange M [11:36:54]line 1.000 * 150.00 [11:36:54]line = 150.00 [11:36:54]line НДС 12% НСП 1% [11:36:54]line > о реализуемом товаре [11:36:54]line ИТОГО: 150.00 [11:36:54]line НСП 1% : 1.33 [11:36:54]line НДС 12% : 15.93 [11:36:54]line Наличными: 150.00 [11:36:54]line Безнал.: 0.00 [11:36:54]line Место: АЗС № 5 "Партнер Нефть" [11:36:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:36:54]line СНО: Общий режим [11:36:54]line Чек 50 13.09.2024 11:37 [11:36:54]line Смена: 505 ФФД: 1.0 [11:36:54]line ЗНМ: 03000000022 [11:36:54]line РНМ: 0000000000091423 [11:36:54]line Версия ККМ: 001 [11:36:54]line ФМ: 0000000000874692 [11:36:54]line ФД: 92242 [11:36:54]line ФПД: 136099099629024 [11:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T113704&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92242&fm=136099099629024&tin=02508201610067®Number=0000000000091423&sum=15000 [11:36:54]line 0 [11:36:55]written 0, free lines is 4095 [11:36:55]OFD Sender: Processing packet 92242 [packets to send 63, broken 62] [11:36:55]ProducePacketName [11:36:55]name=ofd_packets/00092242 [11:36:55]OFD Sender: To server: pG, [11:36:55]CommunicateWithHost lk.salyk.kg:30040 [11:36:55]ConnectInit lk.salyk.kg [11:36:55]Connected sock=10 [11:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 D3 2D 1E 01 27 59 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E0 23 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 68 01 00 35 04 06 00 7B C8 0A 7C D5 E0 EB 00 4B 09 F1 EB 96 C1 [11:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 59 99 47 00 47 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 68 01 00 F4 03 04 00 5F CC E3 66 B6 04 01 00 00 6C 8B 55 B4 96 E9 39 4C [11:36:55]CommunicateWithHost err = 0 [11:36:55]CheckOFDResponse [11:36:55]1017 (14) - 77093643461234 [11:36:55]1041 (16) - 0000000000874692 [11:36:55]1040 (4) - 92242 [11:36:55]1012 (4) - 13.09.2024 05:23 [11:36:55]1206 (1) - 0 [11:36:55]OFD Sender: Remove packet 92242 [11:36:55]ProducePacketName [11:36:55]name=ofd_packets/00092242 [11:36:55]NVStorageDeleteData [11:36:55]Write to MH i2c: 01 00 00 01 64 65 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 07 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 07 00 01 64 00 00 00 00 00 25 0D 9E [11:36:55]RasterBufferAndPrint [11:36:55]line [11:36:55]line [11:36:55]line [11:36:55]line [11:36:55]line [11:36:55]written 0, free lines is 3371 [11:36:55]MH_Cut [11:36:55]Write to MH i2c: D1 01 00 08 64 01 3E [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: D1 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: D1 01 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: D1 01 00 08 64 00 3D [11:36:55]Write to MH i2c: 01 00 00 09 64 6D [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:56]OFD Sender: No OFD packet to send [11:36:56]*** Cut start [11:36:56]*** Purtial cut [11:36:56]*** Stage 1: CUTSNS_PIN = 1 [11:36:58]Read from MH i2c: 01 [11:36:58]MH_I2C_Read... [11:36:58]*** Stop cut motor [11:36:58]*** Cut end [11:36:58]Read from MH i2c: 01 07 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: 01 07 00 09 64 00 00 00 00 00 FF 0F 82 [11:36:58]process_action close_receipt done [11:36:58]requested_data is exist [11:36:58]produce_requested_data [11:36:58]requested_item fm.sn is exist - process it [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 11 00 00 [11:36:58]Write to MH i2c: E2 08 00 0A 64 80 11 00 00 00 00 00 00 E8 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 17 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 17 00 0A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3F [11:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:36:58]wFMCommunicate OK [11:36:58]requested_item fd.num is exist - process it [11:36:58]SAM_PROTO_GetFieldsCounters [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 13 00 00 [11:36:58]Write to MH i2c: E2 08 00 0B 64 80 13 00 00 00 00 00 00 EB [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 62 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 62 00 0B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 52 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 52 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_GetFieldsCounters done [11:36:58]requested_item shift.num is exist - process it [11:36:58]requested_item shift.opened is exist - process it [11:36:58]req_shift_opened [11:36:58]FM_GetShiftState [11:36:58]SAM_PROTO_GetShiftState [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 13 01 00 [11:36:58]Write to MH i2c: E2 08 00 0C 64 80 13 01 00 00 00 00 00 ED [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 0C 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 79 [11:36:58]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_GetShiftState done [11:36:58]FM_GetShiftState done [11:36:58]req_shift_opened done [11:36:58]requested_item shift.open_date is exist - process it [11:36:58]req_shift_open_date [11:36:58]req_shift_open_date done [11:36:58]produce_requested_data done [11:36:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92242,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:36:58]process_action_free close_receipt [11:36:58]json_value_free [11:36:58]json_value_free done [11:36:58]process_json_proto returns [11:36:58]Send response to host [11:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92242,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:36:58]free response buf [11:36:58]execute_script done [11:36:58]execute_script returns [11:36:58]free content buf [11:36:58]Sock 8.Close socket [11:36:58]Sock 8.Thread stoped [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:54]accept exits with 9 [11:45:54]New connection [11:45:54]New thread 3067399524 created [11:45:54]Thread 3067256164 joined [11:45:54]Waiting for new connection... [11:45:54] Sock 9.Parse request [11:45:54]Sock 9.Check first char [11:45:54]Sock 9.First char is OK [11:45:54]request: POST /json_proto HTTP/1.0 [11:45:54]Method: POST [11:45:54]URL: /json_proto [11:45:54]Method is POST - this is cgi request [11:45:54]url: /json_proto [11:45:54]query_string will be loaded in cgi processing [11:45:54]execute_cgi json_proto POST (null) [11:45:54]execute_cgi path=json_proto method=POST [11:45:54]POST find Content-Length [11:45:54]Host: 172.17.57.71:8080 [11:45:54]Content-Length: 623 [11:45:54]Content-Type: application/json [11:45:54] [11:45:54]POST finish read [11:45:54]Found Content-Length = 623 [11:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127176", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:54]execute_script... [11:45: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 : (3)127176", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:54]POST & json_proto [11:45:54]process_json_proto [11:45:54]json parsed OK: [11:45:54]protocol is kg_v1.0 [11:45:54]action value=close_receipt [11:45:54]process_action close_receipt [11:45:54]cmd_close_receipt [11:45:54]MH_GetDate [11:45:54]Write to MH i2c: F0 00 00 0D 64 60 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 09 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 09 00 0D 64 00 FD 25 E4 66 33 3A A4 66 4C [11:45:54]GetLastDocTimeStamp 1726227424 [11:45:54]current date 1726227965 [11:45:54]FM_GetShiftState [11:45:54]SAM_PROTO_GetShiftState [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 13 01 00 [11:45:54]Write to MH i2c: E2 08 00 0E 64 80 13 01 00 00 00 00 00 EF [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 0E 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7B [11:45:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetShiftState done [11:45:54]FM_GetShiftState done [11:45:54]opened in 1726186930 [11:45:54]opened+sec_in_day 1726273330 [11:45:54]quantity*price = 14400 [11:45:54]sum+1 = 14401 [11:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 51 13.09.2024 11:46 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92243 ФПД: 77788233942422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T114605&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92243&fm=77788233942422&tin=02508201610067®Number=0000000000091423&sum=14400 0 [11:45:55]StoreToDocumentArchive [11:45:55]shift 505 fd 92243 [11:45:55]save to /storage/0505/doc_00092243 [11:45:55]save last doc name /storage/0505/doc_00092243 to /storage/kkm_last_doc_name [11:45:55]save OK [11:45:55]Clear old archive folders... [11:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:45:55]tlvbuf is 01658470 [11:45:55]SAM_PROTO_ClearQueue [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 09 00 00 [11:45:55]Write to MH i2c: E2 08 00 1B 64 80 09 00 00 00 00 00 00 F1 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [11:45:55]RAPDU: 90 00 [11:45:55]wFMCommunicate OK [11:45:55]SAM_PROTO_ClearQueue done [11:45:55]KKMCreateOFDPacket [11:45:55]OFDProtocolAddRootSTLVToBuf [11:45:55]FM_MakeSignedData [11:45:55]FM_MakeSignedData [11:45:55]SAM_PROTO_SignData [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 0D 01 02 [11:45:55]Write to MH i2c: E2 08 00 1C 64 80 0D 01 02 00 00 00 00 F9 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [11:45:55]RAPDU: 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=255 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 FD 25 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [11:45:55]Write to MH i2c: E2 02 01 1D 64 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 FD 25 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 91 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 1D 64 00 90 00 F5 [11:45:55]RAPDU: 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=34 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 68 01 00 35 04 06 00 46 BF 7C 0D 45 96 [11:45:55]Write to MH i2c: E2 25 00 1E 64 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 68 01 00 35 04 06 00 46 BF 7C 0D 45 96 00 00 E6 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 03 00 1E 64 00 90 00 F6 [11:45:55]RAPDU: 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 0D 03 02 [11:45:55]Write to MH i2c: E2 08 00 1F 64 80 0D 03 02 00 00 00 00 FE [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 0B 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 0B 00 1F 64 00 19 5C 1D BB 82 12 F1 E4 90 00 B5 [11:45:55]RAPDU: 19 5C 1D BB 82 12 F1 E4 90 00 [11:45:55]wFMCommunicate OK [11:45:55]SAM_PROTO_SignData done [11:45:55]FM_MakeSignedData done [11:45:55]CreateOFDProtocolMessage [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 11 00 00 [11:45:55]Write to MH i2c: E2 08 00 20 64 80 11 00 00 00 00 00 00 FE [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 17 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 17 00 20 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 55 [11:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:45:55]wFMCommunicate OK [11:45:55]CreateOFDProtocolMessage done [11:45:55]OFDSenderStorePacket 92243 [11:45:55]StoreOFDPacket docnum=92243 [11:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 DE D8 1F 01 B7 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 FD 25 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 68 01 00 35 04 06 00 46 BF 7C 0D 45 96 19 5C 1D BB 82 12 F1 E4 [11:45:55]CheckFolder [11:45:55]dirname=/storage/ofd_packets [11:45:55]CheckFolder done [11:45:55]ProducePacketName [11:45:55]name=ofd_packets/00092243 [11:45:55]NVStorageSaveData ofd_packets/00092243 [11:45:55]File name is /storage/ofd_packets/00092243 [11:45:55]Write 325 bytes [11:45:55]NVStorageSaveData done [11:45:55]OFDSenderStorePacket done [11:45:55]KKMCreateOFDPacket done [11:45:55]NVStorageSaveData kkm_last_timestamp [11:45:55]File name is /storage/kkm_last_timestamp [11:45:55]Write 4 bytes [11:45:55]NVStorageSaveData done [11:45:55]ExternCall_PrintAddStr [11:45:55]wPrintStart [11:45:55]Write to MH i2c: 01 00 00 21 64 85 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 07 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 07 00 21 64 00 00 00 00 00 FF 0F 9A [11:45:55]RasterBufferAndPrint [11:45:55]line Счет N : (3)127176 [11:45:55]line ИНН: 02508201610067 [11:45:55]line Контрольно-Кассовый Чек [11:45:55]line ПРОДАЖА [11:45:55]line Товар: 48743587 [11:45:55]line Сигареты Winston XStyle Silver [11:45:55]line 1.000 * 144.00 [11:45:55]line = 144.00 [11:45:55]line НДС 12% НСП 1% [11:45:55]line > о реализуемом товаре [11:45:55]line ИТОГО: 144.00 [11:45:55]line НСП 1% : 1.27 [11:45:55]line НДС 12% : 15.29 [11:45:55]line Наличными: 144.00 [11:45:55]line Безнал.: 0.00 [11:45:55]line Место: АЗС № 5 "Партнер Нефть" [11:45:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:45:55]line СНО: Общий режим [11:45:55]line Чек 51 13.09.2024 11:46 [11:45:55]line Смена: 505 ФФД: 1.0 [11:45:55]line ЗНМ: 03000000022 [11:45:55]line РНМ: 0000000000091423 [11:45:55]line Версия ККМ: 001 [11:45:55]line ФМ: 0000000000874692 [11:45:55]line ФД: 92243 [11:45:55]line ФПД: 77788233942422 [11:45:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T114605&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92243&fm=77788233942422&tin=02508201610067®Number=0000000000091423&sum=14400 [11:45:55]line 0 [11:45:56]written 0, free lines is 4095 [11:45:56]OFD Sender: Processing packet 92243 [packets to send 63, broken 62] [11:45:56]ProducePacketName [11:45:56]name=ofd_packets/00092243 [11:45:56]OFD Sender: To server: pG, [11:45:56]CommunicateWithHost lk.salyk.kg:30040 [11:45:56]ConnectInit lk.salyk.kg [11:45:56]Connected sock=10 [11:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 DE D8 1F 01 B7 0A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 FD 25 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 68 01 00 35 04 06 00 46 BF 7C 0D 45 96 19 5C 1D BB 82 12 F1 E4 [11:45:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 49 47 00 F8 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 34 36 39 32 10 04 04 00 53 68 01 00 F4 03 04 00 7C CE E3 66 B6 04 01 00 00 32 6B DE 05 AF 12 83 4A [11:45:56]CommunicateWithHost err = 0 [11:45:56]CheckOFDResponse [11:45:56]1017 (14) - 77093643461234 [11:45:56]1041 (16) - 0000000000874692 [11:45:56]1040 (4) - 92243 [11:45:56]1012 (4) - 13.09.2024 05:32 [11:45:56]1206 (1) - 0 [11:45:56]OFD Sender: Remove packet 92243 [11:45:56]ProducePacketName [11:45:56]name=ofd_packets/00092243 [11:45:56]NVStorageDeleteData [11:45:56]Write to MH i2c: 01 00 00 4A 64 AE [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 4A 64 00 00 00 00 00 FA 0C BB [11:45:56]RasterBufferAndPrint [11:45:56]line [11:45:56]line [11:45:56]line [11:45:56]line [11:45:56]line [11:45:56]written 0, free lines is 3332 [11:45:56]MH_Cut [11:45:56]Write to MH i2c: D1 01 00 51 64 01 87 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: D1 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: D1 01 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: D1 01 00 51 64 00 86 [11:45:56]Write to MH i2c: 01 00 00 52 64 B6 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]OFD Sender: No OFD packet to send [11:45:57]*** Cut start [11:45:57]*** Purtial cut [11:45:57]*** Stage 1: CUTSNS_PIN = 1 [11:45:59]Read from MH i2c: 01 [11:45:59]MH_I2C_Read... [11:45:59]*** Stop cut motor [11:45:59]*** Cut end [11:45:59]Read from MH i2c: 01 07 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: 01 07 00 52 64 00 00 00 00 00 FF 0F CB [11:45:59]process_action close_receipt done [11:45:59]requested_data is exist [11:45:59]produce_requested_data [11:45:59]requested_item fm.sn is exist - process it [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 11 00 00 [11:45:59]Write to MH i2c: E2 08 00 53 64 80 11 00 00 00 00 00 00 31 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 53 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 88 [11:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:45:59]wFMCommunicate OK [11:45:59]requested_item fd.num is exist - process it [11:45:59]SAM_PROTO_GetFieldsCounters [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 00 00 [11:45:59]Write to MH i2c: E2 08 00 54 64 80 13 00 00 00 00 00 00 34 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 62 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 62 00 54 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 53 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [11: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 53 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetFieldsCounters done [11:45:59]requested_item shift.num is exist - process it [11:45:59]requested_item shift.opened is exist - process it [11:45:59]req_shift_opened [11:45:59]FM_GetShiftState [11:45:59]SAM_PROTO_GetShiftState [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 01 00 [11:45:59]Write to MH i2c: E2 08 00 55 64 80 13 01 00 00 00 00 00 36 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 55 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C2 [11:45:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetShiftState done [11:45:59]FM_GetShiftState done [11:45:59]req_shift_opened done [11:45:59]requested_item shift.open_date is exist - process it [11:45:59]req_shift_open_date [11:45:59]req_shift_open_date done [11:45:59]produce_requested_data done [11:45:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92243,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:45:59]process_action_free close_receipt [11:45:59]json_value_free [11:45:59]json_value_free done [11:45:59]process_json_proto returns [11:45:59]Send response to host [11:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92243,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:45:59]free response buf [11:45:59]execute_script done [11:45:59]execute_script returns [11:45:59]free content buf [11:45:59]Sock 9.Close socket [11:45:59]Sock 9.Thread stoped [11:46:01]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [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: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: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:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:23]accept exits with 8 [11:54:23]New connection [11:54:23]New thread 3067256164 created [11:54:23]Thread 3067399524 joined [11:54:23]Waiting for new connection... [11:54:23] Sock 8.Parse request [11:54:23]Sock 8.Check first char [11:54:23]Sock 8.First char is OK [11:54:23]request: POST /json_proto HTTP/1.0 [11:54:23]Method: POST [11:54:23]URL: /json_proto [11:54:23]Method is POST - this is cgi request [11:54:23]url: /json_proto [11:54:23]query_string will be loaded in cgi processing [11:54:23]execute_cgi json_proto POST (null) [11:54:23]execute_cgi path=json_proto method=POST [11:54:23]POST find Content-Length [11:54:23]Host: 172.17.57.71:8080 [11:54:23]Content-Length: 630 [11:54:23]Content-Type: application/json [11:54:23] [11:54:23]POST finish read [11:54:23]Found Content-Length = 630 [11:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127177", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:23]execute_script... [11:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127177", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:23]POST & json_proto [11:54:23]process_json_proto [11:54:23]json parsed OK: [11:54:23]protocol is kg_v1.0 [11:54:23]action value=close_receipt [11:54:23]process_action close_receipt [11:54:23]cmd_close_receipt [11:54:23]MH_GetDate [11:54:23]Write to MH i2c: F0 00 00 56 64 A9 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: F0 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: F0 09 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: F0 09 00 56 64 00 FA 27 E4 66 33 3A A4 66 94 [11:54:23]GetLastDocTimeStamp 1726227965 [11:54:23]current date 1726228474 [11:54:23]FM_GetShiftState [11:54:23]SAM_PROTO_GetShiftState [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 13 01 00 [11:54:23]Write to MH i2c: E2 08 00 57 64 80 13 01 00 00 00 00 00 38 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0E 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0E 00 57 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C4 [11:54:23]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:54:23]wFMCommunicate OK [11:54:23]SAM_PROTO_GetShiftState done [11:54:23]FM_GetShiftState done [11:54:23]opened in 1726186930 [11:54:23]opened+sec_in_day 1726273330 [11:54:23]quantity*price = 5000 [11:54:23]sum+1 = 5001 [11:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 52 13.09.2024 11:54 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92244 ФПД: 181740988976028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T115434&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92244&fm=181740988976028&tin=02508201610067®Number=0000000000091423&sum=5000 0 [11:54:24]StoreToDocumentArchive [11:54:24]shift 505 fd 92244 [11:54:24]save to /storage/0505/doc_00092244 [11:54:24]save last doc name /storage/0505/doc_00092244 to /storage/kkm_last_doc_name [11:54:24]save OK [11:54:24]Clear old archive folders... [11:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:54:24]tlvbuf is 01657AE0 [11:54:24]SAM_PROTO_ClearQueue [11:54:24]wFMCommunicate request_size=4 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 09 00 00 [11:54:24]Write to MH i2c: E2 08 00 64 64 80 09 00 00 00 00 00 00 3A [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 64 64 00 90 00 3C [11:54:24]RAPDU: 90 00 [11:54:24]wFMCommunicate OK [11:54:24]SAM_PROTO_ClearQueue done [11:54:24]KKMCreateOFDPacket [11:54:24]OFDProtocolAddRootSTLVToBuf [11:54:24]FM_MakeSignedData [11:54:24]FM_MakeSignedData [11:54:24]SAM_PROTO_SignData [11:54:24]wFMCommunicate request_size=4 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 0D 01 02 [11:54:24]Write to MH i2c: E2 08 00 65 64 80 0D 01 02 00 00 00 00 42 [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 65 64 00 90 00 3D [11:54:24]RAPDU: 90 00 [11:54:24]wFMCommunicate OK [11:54:24]wFMCommunicate request_size=255 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 FA 27 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:54:24]Write to MH i2c: E2 02 01 66 64 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 FA 27 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 EC [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 66 64 00 90 00 3E [11:54:24]RAPDU: 90 00 [11:54:24]wFMCommunicate OK [11:54:24]wFMCommunicate request_size=28 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 54 68 01 00 35 04 06 00 A5 4A DF 16 CB 9C [11:54:24]Write to MH i2c: E2 1F 00 67 64 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 54 68 01 00 35 04 06 00 A5 4A DF 16 CB 9C 00 00 DE [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 03 00 67 64 00 90 00 3F [11:54:24]RAPDU: 90 00 [11:54:24]wFMCommunicate OK [11:54:24]wFMCommunicate request_size=4 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 0D 03 02 [11:54:24]Write to MH i2c: E2 08 00 68 64 80 0D 03 02 00 00 00 00 47 [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 0B 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 0B 00 68 64 00 49 5C A3 42 9A D8 D9 4E 90 00 6B [11:54:24]RAPDU: 49 5C A3 42 9A D8 D9 4E 90 00 [11:54:24]wFMCommunicate OK [11:54:24]SAM_PROTO_SignData done [11:54:24]FM_MakeSignedData done [11:54:24]CreateOFDProtocolMessage [11:54:24]wFMCommunicate request_size=4 [11:54:24]MH_SAM_APDU [11:54:24]CAPDU: 80 11 00 00 [11:54:24]Write to MH i2c: E2 08 00 69 64 80 11 00 00 00 00 00 00 47 [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:24]Read from MH i2c: E2 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 17 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: E2 17 00 69 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9E [11:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:54:24]wFMCommunicate OK [11:54:24]CreateOFDProtocolMessage done [11:54:24]OFDSenderStorePacket 92244 [11:54:24]StoreOFDPacket docnum=92244 [11:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 B3 9E 19 01 20 F4 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 FA 27 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 68 01 00 35 04 06 00 A5 4A DF 16 CB 9C 49 5C A3 42 9A D8 D9 4E [11:54:24]CheckFolder [11:54:24]dirname=/storage/ofd_packets [11:54:24]CheckFolder done [11:54:24]ProducePacketName [11:54:24]name=ofd_packets/00092244 [11:54:24]NVStorageSaveData ofd_packets/00092244 [11:54:24]File name is /storage/ofd_packets/00092244 [11:54:24]Write 319 bytes [11:54:24]NVStorageSaveData done [11:54:24]OFDSenderStorePacket done [11:54:24]KKMCreateOFDPacket done [11:54:24]NVStorageSaveData kkm_last_timestamp [11:54:24]File name is /storage/kkm_last_timestamp [11:54:24]Write 4 bytes [11:54:24]NVStorageSaveData done [11:54:24]ExternCall_PrintAddStr [11:54:24]wPrintStart [11:54:24]Write to MH i2c: 01 00 00 6A 64 CE [11:54:24]Write i2c OK [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: 01 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: 01 07 00 [11:54:24]MH_I2C_Read... [11:54:24]Read from MH i2c: 01 07 00 6A 64 00 00 00 00 00 FF 0F E3 [11:54:24]RasterBufferAndPrint [11:54:24]line Счет N : (3)127177 [11:54:24]line ИНН: 02508201610067 [11:54:24]line Контрольно-Кассовый Чек [11:54:24]line ПРОДАЖА [11:54:24]line Товар: 4700000160358 [11:54:24]line Вода Легенда 1л [11:54:24]line 1.000 * 50.00 [11:54:24]line = 50.00 [11:54:24]line НДС 12% НСП 1% [11:54:24]line > о реализуемом товаре [11:54:24]line ИТОГО: 50.00 [11:54:24]line НСП 1% : 0.44 [11:54:24]line НДС 12% : 5.31 [11:54:24]line Наличными: 50.00 [11:54:24]line Безнал.: 0.00 [11:54:24]line Место: АЗС № 5 "Партнер Нефть" [11:54:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:54:24]line СНО: Общий режим [11:54:24]line Чек 52 13.09.2024 11:54 [11:54:24]line Смена: 505 ФФД: 1.0 [11:54:24]line ЗНМ: 03000000022 [11:54:24]line РНМ: 0000000000091423 [11:54:24]line Версия ККМ: 001 [11:54:24]line ФМ: 0000000000874692 [11:54:24]line ФД: 92244 [11:54:24]line ФПД: 181740988976028 [11:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T115434&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92244&fm=181740988976028&tin=02508201610067®Number=0000000000091423&sum=5000 [11:54:24]line 0 [11:54:24]written 0, free lines is 4095 [11:54:24]OFD Sender: Processing packet 92244 [packets to send 63, broken 62] [11:54:24]ProducePacketName [11:54:24]name=ofd_packets/00092244 [11:54:24]OFD Sender: To server: pG, [11:54:24]CommunicateWithHost lk.salyk.kg:30040 [11:54:24]ConnectInit lk.salyk.kg [11:54:24]Connected sock=10 [11:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 B3 9E 19 01 20 F4 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 FA 27 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 68 01 00 35 04 06 00 A5 4A DF 16 CB 9C 49 5C A3 42 9A D8 D9 4E [11:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E0 B6 47 00 AC B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 68 01 00 F4 03 04 00 78 D0 E3 66 B6 04 01 00 00 59 26 FA 82 DA A1 DC 2B [11:54:25]CommunicateWithHost err = 0 [11:54:25]CheckOFDResponse [11:54:25]1017 (14) - 77093643461234 [11:54:25]1041 (16) - 0000000000874692 [11:54:25]1040 (4) - 92244 [11:54:25]1012 (4) - 13.09.2024 05:41 [11:54:25]1206 (1) - 0 [11:54:25]OFD Sender: Remove packet 92244 [11:54:25]ProducePacketName [11:54:25]name=ofd_packets/00092244 [11:54:25]NVStorageDeleteData [11:54:25]Write to MH i2c: 01 00 00 92 64 F6 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 07 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 07 00 92 64 00 00 00 00 00 27 0D 31 [11:54:25]RasterBufferAndPrint [11:54:25]line [11:54:25]line [11:54:25]line [11:54:25]line [11:54:25]line [11:54:25]written 0, free lines is 3374 [11:54:25]MH_Cut [11:54:25]Write to MH i2c: D1 01 00 99 64 01 CF [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: D1 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: D1 01 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: D1 01 00 99 64 00 CE [11:54:25]Write to MH i2c: 01 00 00 9A 64 FE [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]OFD Sender: No OFD packet to send [11:54:25]*** Cut start [11:54:25]*** Purtial cut [11:54:25]*** Stage 1: CUTSNS_PIN = 1 [11:54:27]Read from MH i2c: 01 [11:54:27]MH_I2C_Read... [11:54:27]*** Stop cut motor [11:54:27]*** Cut end [11:54:27]Read from MH i2c: 01 07 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 07 00 9A 64 00 00 00 00 00 FF 0F 13 [11:54:27]process_action close_receipt done [11:54:27]requested_data is exist [11:54:27]produce_requested_data [11:54:27]requested_item fm.sn is exist - process it [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 11 00 00 [11:54:27]Write to MH i2c: E2 08 00 9B 64 80 11 00 00 00 00 00 00 79 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 17 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 17 00 9B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D0 [11:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:54:28]wFMCommunicate OK [11:54:28]requested_item fd.num is exist - process it [11:54:28]SAM_PROTO_GetFieldsCounters [11:54:28]wFMCommunicate request_size=4 [11:54:28]MH_SAM_APDU [11:54:28]CAPDU: 80 13 00 00 [11:54:28]Write to MH i2c: E2 08 00 9C 64 80 13 00 00 00 00 00 00 7C [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 62 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 62 00 9C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 54 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 54 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:28]wFMCommunicate OK [11:54:28]SAM_PROTO_GetFieldsCounters done [11:54:28]requested_item shift.num is exist - process it [11:54:28]requested_item shift.opened is exist - process it [11:54:28]req_shift_opened [11:54:28]FM_GetShiftState [11:54:28]SAM_PROTO_GetShiftState [11:54:28]wFMCommunicate request_size=4 [11:54:28]MH_SAM_APDU [11:54:28]CAPDU: 80 13 01 00 [11:54:28]Write to MH i2c: E2 08 00 9D 64 80 13 01 00 00 00 00 00 7E [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 0E 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 0E 00 9D 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0A [11:54:28]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [11:54:28]wFMCommunicate OK [11:54:28]SAM_PROTO_GetShiftState done [11:54:28]FM_GetShiftState done [11:54:28]req_shift_opened done [11:54:28]requested_item shift.open_date is exist - process it [11:54:28]req_shift_open_date [11:54:28]req_shift_open_date done [11:54:28]produce_requested_data done [11:54:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92244,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [11:54:28]process_action_free close_receipt [11:54:28]json_value_free [11:54:28]json_value_free done [11:54:28]process_json_proto returns [11:54:28]Send response to host [11:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92244,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [11:54:28]free response buf [11:54:28]execute_script done [11:54:28]execute_script returns [11:54:28]free content buf [11:54:28]Sock 8.Close socket [11:54:28]Sock 8.Thread stoped [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]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:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:31]accept exits with 9 [12:00:31]New connection [12:00:31]New thread 3067399524 created [12:00:31]Thread 3067256164 joined [12:00:31]Waiting for new connection... [12:00:31] Sock 9.Parse request [12:00:31]Sock 9.Check first char [12:00:31]Sock 9.First char is OK [12:00:31]request: POST /json_proto HTTP/1.0 [12:00:31]Method: POST [12:00:31]URL: /json_proto [12:00:31]Method is POST - this is cgi request [12:00:31]url: /json_proto [12:00:31]query_string will be loaded in cgi processing [12:00:31]execute_cgi json_proto POST (null) [12:00:31]execute_cgi path=json_proto method=POST [12:00:31]POST find Content-Length [12:00:31]Host: 172.17.57.71:8080 [12:00:31]Content-Length: 632 [12:00:31]Content-Type: application/json [12:00:31] [12:00:31]POST finish read [12:00:31]Found Content-Length = 632 [12:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127178", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:31]execute_script... [12:00: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 : (3)127178", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:31]POST & json_proto [12:00:31]process_json_proto [12:00:31]json parsed OK: [12:00:31]protocol is kg_v1.0 [12:00:31]action value=close_receipt [12:00:31]process_action close_receipt [12:00:31]cmd_close_receipt [12:00:31]MH_GetDate [12:00:31]Write to MH i2c: F0 00 00 9E 64 F1 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 09 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 09 00 9E 64 00 6A 29 E4 66 33 3A A4 66 4E [12:00:31]GetLastDocTimeStamp 1726228474 [12:00:31]current date 1726228842 [12:00:31]FM_GetShiftState [12:00:31]SAM_PROTO_GetShiftState [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 13 01 00 [12:00:31]Write to MH i2c: E2 08 00 9F 64 80 13 01 00 00 00 00 00 80 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 9F 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0C [12:00:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_GetShiftState done [12:00:31]FM_GetShiftState done [12:00:31]opened in 1726186930 [12:00:31]opened+sec_in_day 1726273330 [12:00:31]quantity*price = 4000 [12:00:31]sum+1 = 4001 [12:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 53 13.09.2024 12:00 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92245 ФПД: 123594422691030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120042&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92245&fm=123594422691030&tin=02508201610067®Number=0000000000091423&sum=4000 0 [12:00:32]StoreToDocumentArchive [12:00:32]shift 505 fd 92245 [12:00:32]save to /storage/0505/doc_00092245 [12:00:32]save last doc name /storage/0505/doc_00092245 to /storage/kkm_last_doc_name [12:00:32]save OK [12:00:32]Clear old archive folders... [12:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:00:32]tlvbuf is 017845F0 [12:00:32]SAM_PROTO_ClearQueue [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 09 00 00 [12:00:32]Write to MH i2c: E2 08 00 AC 64 80 09 00 00 00 00 00 00 82 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 AC 64 00 90 00 84 [12:00:32]RAPDU: 90 00 [12:00:32]wFMCommunicate OK [12:00:32]SAM_PROTO_ClearQueue done [12:00:32]KKMCreateOFDPacket [12:00:32]OFDProtocolAddRootSTLVToBuf [12:00:32]FM_MakeSignedData [12:00:32]FM_MakeSignedData [12:00:32]SAM_PROTO_SignData [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 0D 01 02 [12:00:32]Write to MH i2c: E2 08 00 AD 64 80 0D 01 02 00 00 00 00 8A [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 AD 64 00 90 00 85 [12:00:32]RAPDU: 90 00 [12:00:32]wFMCommunicate OK [12:00:32]wFMCommunicate request_size=255 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6A 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:00:32]Write to MH i2c: E2 02 01 AE 64 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6A 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 75 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 AE 64 00 90 00 86 [12:00:32]RAPDU: 90 00 [12:00:32]wFMCommunicate OK [12:00:32]wFMCommunicate request_size=30 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 55 68 01 00 35 04 06 00 70 68 91 A9 24 D6 [12:00:32]Write to MH i2c: E2 21 00 AF 64 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 55 68 01 00 35 04 06 00 70 68 91 A9 24 D6 00 00 54 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 03 00 AF 64 00 90 00 87 [12:00:32]RAPDU: 90 00 [12:00:32]wFMCommunicate OK [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 0D 03 02 [12:00:32]Write to MH i2c: E2 08 00 B0 64 80 0D 03 02 00 00 00 00 8F [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0B 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0B 00 B0 64 00 96 16 53 70 63 8D 83 C6 90 00 38 [12:00:32]RAPDU: 96 16 53 70 63 8D 83 C6 90 00 [12:00:32]wFMCommunicate OK [12:00:32]SAM_PROTO_SignData done [12:00:32]FM_MakeSignedData done [12:00:32]CreateOFDProtocolMessage [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 11 00 00 [12:00:32]Write to MH i2c: E2 08 00 B1 64 80 11 00 00 00 00 00 00 8F [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 17 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 17 00 B1 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [12:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:00:32]wFMCommunicate OK [12:00:32]CreateOFDProtocolMessage done [12:00:32]OFDSenderStorePacket 92245 [12:00:32]StoreOFDPacket docnum=92245 [12:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 EE 07 1B 01 1C EF 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6A 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 68 01 00 35 04 06 00 70 68 91 A9 24 D6 96 16 53 70 63 8D 83 C6 [12:00:32]CheckFolder [12:00:32]dirname=/storage/ofd_packets [12:00:32]CheckFolder done [12:00:32]ProducePacketName [12:00:32]name=ofd_packets/00092245 [12:00:32]NVStorageSaveData ofd_packets/00092245 [12:00:32]File name is /storage/ofd_packets/00092245 [12:00:32]Write 321 bytes [12:00:32]NVStorageSaveData done [12:00:32]OFDSenderStorePacket done [12:00:32]KKMCreateOFDPacket done [12:00:33]NVStorageSaveData kkm_last_timestamp [12:00:33]File name is /storage/kkm_last_timestamp [12:00:33]Write 4 bytes [12:00:33]NVStorageSaveData done [12:00:33]ExternCall_PrintAddStr [12:00:33]wPrintStart [12:00:33]Write to MH i2c: 01 00 00 B2 64 16 [12:00:33]OFD Sender: Processing packet 92245 [packets to send 63, broken 62] [12:00:33]ProducePacketName [12:00:33]name=ofd_packets/00092245 [12:00:33]OFD Sender: To server: pG, [12:00:33]CommunicateWithHost lk.salyk.kg:30040 [12:00:33]ConnectInit lk.salyk.kg [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 B2 64 00 00 00 00 00 FF 0F 2B [12:00:33]RasterBufferAndPrint [12:00:33]line Счет N : (3)127178 [12:00:33]line ИНН: 02508201610067 [12:00:33]line Контрольно-Кассовый Чек [12:00:33]line ПРОДАЖА [12:00:33]line Товар: 4700000160211 [12:00:33]line Вода Легенда 0,5л [12:00:33]line 1.000 * 40.00 [12:00:33]line = 40.00 [12:00:33]line НДС 12% НСП 1% [12:00:33]line > о реализуемом товаре [12:00:33]line ИТОГО: 40.00 [12:00:33]line НСП 1% : 0.35 [12:00:33]line НДС 12% : 4.25 [12:00:33]line Наличными: 40.00 [12:00:33]line Безнал.: 0.00 [12:00:33]line Место: АЗС № 5 "Партнер Нефть" [12:00:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:00:33]line СНО: Общий режим [12:00:33]line Чек 53 13.09.2024 12:00 [12:00:33]line Смена: 505 ФФД: 1.0 [12:00:33]line ЗНМ: 03000000022 [12:00:33]line РНМ: 0000000000091423 [12:00:33]line Версия ККМ: 001 [12:00:33]line ФМ: 0000000000874692 [12:00:33]line ФД: 92245 [12:00:33]line ФПД: 123594422691030 [12:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120042&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92245&fm=123594422691030&tin=02508201610067®Number=0000000000091423&sum=4000 [12:00:33]line 0 [12:00:33]written 0, free lines is 4095 [12:00:33]Connected sock=10 [12:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 EE 07 1B 01 1C EF 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6A 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 68 01 00 35 04 06 00 70 68 91 A9 24 D6 96 16 53 70 63 8D 83 C6 [12:00:33]Write to MH i2c: 01 00 00 DA 64 3E [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 DA 64 00 00 00 00 00 10 0D 62 [12:00:33]RasterBufferAndPrint [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]written 0, free lines is 3352 [12:00:33]MH_Cut [12:00:33]Write to MH i2c: D1 01 00 E1 64 01 17 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: D1 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: D1 01 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: D1 01 00 E1 64 00 16 [12:00:33]Write to MH i2c: 01 00 00 E2 64 46 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F3 B7 47 00 C9 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 68 01 00 F4 03 04 00 E9 D1 E3 66 B6 04 01 00 00 AF 0F A6 1E 73 8D CE 4E [12:00:33]CommunicateWithHost err = 0 [12:00:33]CheckOFDResponse [12:00:33]1017 (14) - 77093643461234 [12:00:33]1041 (16) - 0000000000874692 [12:00:33]1040 (4) - 92245 [12:00:33]1012 (4) - 13.09.2024 05:47 [12:00:33]1206 (1) - 0 [12:00:33]OFD Sender: Remove packet 92245 [12:00:33]ProducePacketName [12:00:33]name=ofd_packets/00092245 [12:00:33]NVStorageDeleteData [12:00:34]OFD Sender: No OFD packet to send [12:00:34]*** Cut start [12:00:34]*** Purtial cut [12:00:34]*** Stage 1: CUTSNS_PIN = 1 [12:00:36]Read from MH i2c: 01 [12:00:36]MH_I2C_Read... [12:00:36]*** Stop cut motor [12:00:36]*** Cut end [12:00:36]Read from MH i2c: 01 07 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: 01 07 00 E2 64 00 00 00 00 00 FF 0F 5B [12:00:36]process_action close_receipt done [12:00:36]requested_data is exist [12:00:36]produce_requested_data [12:00:36]requested_item fm.sn is exist - process it [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 11 00 00 [12:00:36]Write to MH i2c: E2 08 00 E3 64 80 11 00 00 00 00 00 00 C1 [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 E3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 18 [12:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:00:36]wFMCommunicate OK [12:00:36]requested_item fd.num is exist - process it [12:00:36]SAM_PROTO_GetFieldsCounters [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 00 00 [12:00:36]Write to MH i2c: E2 08 00 E4 64 80 13 00 00 00 00 00 00 C4 [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 E4 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 55 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 55 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetFieldsCounters done [12:00:36]requested_item shift.num is exist - process it [12:00:36]requested_item shift.opened is exist - process it [12:00:36]req_shift_opened [12:00:36]FM_GetShiftState [12:00:36]SAM_PROTO_GetShiftState [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 01 00 [12:00:36]Write to MH i2c: E2 08 00 E5 64 80 13 01 00 00 00 00 00 C6 [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 E5 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 52 [12:00:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetShiftState done [12:00:36]FM_GetShiftState done [12:00:36]req_shift_opened done [12:00:36]requested_item shift.open_date is exist - process it [12:00:36]req_shift_open_date [12:00:36]req_shift_open_date done [12:00:36]produce_requested_data done [12:00:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92245,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:00:36]process_action_free close_receipt [12:00:36]json_value_free [12:00:36]json_value_free done [12:00:36]process_json_proto returns [12:00:36]Send response to host [12:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92245,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:00:36]free response buf [12:00:36]execute_script done [12:00:36]execute_script returns [12:00:36]free content buf [12:00:36]Sock 9.Close socket [12:00:36]Sock 9.Thread stoped [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:31]accept exits with 8 [12:01:31]New connection [12:01:31]New thread 3067256164 created [12:01:31]Thread 3067399524 joined [12:01:31]Waiting for new connection... [12:01:31] Sock 8.Parse request [12:01:31]Sock 8.Check first char [12:01:31]Sock 8.First char is OK [12:01:31]request: POST /json_proto HTTP/1.0 [12:01:31]Method: POST [12:01:31]URL: /json_proto [12:01:31]Method is POST - this is cgi request [12:01:31]url: /json_proto [12:01:31]query_string will be loaded in cgi processing [12:01:31]execute_cgi json_proto POST (null) [12:01:31]execute_cgi path=json_proto method=POST [12:01:31]POST find Content-Length [12:01:31]Host: 172.17.57.71:8080 [12:01:31]Content-Length: 632 [12:01:31]Content-Type: application/json [12:01:31] [12:01:31]POST finish read [12:01:31]Found Content-Length = 632 [12:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127179", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:31]execute_script... [12:01: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 : (3)127179", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:31]POST & json_proto [12:01:31]process_json_proto [12:01:31]json parsed OK: [12:01:31]protocol is kg_v1.0 [12:01:31]action value=close_receipt [12:01:31]process_action close_receipt [12:01:31]cmd_close_receipt [12:01:31]MH_GetDate [12:01:31]Write to MH i2c: F0 00 00 E6 64 39 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 09 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 09 00 E6 64 00 A6 29 E4 66 33 3A A4 66 D2 [12:01:31]GetLastDocTimeStamp 1726228842 [12:01:31]current date 1726228902 [12:01:31]FM_GetShiftState [12:01:31]SAM_PROTO_GetShiftState [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 13 01 00 [12:01:31]Write to MH i2c: E2 08 00 E7 64 80 13 01 00 00 00 00 00 C8 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0E 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0E 00 E7 64 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 54 [12:01:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_GetShiftState done [12:01:31]FM_GetShiftState done [12:01:31]opened in 1726186930 [12:01:31]opened+sec_in_day 1726273330 [12:01:31]quantity*price = 10000 [12:01:31]sum+1 = 10001 [12:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 54 13.09.2024 12:01 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92246 ФПД: 117874994015917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92246&fm=117874994015917&tin=02508201610067®Number=0000000000091423&sum=10000 0 [12:01:32]StoreToDocumentArchive [12:01:32]shift 505 fd 92246 [12:01:32]save to /storage/0505/doc_00092246 [12:01:32]save last doc name /storage/0505/doc_00092246 to /storage/kkm_last_doc_name [12:01:32]save OK [12:01:32]Clear old archive folders... [12:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:01:32]tlvbuf is 0159B080 [12:01:32]SAM_PROTO_ClearQueue [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 09 00 00 [12:01:32]Write to MH i2c: E2 08 00 F4 64 80 09 00 00 00 00 00 00 CA [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 F4 64 00 90 00 CC [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_ClearQueue done [12:01:32]KKMCreateOFDPacket [12:01:32]OFDProtocolAddRootSTLVToBuf [12:01:32]FM_MakeSignedData [12:01:32]FM_MakeSignedData [12:01:32]SAM_PROTO_SignData [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 01 02 [12:01:32]Write to MH i2c: E2 08 00 F5 64 80 0D 01 02 00 00 00 00 D2 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 F5 64 00 90 00 CD [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=255 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 36 00 00 00 F4 03 04 00 A6 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:01:32]Write to MH i2c: E2 02 01 F6 64 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 36 00 00 00 F4 03 04 00 A6 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 2D [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 F6 64 00 90 00 CE [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=28 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 56 68 01 00 35 04 06 00 6B 34 E9 25 6E AD [12:01:32]Write to MH i2c: E2 1F 00 F7 64 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 56 68 01 00 35 04 06 00 6B 34 E9 25 6E AD 00 00 ED [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 F7 64 00 90 00 CF [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 03 02 [12:01:32]Write to MH i2c: E2 08 00 F8 64 80 0D 03 02 00 00 00 00 D7 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 F8 64 00 FA A7 CC 52 0D 8F E0 51 90 00 64 [12:01:32]RAPDU: FA A7 CC 52 0D 8F E0 51 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_SignData done [12:01:32]FM_MakeSignedData done [12:01:32]CreateOFDProtocolMessage [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 11 00 00 [12:01:32]Write to MH i2c: E2 08 00 F9 64 80 11 00 00 00 00 00 00 D7 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 F9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [12:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:01:33]wFMCommunicate OK [12:01:33]CreateOFDProtocolMessage done [12:01:33]OFDSenderStorePacket 92246 [12:01:33]StoreOFDPacket docnum=92246 [12:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 72 14 19 01 43 C5 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 36 00 00 00 F4 03 04 00 A6 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 68 01 00 35 04 06 00 6B 34 E9 25 6E AD FA A7 CC 52 0D 8F E0 51 [12:01:33]CheckFolder [12:01:33]dirname=/storage/ofd_packets [12:01:33]CheckFolder done [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00092246 [12:01:33]NVStorageSaveData ofd_packets/00092246 [12:01:33]File name is /storage/ofd_packets/00092246 [12:01:33]Write 319 bytes [12:01:33]NVStorageSaveData done [12:01:33]OFDSenderStorePacket done [12:01:33]KKMCreateOFDPacket done [12:01:33]NVStorageSaveData kkm_last_timestamp [12:01:33]File name is /storage/kkm_last_timestamp [12:01:33]Write 4 bytes [12:01:33]NVStorageSaveData done [12:01:33]ExternCall_PrintAddStr [12:01:33]wPrintStart [12:01:33]Write to MH i2c: 01 00 00 FA 64 5E [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 FA 64 00 00 00 00 00 FF 0F 73 [12:01:33]RasterBufferAndPrint [12:01:33]line Счет N : (3)127179 [12:01:33]line ИНН: 02508201610067 [12:01:33]line Контрольно-Кассовый Чек [12:01:33]line ПРОДАЖА [12:01:33]line Товар: 4700000160358 [12:01:33]line Вода Легенда 1л [12:01:33]line 2.000 * 50.00 [12:01:33]line = 100.00 [12:01:33]line НДС 12% НСП 1% [12:01:33]line > о реализуемом товаре [12:01:33]line ИТОГО: 100.00 [12:01:33]line НСП 1% : 0.88 [12:01:33]line НДС 12% : 10.62 [12:01:33]line Наличными: 100.00 [12:01:33]line Безнал.: 0.00 [12:01:33]line Место: АЗС № 5 "Партнер Нефть" [12:01:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:01:33]line СНО: Общий режим [12:01:33]line Чек 54 13.09.2024 12:01 [12:01:33]line Смена: 505 ФФД: 1.0 [12:01:33]line ЗНМ: 03000000022 [12:01:33]line РНМ: 0000000000091423 [12:01:33]line Версия ККМ: 001 [12:01:33]line ФМ: 0000000000874692 [12:01:33]line ФД: 92246 [12:01:33]line ФПД: 117874994015917 [12:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92246&fm=117874994015917&tin=02508201610067®Number=0000000000091423&sum=10000 [12:01:33]OFD Sender: Processing packet 92246 [packets to send 63, broken 62] [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00092246 [12:01:33]OFD Sender: To server: pG, [12:01:33]CommunicateWithHost lk.salyk.kg:30040 [12:01:33]ConnectInit lk.salyk.kg [12:01:33]line 0 [12:01:33]written 0, free lines is 4095 [12:01:33]Connected sock=10 [12:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 72 14 19 01 43 C5 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 36 00 00 00 F4 03 04 00 A6 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 68 01 00 35 04 06 00 6B 34 E9 25 6E AD FA A7 CC 52 0D 8F E0 51 [12:01:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 10 E3 47 00 67 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 68 01 00 F4 03 04 00 25 D2 E3 66 B6 04 01 00 00 15 03 45 6F 9C A5 64 75 [12:01:33]CommunicateWithHost err = 0 [12:01:33]CheckOFDResponse [12:01:33]1017 (14) - 77093643461234 [12:01:33]1041 (16) - 0000000000874692 [12:01:33]1040 (4) - 92246 [12:01:33]1012 (4) - 13.09.2024 05:48 [12:01:33]1206 (1) - 0 [12:01:33]OFD Sender: Remove packet 92246 [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00092246 [12:01:33]NVStorageDeleteData [12:01:33]Write to MH i2c: 01 00 00 22 65 87 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 22 65 00 00 00 00 00 1D 0D B8 [12:01:33]RasterBufferAndPrint [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]written 0, free lines is 3364 [12:01:33]MH_Cut [12:01:33]Write to MH i2c: D1 01 00 29 65 01 60 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 01 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 01 00 29 65 00 5F [12:01:33]Write to MH i2c: 01 00 00 2A 65 8F [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:34]OFD Sender: No OFD packet to send [12:01:34]*** Cut start [12:01:34]*** Purtial cut [12:01:34]*** Stage 1: CUTSNS_PIN = 1 [12:01:36]Read from MH i2c: 01 [12:01:36]MH_I2C_Read... [12:01:36]*** Stop cut motor [12:01:36]*** Cut end [12:01:36]Read from MH i2c: 01 07 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: 01 07 00 2A 65 00 00 00 00 00 FF 0F A4 [12:01:36]process_action close_receipt done [12:01:36]requested_data is exist [12:01:36]produce_requested_data [12:01:36]requested_item fm.sn is exist - process it [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 11 00 00 [12:01:36]Write to MH i2c: E2 08 00 2B 65 80 11 00 00 00 00 00 00 0A [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 2B 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [12:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:01:36]wFMCommunicate OK [12:01:36]requested_item fd.num is exist - process it [12:01:36]SAM_PROTO_GetFieldsCounters [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 00 00 [12:01:36]Write to MH i2c: E2 08 00 2C 65 80 13 00 00 00 00 00 00 0D [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 2C 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 56 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 56 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetFieldsCounters done [12:01:36]requested_item shift.num is exist - process it [12:01:36]requested_item shift.opened is exist - process it [12:01:36]req_shift_opened [12:01:36]FM_GetShiftState [12:01:36]SAM_PROTO_GetShiftState [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 01 00 [12:01:36]Write to MH i2c: E2 08 00 2D 65 80 13 01 00 00 00 00 00 0F [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 2D 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9B [12:01:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetShiftState done [12:01:36]FM_GetShiftState done [12:01:36]req_shift_opened done [12:01:36]requested_item shift.open_date is exist - process it [12:01:36]req_shift_open_date [12:01:36]req_shift_open_date done [12:01:36]produce_requested_data done [12:01:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92246,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:01:36]process_action_free close_receipt [12:01:36]json_value_free [12:01:36]json_value_free done [12:01:36]process_json_proto returns [12:01:36]Send response to host [12:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92246,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:01:36]free response buf [12:01:36]execute_script done [12:01:36]execute_script returns [12:01:36]free content buf [12:01:36]Sock 8.Close socket [12:01:36]Sock 8.Thread stoped [12:01:38]accept exits with 9 [12:01:38]New connection [12:01:38]New thread 3067399524 created [12:01:38]Thread 3067256164 joined [12:01:38]Waiting for new connection... [12:01:38] Sock 9.Parse request [12:01:38]Sock 9.Check first char [12:01:38]Sock 9.First char is OK [12:01:38]request: POST /json_proto HTTP/1.0 [12:01:38]Method: POST [12:01:38]URL: /json_proto [12:01:38]Method is POST - this is cgi request [12:01:38]url: /json_proto [12:01:38]query_string will be loaded in cgi processing [12:01:38]execute_cgi json_proto POST (null) [12:01:38]execute_cgi path=json_proto method=POST [12:01:38]POST find Content-Length [12:01:38]Host: 172.17.57.71:8080 [12:01:38]Content-Length: 646 [12:01:38]Content-Type: application/json [12:01:38] [12:01:38]POST finish read [12:01:38]Found Content-Length = 646 [12:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127180", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:38]execute_script... [12:01: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 : (3)127180", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:38]POST & json_proto [12:01:38]process_json_proto [12:01:38]json parsed OK: [12:01:38]protocol is kg_v1.0 [12:01:38]action value=close_receipt [12:01:38]process_action close_receipt [12:01:38]cmd_close_receipt [12:01:38]MH_GetDate [12:01:38]Write to MH i2c: F0 00 00 2E 65 82 [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 2E 65 00 AD 29 E4 66 33 3A A4 66 22 [12:01:38]GetLastDocTimeStamp 1726228902 [12:01:38]current date 1726228909 [12:01:38]FM_GetShiftState [12:01:38]SAM_PROTO_GetShiftState [12:01:38]wFMCommunicate request_size=4 [12:01:38]MH_SAM_APDU [12:01:38]CAPDU: 80 13 01 00 [12:01:38]Write to MH i2c: E2 08 00 2F 65 80 13 01 00 00 00 00 00 11 [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:38]Read from MH i2c: E2 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 2F 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9D [12:01:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:01:38]wFMCommunicate OK [12:01:38]SAM_PROTO_GetShiftState done [12:01:38]FM_GetShiftState done [12:01:38]opened in 1726186930 [12:01:38]opened+sec_in_day 1726273330 [12:01:38]quantity*price = 13000 [12:01:38]sum+1 = 13001 [12:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 55 13.09.2024 12:01 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92247 ФПД: 126428836256796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120149&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92247&fm=126428836256796&tin=02508201610067®Number=0000000000091423&sum=13000 0 [12:01:39]StoreToDocumentArchive [12:01:39]shift 505 fd 92247 [12:01:39]save to /storage/0505/doc_00092247 [12:01:39]save last doc name /storage/0505/doc_00092247 to /storage/kkm_last_doc_name [12:01:39]save OK [12:01:39]Clear old archive folders... [12:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:01:39]tlvbuf is 01603000 [12:01:39]SAM_PROTO_ClearQueue [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 09 00 00 [12:01:39]Write to MH i2c: E2 08 00 3C 65 80 09 00 00 00 00 00 00 13 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 3C 65 00 90 00 15 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_ClearQueue done [12:01:39]KKMCreateOFDPacket [12:01:39]OFDProtocolAddRootSTLVToBuf [12:01:39]FM_MakeSignedData [12:01:39]FM_MakeSignedData [12:01:39]SAM_PROTO_SignData [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 01 02 [12:01:39]Write to MH i2c: E2 08 00 3D 65 80 0D 01 02 00 00 00 00 1B [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 3D 65 00 90 00 16 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]wFMCommunicate request_size=255 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 37 00 00 00 F4 03 04 00 AD 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [12:01:39]Write to MH i2c: E2 02 01 3E 65 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 37 00 00 00 F4 03 04 00 AD 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 75 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 3E 65 00 90 00 17 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=41 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 68 01 00 35 04 06 00 72 FC 81 DF DC 1C [12:01:40]Write to MH i2c: E2 2C 00 3F 65 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 68 01 00 35 04 06 00 72 FC 81 DF DC 1C 00 00 77 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 3F 65 00 90 00 18 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 03 02 [12:01:40]Write to MH i2c: E2 08 00 40 65 80 0D 03 02 00 00 00 00 20 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 40 65 00 A9 A6 29 72 EE DE 6B FD 90 00 3F [12:01:40]RAPDU: A9 A6 29 72 EE DE 6B FD 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_SignData done [12:01:40]FM_MakeSignedData done [12:01:40]CreateOFDProtocolMessage [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 11 00 00 [12:01:40]Write to MH i2c: E2 08 00 41 65 80 11 00 00 00 00 00 00 20 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 41 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 77 [12:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:01:40]wFMCommunicate OK [12:01:40]CreateOFDProtocolMessage done [12:01:40]OFDSenderStorePacket 92247 [12:01:40]StoreOFDPacket docnum=92247 [12:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 A3 E8 26 01 F3 95 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 37 00 00 00 F4 03 04 00 AD 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 68 01 00 35 04 06 00 72 FC 81 DF DC 1C A9 A6 29 72 EE DE 6B FD [12:01:40]CheckFolder [12:01:40]dirname=/storage/ofd_packets [12:01:40]CheckFolder done [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00092247 [12:01:40]NVStorageSaveData ofd_packets/00092247 [12:01:40]File name is /storage/ofd_packets/00092247 [12:01:40]Write 332 bytes [12:01:40]NVStorageSaveData done [12:01:40]OFDSenderStorePacket done [12:01:40]KKMCreateOFDPacket done [12:01:40]NVStorageSaveData kkm_last_timestamp [12:01:40]File name is /storage/kkm_last_timestamp [12:01:40]Write 4 bytes [12:01:40]NVStorageSaveData done [12:01:40]ExternCall_PrintAddStr [12:01:40]wPrintStart [12:01:40]Write to MH i2c: 01 00 00 42 65 A7 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 42 65 00 00 00 00 00 FF 0F BC [12:01:40]RasterBufferAndPrint [12:01:40]line Счет N : (3)127180 [12:01:40]line ИНН: 02508201610067 [12:01:40]line Контрольно-Кассовый Чек [12:01:40]line ПРОДАЖА [12:01:40]line Товар: 2000036220012 [12:01:40]line Кофе Капучино XL(GABB TRADE) [12:01:40]line 1.000 * 130.00 [12:01:40]line = 130.00 [12:01:40]line НДС 12% НСП 1% [12:01:40]line > о реализуемом товаре [12:01:40]line ИТОГО: 130.00 [12:01:40]line НСП 1% : 1.15 [12:01:40]line НДС 12% : 13.80 [12:01:40]line Наличными: 130.00 [12:01:40]line Безнал.: 0.00 [12:01:40]line Место: АЗС № 5 "Партнер Нефть" [12:01:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:01:40]line СНО: Общий режим [12:01:40]line Чек 55 13.09.2024 12:01 [12:01:40]line Смена: 505 ФФД: 1.0 [12:01:40]line ЗНМ: 03000000022 [12:01:40]line РНМ: 0000000000091423 [12:01:40]line Версия ККМ: 001 [12:01:40]line ФМ: 0000000000874692 [12:01:40]line ФД: 92247 [12:01:40]line ФПД: 126428836256796 [12:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T120149&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92247&fm=126428836256796&tin=02508201610067®Number=0000000000091423&sum=13000 [12:01:40]line 0 [12:01:40]written 0, free lines is 4095 [12:01:40]OFD Sender: Processing packet 92247 [packets to send 63, broken 62] [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00092247 [12:01:40]OFD Sender: To server: pG, [12:01:40]CommunicateWithHost lk.salyk.kg:30040 [12:01:40]ConnectInit lk.salyk.kg [12:01:40]Connected sock=8 [12:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 A3 E8 26 01 F3 95 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 37 00 00 00 F4 03 04 00 AD 29 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 68 01 00 35 04 06 00 72 FC 81 DF DC 1C A9 A6 29 72 EE DE 6B FD [12:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 10 9B 47 00 89 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 34 36 39 32 10 04 04 00 57 68 01 00 F4 03 04 00 2C D2 E3 66 B6 04 01 00 00 35 D7 BC D7 AF 91 F5 3E [12:01:40]CommunicateWithHost err = 0 [12:01:40]CheckOFDResponse [12:01:40]1017 (14) - 77093643461234 [12:01:40]1041 (16) - 0000000000874692 [12:01:40]1040 (4) - 92247 [12:01:40]1012 (4) - 13.09.2024 05:48 [12:01:40]1206 (1) - 0 [12:01:40]OFD Sender: Remove packet 92247 [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00092247 [12:01:40]NVStorageDeleteData [12:01:40]Write to MH i2c: 01 00 00 6B 65 D0 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 6B 65 00 00 00 00 00 0D 0D F1 [12:01:40]RasterBufferAndPrint [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]written 0, free lines is 3354 [12:01:40]MH_Cut [12:01:40]Write to MH i2c: D1 01 00 72 65 01 A9 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 01 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 01 00 72 65 00 A8 [12:01:40]Write to MH i2c: 01 00 00 73 65 D8 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:41]OFD Sender: No OFD packet to send [12:01:41]*** Cut start [12:01:41]*** Purtial cut [12:01:41]*** Stage 1: CUTSNS_PIN = 1 [12:01:43]Read from MH i2c: 01 [12:01:43]MH_I2C_Read... [12:01:43]*** Stop cut motor [12:01:43]*** Cut end [12:01:43]Read from MH i2c: 01 07 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: 01 07 00 73 65 00 00 00 00 00 FF 0F ED [12:01:43]process_action close_receipt done [12:01:43]requested_data is exist [12:01:43]produce_requested_data [12:01:43]requested_item fm.sn is exist - process it [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 11 00 00 [12:01:43]Write to MH i2c: E2 08 00 74 65 80 11 00 00 00 00 00 00 53 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 17 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 17 00 74 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AA [12:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:01:43]wFMCommunicate OK [12:01:43]requested_item fd.num is exist - process it [12:01:43]SAM_PROTO_GetFieldsCounters [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 13 00 00 [12:01:43]Write to MH i2c: E2 08 00 75 65 80 13 00 00 00 00 00 00 56 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 62 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 62 00 75 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 57 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 57 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:43]wFMCommunicate OK [12:01:43]SAM_PROTO_GetFieldsCounters done [12:01:43]requested_item shift.num is exist - process it [12:01:43]requested_item shift.opened is exist - process it [12:01:43]req_shift_opened [12:01:43]FM_GetShiftState [12:01:43]SAM_PROTO_GetShiftState [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 13 01 00 [12:01:43]Write to MH i2c: E2 08 00 76 65 80 13 01 00 00 00 00 00 58 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 76 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E4 [12:01:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:01:43]wFMCommunicate OK [12:01:43]SAM_PROTO_GetShiftState done [12:01:43]FM_GetShiftState done [12:01:43]req_shift_opened done [12:01:43]requested_item shift.open_date is exist - process it [12:01:43]req_shift_open_date [12:01:43]req_shift_open_date done [12:01:43]produce_requested_data done [12:01:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92247,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:01:43]process_action_free close_receipt [12:01:43]json_value_free [12:01:43]json_value_free done [12:01:43]process_json_proto returns [12:01:43]Send response to host [12:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92247,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:01:43]free response buf [12:01:43]execute_script done [12:01:43]execute_script returns [12:01:43]free content buf [12:01:43]Sock 9.Close socket [12:01:43]Sock 9.Thread stoped [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:08]accept exits with 10 [12:17:08]New connection [12:17:08]New thread 3067256164 created [12:17:08]Thread 3067399524 joined [12:17:08]Waiting for new connection... [12:17:08] Sock 10.Parse request [12:17:08]Sock 10.Check first char [12:17:08]Sock 10.First char is OK [12:17:08]request: POST /json_proto HTTP/1.0 [12:17:08]Method: POST [12:17:08]URL: /json_proto [12:17:08]Method is POST - this is cgi request [12:17:08]url: /json_proto [12:17:08]query_string will be loaded in cgi processing [12:17:08]execute_cgi json_proto POST (null) [12:17:08]execute_cgi path=json_proto method=POST [12:17:08]POST find Content-Length [12:17:08]Host: 172.17.57.71:8080 [12:17:08]Content-Length: 1144 [12:17:08]Content-Type: application/json [12:17:08] [12:17:08]POST finish read [12:17:08]Found Content-Length = 1144 [12:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127181", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:08]execute_script... [12:17: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 : (3)127181", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:08]POST & json_proto [12:17:08]process_json_proto [12:17:08]json parsed OK: [12:17:08]protocol is kg_v1.0 [12:17:08]action value=close_receipt [12:17:08]process_action close_receipt [12:17:08]cmd_close_receipt [12:17:08]MH_GetDate [12:17:08]Write to MH i2c: F0 00 00 77 65 CB [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 09 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 09 00 77 65 00 4F 2D E4 66 33 3A A4 66 11 [12:17:08]GetLastDocTimeStamp 1726228909 [12:17:08]current date 1726229839 [12:17:08]FM_GetShiftState [12:17:08]SAM_PROTO_GetShiftState [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 13 01 00 [12:17:08]Write to MH i2c: E2 08 00 78 65 80 13 01 00 00 00 00 00 5A [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0E 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0E 00 78 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E6 [12:17:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:17:08]wFMCommunicate OK [12:17:08]SAM_PROTO_GetShiftState done [12:17:08]FM_GetShiftState done [12:17:08]opened in 1726186930 [12:17:08]opened+sec_in_day 1726273330 [12:17:08]quantity*price = 15000 [12:17:08]sum+1 = 15001 [12:17:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 281.00 НСП 1% : 2.49 НДС 12% : 29.84 Наличными: 281.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 56 13.09.2024 12:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92248 ФПД: 39686362392739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T121719&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92248&fm=39686362392739&tin=02508201610067®Number=0000000000091423&sum=28100 0 [12:17:09]StoreToDocumentArchive [12:17:09]shift 505 fd 92248 [12:17:09]save to /storage/0505/doc_00092248 [12:17:09]save last doc name /storage/0505/doc_00092248 to /storage/kkm_last_doc_name [12:17:09]save OK [12:17:09]Clear old archive folders... [12:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=487 [12:17:09]tlvbuf is 01602D40 [12:17:09]SAM_PROTO_ClearQueue [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 09 00 00 [12:17:09]Write to MH i2c: E2 08 00 85 65 80 09 00 00 00 00 00 00 5C [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 03 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 03 00 85 65 00 90 00 5E [12:17:09]RAPDU: 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_ClearQueue done [12:17:09]KKMCreateOFDPacket [12:17:09]OFDProtocolAddRootSTLVToBuf [12:17:09]FM_MakeSignedData [12:17:09]FM_MakeSignedData [12:17:09]SAM_PROTO_SignData [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 0D 01 02 [12:17:09]Write to MH i2c: E2 08 00 86 65 80 0D 01 02 00 00 00 00 64 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 03 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 03 00 86 65 00 90 00 5F [12:17:09]RAPDU: 90 00 [12:17:09]wFMCommunicate OK [12:17:09]wFMCommunicate request_size=255 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 0D 02 02 FA 03 00 E7 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 [12:17:09]Write to MH i2c: E2 02 01 87 65 80 0D 02 02 FA 00 03 00 E7 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 00 00 B6 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 87 65 00 90 00 60 [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=246 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 02 02 F1 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4F 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 68 01 00 35 04 06 00 24 18 33 88 68 A3 [12:17:10]Write to MH i2c: E2 F9 00 88 65 80 0D 02 02 F1 00 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4F 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 68 01 00 35 04 06 00 24 18 33 88 68 A3 00 00 31 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 88 65 00 90 00 61 [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 03 02 [12:17:10]Write to MH i2c: E2 08 00 89 65 80 0D 03 02 00 00 00 00 69 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0B 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0B 00 89 65 00 82 D2 6D 98 2C A9 38 74 90 00 44 [12:17:10]RAPDU: 82 D2 6D 98 2C A9 38 74 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_SignData done [12:17:10]FM_MakeSignedData done [12:17:10]CreateOFDProtocolMessage [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 11 00 00 [12:17:10]Write to MH i2c: E2 08 00 8A 65 80 11 00 00 00 00 00 00 69 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 8A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C0 [12:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:17:10]wFMCommunicate OK [12:17:10]CreateOFDProtocolMessage done [12:17:10]OFDSenderStorePacket 92248 [12:17:10]StoreOFDPacket docnum=92248 [12:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FB 01 00 00 2B B3 F3 01 4E 08 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4F 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 68 01 00 35 04 06 00 24 18 33 88 68 A3 82 D2 6D 98 2C A9 38 74 [12:17:10]CheckFolder [12:17:10]dirname=/storage/ofd_packets [12:17:10]CheckFolder done [12:17:10]ProducePacketName [12:17:10]name=ofd_packets/00092248 [12:17:10]NVStorageSaveData ofd_packets/00092248 [12:17:10]File name is /storage/ofd_packets/00092248 [12:17:10]Write 537 bytes [12:17:10]NVStorageSaveData done [12:17:10]OFDSenderStorePacket done [12:17:10]KKMCreateOFDPacket done [12:17:10]NVStorageSaveData kkm_last_timestamp [12:17:10]File name is /storage/kkm_last_timestamp [12:17:10]Write 4 bytes [12:17:10]NVStorageSaveData done [12:17:10]ExternCall_PrintAddStr [12:17:10]wPrintStart [12:17:10]Write to MH i2c: 01 00 00 8B 65 F0 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 8B 65 00 00 00 00 00 FF 0F 05 [12:17:10]RasterBufferAndPrint [12:17:10]line Счет N : (3)127181 [12:17:10]line ИНН: 02508201610067 [12:17:10]line Контрольно-Кассовый Чек [12:17:10]line ПРОДАЖА [12:17:10]line Товар: 4640030091645 [12:17:10]line Сигареты ESSE Exchange M [12:17:10]line 1.000 * 150.00 [12:17:10]line = 150.00 [12:17:10]line НДС 12% НСП 1% [12:17:10]line > о реализуемом товаре [12:17:10]line Товар: 4870001570071 [12:17:10]line Напиток Pepsi 1л [12:17:10]line 1.000 * 110.00 [12:17:10]line = 110.00 [12:17:10]line НДС 12% НСП 1% [12:17:10]line > о реализуемом товаре [12:17:10]line Товар: 2000053020015 [12:17:10]line Бумажные стаканы 250мл 1шт [12:17:10]line 3.000 * 7.00 [12:17:10]line = 21.00 [12:17:10]line НДС 12% НСП 1% [12:17:10]line > о реализуемом товаре [12:17:10]line ИТОГО: 281.00 [12:17:10]line НСП 1% : 2.49 [12:17:10]line НДС 12% : 29.84 [12:17:10]line Наличными: 281.00 [12:17:10]line Безнал.: 0.00 [12:17:10]line Место: АЗС № 5 "Партнер Нефть" [12:17:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:17:10]line СНО: Общий режим [12:17:10]line Чек 56 13.09.2024 12:17 [12:17:10]line Смена: 505 ФФД: 1.0 [12:17:10]line ЗНМ: 03000000022 [12:17:10]line РНМ: 0000000000091423 [12:17:10]line Версия ККМ: 001 [12:17:10]line ФМ: 0000000000874692 [12:17:10]line ФД: 92248 [12:17:10]line ФПД: 39686362392739 [12:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T121719&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92248&fm=39686362392739&tin=02508201610067®Number=0000000000091423&sum=28100 [12:17:10]line 0 [12:17:10]written 0, free lines is 4095 [12:17:10]OFD Sender: Processing packet 92248 [packets to send 63, broken 62] [12:17:10]ProducePacketName [12:17:10]name=ofd_packets/00092248 [12:17:10]OFD Sender: To server: pG, [12:17:10]CommunicateWithHost lk.salyk.kg:30040 [12:17:10]ConnectInit lk.salyk.kg [12:17:10]Connected sock=9 [12:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FB 01 00 00 2B B3 F3 01 4E 08 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4F 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 68 01 00 35 04 06 00 24 18 33 88 68 A3 82 D2 6D 98 2C A9 38 74 [12:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 89 DF 47 00 90 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 68 01 00 F4 03 04 00 CE D5 E3 66 B6 04 01 00 00 45 48 D4 31 CF BB 84 F8 [12:17:11]CommunicateWithHost err = 0 [12:17:11]CheckOFDResponse [12:17:11]1017 (14) - 77093643461234 [12:17:11]1041 (16) - 0000000000874692 [12:17:11]1040 (4) - 92248 [12:17:11]1012 (4) - 13.09.2024 06:03 [12:17:11]1206 (1) - 0 [12:17:11]OFD Sender: Remove packet 92248 [12:17:11]ProducePacketName [12:17:11]name=ofd_packets/00092248 [12:17:11]NVStorageDeleteData [12:17:11]Write to MH i2c: 01 00 00 C0 65 25 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 C0 65 00 00 00 00 00 6E 0C A6 [12:17:11]RasterBufferAndPrint [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]written 0, free lines is 3190 [12:17:11]MH_Cut [12:17:11]Write to MH i2c: D1 01 00 C7 65 01 FE [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 C7 65 00 FD [12:17:11]Write to MH i2c: 01 00 00 C8 65 2D [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]OFD Sender: No OFD packet to send [12:17:12]*** Cut start [12:17:12]*** Purtial cut [12:17:12]*** Stage 1: CUTSNS_PIN = 1 [12:17:14]Read from MH i2c: 01 [12:17:14]MH_I2C_Read... [12:17:14]*** Stop cut motor [12:17:14]*** Cut end [12:17:14]Read from MH i2c: 01 07 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: 01 07 00 C8 65 00 00 00 00 00 FF 0F 42 [12:17:14]process_action close_receipt done [12:17:14]requested_data is exist [12:17:14]produce_requested_data [12:17:14]requested_item fm.sn is exist - process it [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 11 00 00 [12:17:14]Write to MH i2c: E2 08 00 C9 65 80 11 00 00 00 00 00 00 A8 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 17 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 17 00 C9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [12:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:17:14]wFMCommunicate OK [12:17:14]requested_item fd.num is exist - process it [12:17:14]SAM_PROTO_GetFieldsCounters [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 13 00 00 [12:17:14]Write to MH i2c: E2 08 00 CA 65 80 13 00 00 00 00 00 00 AB [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 62 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 62 00 CA 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 58 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 58 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_GetFieldsCounters done [12:17:14]requested_item shift.num is exist - process it [12:17:14]requested_item shift.opened is exist - process it [12:17:14]req_shift_opened [12:17:14]FM_GetShiftState [12:17:14]SAM_PROTO_GetShiftState [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 13 01 00 [12:17:14]Write to MH i2c: E2 08 00 CB 65 80 13 01 00 00 00 00 00 AD [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 CB 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 39 [12:17:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_GetShiftState done [12:17:14]FM_GetShiftState done [12:17:14]req_shift_opened done [12:17:14]requested_item shift.open_date is exist - process it [12:17:14]req_shift_open_date [12:17:14]req_shift_open_date done [12:17:14]produce_requested_data done [12:17:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92248,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:17:14]process_action_free close_receipt [12:17:14]json_value_free [12:17:14]json_value_free done [12:17:14]process_json_proto returns [12:17:14]Send response to host [12:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92248,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:17:14]free response buf [12:17:14]execute_script done [12:17:14]execute_script returns [12:17:14]free content buf [12:17:14]Sock 10.Close socket [12:17:14]Sock 10.Thread stoped [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]accept exits with 8 [12:19:31]New connection [12:19:31]New thread 3067399524 created [12:19:31]Thread 3067256164 joined [12:19:31]Waiting for new connection... [12:19:31] Sock 8.Parse request [12:19:31]Sock 8.Check first char [12:19:31]Sock 8.First char is OK [12:19:31]request: POST /json_proto HTTP/1.0 [12:19:31]Method: POST [12:19:31]URL: /json_proto [12:19:31]Method is POST - this is cgi request [12:19:31]url: /json_proto [12:19:31]query_string will be loaded in cgi processing [12:19:31]execute_cgi json_proto POST (null) [12:19:31]execute_cgi path=json_proto method=POST [12:19:31]POST find Content-Length [12:19:31]Host: 172.17.57.71:8080 [12:19:31]Content-Length: 841 [12:19:31]Content-Type: application/json [12:19:31] [12:19:31]POST finish read [12:19:31]Found Content-Length = 841 [12:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127182", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:31]execute_script... [12:19: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 : (3)127182", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:31]POST & json_proto [12:19:31]process_json_proto [12:19:31]json parsed OK: [12:19:31]protocol is kg_v1.0 [12:19:31]action value=close_receipt [12:19:31]process_action close_receipt [12:19:31]cmd_close_receipt [12:19:31]MH_GetDate [12:19:31]Write to MH i2c: F0 00 00 CC 65 20 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: F0 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: F0 09 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: F0 09 00 CC 65 00 DE 2D E4 66 33 3A A4 66 F5 [12:19:31]GetLastDocTimeStamp 1726229839 [12:19:31]current date 1726229982 [12:19:31]FM_GetShiftState [12:19:31]SAM_PROTO_GetShiftState [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 13 01 00 [12:19:31]Write to MH i2c: E2 08 00 CD 65 80 13 01 00 00 00 00 00 AF [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]OFD Sender: No OFD packet to send [12:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0E 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0E 00 CD 65 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3B [12:19:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:19:31]wFMCommunicate OK [12:19:31]SAM_PROTO_GetShiftState done [12:19:31]FM_GetShiftState done [12:19:31]opened in 1726186930 [12:19:31]opened+sec_in_day 1726273330 [12:19:31]quantity*price = 1400 [12:19:31]sum+1 = 1401 [12:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14.00 НСП 1% : 0.12 НДС 12% : 1.49 Наличными: 0.00 Безнал.: 14.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 57 13.09.2024 12:19 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92249 ФПД: 252089330619747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T121942&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92249&fm=252089330619747&tin=02508201610067®Number=0000000000091423&sum=1400 0 [12:19:32]StoreToDocumentArchive [12:19:32]shift 505 fd 92249 [12:19:32]save to /storage/0505/doc_00092249 [12:19:32]save last doc name /storage/0505/doc_00092249 to /storage/kkm_last_doc_name [12:19:32]save OK [12:19:32]Clear old archive folders... [12:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=287 [12:19:32]tlvbuf is 0165E990 [12:19:32]SAM_PROTO_ClearQueue [12:19:32]wFMCommunicate request_size=4 [12:19:32]MH_SAM_APDU [12:19:32]CAPDU: 80 09 00 00 [12:19:32]Write to MH i2c: E2 08 00 DA 65 80 09 00 00 00 00 00 00 B1 [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:32]Read from MH i2c: E2 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 03 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 03 00 DA 65 00 90 00 B3 [12:19:33]RAPDU: 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_ClearQueue done [12:19:33]KKMCreateOFDPacket [12:19:33]OFDProtocolAddRootSTLVToBuf [12:19:33]FM_MakeSignedData [12:19:33]FM_MakeSignedData [12:19:33]SAM_PROTO_SignData [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 0D 01 02 [12:19:33]Write to MH i2c: E2 08 00 DB 65 80 0D 01 02 00 00 00 00 B9 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 DB 65 00 90 00 B4 [12:19:33]RAPDU: 90 00 [12:19:33]wFMCommunicate OK [12:19:33]wFMCommunicate request_size=255 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 05 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DE 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [12:19:33]Write to MH i2c: E2 02 01 DC 65 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 05 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DE 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 F6 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 DC 65 00 90 00 B5 [12:19:33]RAPDU: 90 00 [12:19:33]wFMCommunicate OK [12:19:33]wFMCommunicate request_size=46 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 68 01 00 35 04 06 00 E5 46 1F 00 D5 63 [12:19:33]Write to MH i2c: E2 31 00 DD 65 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 68 01 00 35 04 06 00 E5 46 1F 00 D5 63 00 00 8B [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 03 00 DD 65 00 90 00 B6 [12:19:33]RAPDU: 90 00 [12:19:33]wFMCommunicate OK [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 0D 03 02 [12:19:33]Write to MH i2c: E2 08 00 DE 65 80 0D 03 02 00 00 00 00 BE [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0B 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0B 00 DE 65 00 BF 4F 39 34 8D AA 9C 27 90 00 34 [12:19:33]RAPDU: BF 4F 39 34 8D AA 9C 27 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_SignData done [12:19:33]FM_MakeSignedData done [12:19:33]CreateOFDProtocolMessage [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 11 00 00 [12:19:33]Write to MH i2c: E2 08 00 DF 65 80 11 00 00 00 00 00 00 BE [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 DF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [12:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:19:33]wFMCommunicate OK [12:19:33]CreateOFDProtocolMessage done [12:19:33]OFDSenderStorePacket 92249 [12:19:33]StoreOFDPacket docnum=92249 [12:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 CA 55 2B 01 FC 91 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 05 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DE 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 68 01 00 35 04 06 00 E5 46 1F 00 D5 63 BF 4F 39 34 8D AA 9C 27 [12:19:33]CheckFolder [12:19:33]dirname=/storage/ofd_packets [12:19:33]CheckFolder done [12:19:33]ProducePacketName [12:19:33]name=ofd_packets/00092249 [12:19:33]NVStorageSaveData ofd_packets/00092249 [12:19:33]File name is /storage/ofd_packets/00092249 [12:19:33]Write 337 bytes [12:19:33]NVStorageSaveData done [12:19:33]OFDSenderStorePacket done [12:19:33]KKMCreateOFDPacket done [12:19:33]NVStorageSaveData kkm_last_timestamp [12:19:33]File name is /storage/kkm_last_timestamp [12:19:33]Write 4 bytes [12:19:33]NVStorageSaveData done [12:19:33]ExternCall_PrintAddStr [12:19:33]wPrintStart [12:19:33]Write to MH i2c: 01 00 00 E0 65 45 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: 01 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: 01 07 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: 01 07 00 E0 65 00 00 00 00 00 FF 0F 5A [12:19:33]RasterBufferAndPrint [12:19:33]line Счет N : (3)127182 [12:19:33]line ИНН: 02508201610067 [12:19:33]line Контрольно-Кассовый Чек [12:19:33]line ПРОДАЖА [12:19:33]line Товар: 2000053020015 [12:19:33]line Бумажные стаканы 250мл 1шт [12:19:33]line 2.000 * 7.00 [12:19:33]line = 14.00 [12:19:33]line НДС 12% НСП 1% [12:19:33]line > о реализуемом товаре [12:19:33]line ИТОГО: 14.00 [12:19:33]line НСП 1% : 0.12 [12:19:33]line НДС 12% : 1.49 [12:19:33]line Наличными: 0.00 [12:19:33]line Безнал.: 14.00 [12:19:33]line Место: АЗС № 5 "Партнер Нефть" [12:19:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:19:33]line СНО: Общий режим [12:19:33]line Чек 57 13.09.2024 12:19 [12:19:33]line Смена: 505 ФФД: 1.0 [12:19:33]line ЗНМ: 03000000022 [12:19:33]line РНМ: 0000000000091423 [12:19:33]line Версия ККМ: 001 [12:19:33]line Платежная система: О! деньги [12:19:33]line ФМ: 0000000000874692 [12:19:33]line ФД: 92249 [12:19:33]line ФПД: 252089330619747 [12:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T121942&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92249&fm=252089330619747&tin=02508201610067®Number=0000000000091423&sum=1400 [12:19:33]line 0 [12:19:33]OFD Sender: Processing packet 92249 [packets to send 63, broken 62] [12:19:33]ProducePacketName [12:19:33]name=ofd_packets/00092249 [12:19:33]OFD Sender: To server: pG, [12:19:33]CommunicateWithHost lk.salyk.kg:30040 [12:19:33]ConnectInit lk.salyk.kg [12:19:33]written 0, free lines is 4095 [12:19:33]Connected sock=10 [12:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 CA 55 2B 01 FC 91 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 05 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DE 2D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 68 01 00 35 04 06 00 E5 46 1F 00 D5 63 BF 4F 39 34 8D AA 9C 27 [12:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2A 34 47 00 CF 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 34 36 39 32 10 04 04 00 59 68 01 00 F4 03 04 00 5D D6 E3 66 B6 04 01 00 00 9A 1B 66 8C 5B F9 25 E6 [12:19:34]CommunicateWithHost err = 0 [12:19:34]CheckOFDResponse [12:19:34]1017 (14) - 77093643461234 [12:19:34]1041 (16) - 0000000000874692 [12:19:34]1040 (4) - 92249 [12:19:34]1012 (4) - 13.09.2024 06:06 [12:19:34]1206 (1) - 0 [12:19:34]OFD Sender: Remove packet 92249 [12:19:34]ProducePacketName [12:19:34]name=ofd_packets/00092249 [12:19:34]NVStorageDeleteData [12:19:34]Write to MH i2c: 01 00 00 0B 66 71 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 0B 66 00 00 00 00 00 EA 0C 6E [12:19:34]RasterBufferAndPrint [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]written 0, free lines is 3314 [12:19:34]MH_Cut [12:19:34]Write to MH i2c: D1 01 00 12 66 01 4A [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 01 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 01 00 12 66 00 49 [12:19:34]Write to MH i2c: 01 00 00 13 66 79 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]OFD Sender: No OFD packet to send [12:19:34]*** Cut start [12:19:34]*** Purtial cut [12:19:34]*** Stage 1: CUTSNS_PIN = 1 [12:19:36]Read from MH i2c: 01 [12:19:36]MH_I2C_Read... [12:19:36]*** Stop cut motor [12:19:36]*** Cut end [12:19:36]Read from MH i2c: 01 07 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 13 66 00 00 00 00 00 FF 0F 8E [12:19:36]process_action close_receipt done [12:19:36]requested_data is exist [12:19:36]produce_requested_data [12:19:36]requested_item fm.sn is exist - process it [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 11 00 00 [12:19:36]Write to MH i2c: E2 08 00 14 66 80 11 00 00 00 00 00 00 F4 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 17 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 17 00 14 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4B [12:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:19:37]wFMCommunicate OK [12:19:37]requested_item fd.num is exist - process it [12:19:37]SAM_PROTO_GetFieldsCounters [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 13 00 00 [12:19:37]Write to MH i2c: E2 08 00 15 66 80 13 00 00 00 00 00 00 F7 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 62 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 62 00 15 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 59 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 59 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_GetFieldsCounters done [12:19:37]requested_item shift.num is exist - process it [12:19:37]requested_item shift.opened is exist - process it [12:19:37]req_shift_opened [12:19:37]FM_GetShiftState [12:19:37]SAM_PROTO_GetShiftState [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 13 01 00 [12:19:37]Write to MH i2c: E2 08 00 16 66 80 13 01 00 00 00 00 00 F9 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 16 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 85 [12:19:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_GetShiftState done [12:19:37]FM_GetShiftState done [12:19:37]req_shift_opened done [12:19:37]requested_item shift.open_date is exist - process it [12:19:37]req_shift_open_date [12:19:37]req_shift_open_date done [12:19:37]produce_requested_data done [12:19:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92249,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:19:37]process_action_free close_receipt [12:19:37]json_value_free [12:19:37]json_value_free done [12:19:37]process_json_proto returns [12:19:37]Send response to host [12:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92249,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:19:37]free response buf [12:19:37]execute_script done [12:19:37]execute_script returns [12:19:37]free content buf [12:19:37]Sock 8.Close socket [12:19:37]Sock 8.Thread stoped [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:52]accept exits with 9 [12:28:52]New connection [12:28:52]New thread 3067256164 created [12:28:52]Thread 3067399524 joined [12:28:52]Waiting for new connection... [12:28:52] Sock 9.Parse request [12:28:52]Sock 9.Check first char [12:28:52]Sock 9.First char is OK [12:28:52]request: POST /json_proto HTTP/1.0 [12:28:52]Method: POST [12:28:52]URL: /json_proto [12:28:52]Method is POST - this is cgi request [12:28:52]url: /json_proto [12:28:52]query_string will be loaded in cgi processing [12:28:52]execute_cgi json_proto POST (null) [12:28:52]execute_cgi path=json_proto method=POST [12:28:52]POST find Content-Length [12:28:52]Host: 172.17.57.71:8080 [12:28:52]Content-Length: 728 [12:28:52]Content-Type: application/json [12:28:52] [12:28:52]POST finish read [12:28:52]Found Content-Length = 728 [12:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127183", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:52]execute_script... [12:28: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 : (3)127183", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:52]POST & json_proto [12:28:52]process_json_proto [12:28:52]json parsed OK: [12:28:52]protocol is kg_v1.0 [12:28:52]action value=close_receipt [12:28:52]process_action close_receipt [12:28:52]cmd_close_receipt [12:28:52]MH_GetDate [12:28:52]Write to MH i2c: F0 00 00 17 66 6C [12:28:52]Write i2c OK [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 09 00 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: F0 09 00 17 66 00 0F 30 E4 66 33 3A A4 66 75 [12:28:52]GetLastDocTimeStamp 1726229982 [12:28:52]current date 1726230543 [12:28:52]FM_GetShiftState [12:28:52]SAM_PROTO_GetShiftState [12:28:52]wFMCommunicate request_size=4 [12:28:52]MH_SAM_APDU [12:28:52]CAPDU: 80 13 01 00 [12:28:52]Write to MH i2c: E2 08 00 18 66 80 13 01 00 00 00 00 00 FB [12:28:52]Write i2c OK [12:28:52]MH_I2C_Read... [12:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:52]Read from MH i2c: E2 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: E2 0E 00 [12:28:52]MH_I2C_Read... [12:28:52]Read from MH i2c: E2 0E 00 18 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 87 [12:28:52]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:28:52]wFMCommunicate OK [12:28:52]SAM_PROTO_GetShiftState done [12:28:52]FM_GetShiftState done [12:28:52]opened in 1726186930 [12:28:52]opened+sec_in_day 1726273330 [12:28:52]quantity*price = 10500 [12:28:52]sum+1 = 10501 [12:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 58 13.09.2024 12:29 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92250 ФПД: 133631773437630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T122903&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92250&fm=133631773437630&tin=02508201610067®Number=0000000000091423&sum=10500 0 [12:28:53]StoreToDocumentArchive [12:28:53]shift 505 fd 92250 [12:28:53]save to /storage/0505/doc_00092250 [12:28:53]save last doc name /storage/0505/doc_00092250 to /storage/kkm_last_doc_name [12:28:53]save OK [12:28:53]Clear old archive folders... [12:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=308 [12:28:53]tlvbuf is 0165E3A0 [12:28:53]SAM_PROTO_ClearQueue [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 09 00 00 [12:28:53]Write to MH i2c: E2 08 00 25 66 80 09 00 00 00 00 00 00 FD [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 25 66 00 90 00 FF [12:28:53]RAPDU: 90 00 [12:28:53]wFMCommunicate OK [12:28:53]SAM_PROTO_ClearQueue done [12:28:53]KKMCreateOFDPacket [12:28:53]OFDProtocolAddRootSTLVToBuf [12:28:53]FM_MakeSignedData [12:28:53]FM_MakeSignedData [12:28:53]SAM_PROTO_SignData [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 0D 01 02 [12:28:53]Write to MH i2c: E2 08 00 26 66 80 0D 01 02 00 00 00 00 05 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 26 66 00 90 00 00 [12:28:53]RAPDU: 90 00 [12:28:53]wFMCommunicate OK [12:28:53]wFMCommunicate request_size=255 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0F 30 E4 66 0E 04 04 00 F9 01 00 00 B9 [12:28:53]Write to MH i2c: E2 02 01 27 66 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0F 30 E4 66 0E 04 04 00 F9 01 00 00 B9 00 00 C2 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 27 66 00 90 00 01 [12:28:53]RAPDU: 90 00 [12:28:53]wFMCommunicate OK [12:28:53]wFMCommunicate request_size=67 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 68 01 00 35 04 06 00 79 89 92 62 EE BE [12:28:53]Write to MH i2c: E2 46 00 28 66 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 68 01 00 35 04 06 00 79 89 92 62 EE BE 00 00 C3 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 03 00 28 66 00 90 00 02 [12:28:53]RAPDU: 90 00 [12:28:53]wFMCommunicate OK [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 0D 03 02 [12:28:53]Write to MH i2c: E2 08 00 29 66 80 0D 03 02 00 00 00 00 0A [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0B 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0B 00 29 66 00 45 C9 0A 78 87 9B 8F CF 90 00 1B [12:28:54]RAPDU: 45 C9 0A 78 87 9B 8F CF 90 00 [12:28:54]wFMCommunicate OK [12:28:54]SAM_PROTO_SignData done [12:28:54]FM_MakeSignedData done [12:28:54]CreateOFDProtocolMessage [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 11 00 00 [12:28:54]Write to MH i2c: E2 08 00 2A 66 80 11 00 00 00 00 00 00 0A [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 2A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [12:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:28:54]wFMCommunicate OK [12:28:54]CreateOFDProtocolMessage done [12:28:54]OFDSenderStorePacket 92250 [12:28:54]StoreOFDPacket docnum=92250 [12:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 1C 3B 40 01 6C DE 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0F 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 68 01 00 35 04 06 00 79 89 92 62 EE BE 45 C9 0A 78 87 9B 8F CF [12:28:54]CheckFolder [12:28:54]dirname=/storage/ofd_packets [12:28:54]CheckFolder done [12:28:54]ProducePacketName [12:28:54]name=ofd_packets/00092250 [12:28:54]NVStorageSaveData ofd_packets/00092250 [12:28:54]File name is /storage/ofd_packets/00092250 [12:28:54]Write 358 bytes [12:28:54]NVStorageSaveData done [12:28:54]OFDSenderStorePacket done [12:28:54]KKMCreateOFDPacket done [12:28:54]NVStorageSaveData kkm_last_timestamp [12:28:54]File name is /storage/kkm_last_timestamp [12:28:54]Write 4 bytes [12:28:54]NVStorageSaveData done [12:28:54]ExternCall_PrintAddStr [12:28:54]wPrintStart [12:28:54]Write to MH i2c: 01 00 00 2B 66 91 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 2B 66 00 00 00 00 00 FF 0F A6 [12:28:54]RasterBufferAndPrint [12:28:54]line Счет N : (3)127183 [12:28:54]line ИНН: 02508201610067 [12:28:54]line Контрольно-Кассовый Чек [12:28:54]line ПРОДАЖА [12:28:54]line Товар: 5449000027474 [12:28:54]line Напиток FuzeTea зел чай манго,ромашка 1л [12:28:54]line 1.000 * 105.00 [12:28:54]line = 105.00 [12:28:54]line НДС 12% НСП 1% [12:28:54]line > о реализуемом товаре [12:28:54]line ИТОГО: 105.00 [12:28:54]line НСП 1% : 0.93 [12:28:54]line НДС 12% : 11.15 [12:28:54]line Наличными: 105.00 [12:28:54]line Безнал.: 0.00 [12:28:54]line Место: АЗС № 5 "Партнер Нефть" [12:28:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:28:54]line СНО: Общий режим [12:28:54]line Чек 58 13.09.2024 12:29 [12:28:54]line Смена: 505 ФФД: 1.0 [12:28:54]line ЗНМ: 03000000022 [12:28:54]line РНМ: 0000000000091423 [12:28:54]line Версия ККМ: 001 [12:28:54]line ФМ: 0000000000874692 [12:28:54]line ФД: 92250 [12:28:54]line ФПД: 133631773437630 [12:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T122903&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92250&fm=133631773437630&tin=02508201610067®Number=0000000000091423&sum=10500 [12:28:54]line 0 [12:28:54]OFD Sender: Processing packet 92250 [packets to send 63, broken 62] [12:28:54]ProducePacketName [12:28:54]name=ofd_packets/00092250 [12:28:54]OFD Sender: To server: pG, [12:28:54]CommunicateWithHost lk.salyk.kg:30040 [12:28:54]ConnectInit lk.salyk.kg [12:28:54]written 0, free lines is 4095 [12:28:54]Connected sock=10 [12:28:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 1C 3B 40 01 6C DE 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0F 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 68 01 00 35 04 06 00 79 89 92 62 EE BE 45 C9 0A 78 87 9B 8F CF [12:28:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0D 7F 47 00 18 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 34 36 39 32 10 04 04 00 5A 68 01 00 F4 03 04 00 8E D8 E3 66 B6 04 01 00 00 C5 AE 98 48 07 5E E8 C3 [12:28:54]CommunicateWithHost err = 0 [12:28:54]CheckOFDResponse [12:28:54]1017 (14) - 77093643461234 [12:28:54]1041 (16) - 0000000000874692 [12:28:54]1040 (4) - 92250 [12:28:54]1012 (4) - 13.09.2024 06:15 [12:28:54]1206 (1) - 0 [12:28:54]OFD Sender: Remove packet 92250 [12:28:54]ProducePacketName [12:28:54]name=ofd_packets/00092250 [12:28:54]NVStorageDeleteData [12:28:54]Write to MH i2c: 01 00 00 54 66 BA [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 54 66 00 00 00 00 00 12 0D E0 [12:28:54]RasterBufferAndPrint [12:28:54]line [12:28:54]line [12:28:54]line [12:28:54]line [12:28:54]line [12:28:54]written 0, free lines is 3354 [12:28:54]MH_Cut [12:28:54]Write to MH i2c: D1 01 00 5B 66 01 93 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: D1 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: D1 01 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: D1 01 00 5B 66 00 92 [12:28:54]Write to MH i2c: 01 00 00 5C 66 C2 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:55]OFD Sender: No OFD packet to send [12:28:55]*** Cut start [12:28:55]*** Purtial cut [12:28:55]*** Stage 1: CUTSNS_PIN = 1 [12:28:57]Read from MH i2c: 01 [12:28:57]MH_I2C_Read... [12:28:57]*** Stop cut motor [12:28:57]*** Cut end [12:28:57]Read from MH i2c: 01 07 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 5C 66 00 00 00 00 00 FF 0F D7 [12:28:57]process_action close_receipt done [12:28:57]requested_data is exist [12:28:57]produce_requested_data [12:28:57]requested_item fm.sn is exist - process it [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 11 00 00 [12:28:57]Write to MH i2c: E2 08 00 5D 66 80 11 00 00 00 00 00 00 3D [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 5D 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 94 [12:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:28:57]wFMCommunicate OK [12:28:57]requested_item fd.num is exist - process it [12:28:57]SAM_PROTO_GetFieldsCounters [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 13 00 00 [12:28:57]Write to MH i2c: E2 08 00 5E 66 80 13 00 00 00 00 00 00 40 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 62 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 62 00 5E 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:57]wFMCommunicate OK [12:28:57]SAM_PROTO_GetFieldsCounters done [12:28:57]requested_item shift.num is exist - process it [12:28:57]requested_item shift.opened is exist - process it [12:28:57]req_shift_opened [12:28:57]FM_GetShiftState [12:28:57]SAM_PROTO_GetShiftState [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 13 01 00 [12:28:57]Write to MH i2c: E2 08 00 5F 66 80 13 01 00 00 00 00 00 42 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 0E 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 0E 00 5F 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 CE [12:28:57]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:28:57]wFMCommunicate OK [12:28:57]SAM_PROTO_GetShiftState done [12:28:57]FM_GetShiftState done [12:28:57]req_shift_opened done [12:28:57]requested_item shift.open_date is exist - process it [12:28:57]req_shift_open_date [12:28:57]req_shift_open_date done [12:28:57]produce_requested_data done [12:28:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92250,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:28:57]process_action_free close_receipt [12:28:57]json_value_free [12:28:57]json_value_free done [12:28:57]process_json_proto returns [12:28:57]Send response to host [12:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92250,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:28:57]free response buf [12:28:57]execute_script done [12:28:57]execute_script returns [12:28:57]free content buf [12:28:57]Sock 9.Close socket [12:28:57]Sock 9.Thread stoped [12:28:59]accept exits with 8 [12:28:59]New connection [12:28:59]New thread 3067399524 created [12:28:59]Thread 3067256164 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.57.71:8080 [12:28:59]Content-Length: 646 [12:28:59]Content-Type: application/json [12:28:59] [12:28:59]POST finish read [12:28:59]Found Content-Length = 646 [12:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127184", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "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 : (3)127184", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "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 60 66 B5 [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 60 66 00 16 30 E4 66 33 3A A4 66 C5 [12:28:59]GetLastDocTimeStamp 1726230543 [12:28:59]current date 1726230550 [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 61 66 80 13 01 00 00 00 00 00 44 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 0E 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 0E 00 61 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D0 [12:28:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:28:59]wFMCommunicate OK [12:28:59]SAM_PROTO_GetShiftState done [12:28:59]FM_GetShiftState done [12:28:59]opened in 1726186930 [12:28:59]opened+sec_in_day 1726273330 [12:28:59]quantity*price = 13000 [12:28:59]sum+1 = 13001 [12:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 59 13.09.2024 12:29 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92251 ФПД: 112755099060064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T122910&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92251&fm=112755099060064&tin=02508201610067®Number=0000000000091423&sum=13000 0 [12:29:00]StoreToDocumentArchive [12:29:00]shift 505 fd 92251 [12:29:00]save to /storage/0505/doc_00092251 [12:29:00]save last doc name /storage/0505/doc_00092251 to /storage/kkm_last_doc_name [12:29:00]save OK [12:29:00]Clear old archive folders... [12:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:29:00]tlvbuf is 015C5BE0 [12:29:00]SAM_PROTO_ClearQueue [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 09 00 00 [12:29:00]Write to MH i2c: E2 08 00 6E 66 80 09 00 00 00 00 00 00 46 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 6E 66 00 90 00 48 [12:29:00]RAPDU: 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_ClearQueue done [12:29:00]KKMCreateOFDPacket [12:29:00]OFDProtocolAddRootSTLVToBuf [12:29:00]FM_MakeSignedData [12:29:00]FM_MakeSignedData [12:29:00]SAM_PROTO_SignData [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 0D 01 02 [12:29:00]Write to MH i2c: E2 08 00 6F 66 80 0D 01 02 00 00 00 00 4E [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 03 00 6F 66 00 90 00 49 [12:29:00]RAPDU: 90 00 [12:29:00]wFMCommunicate OK [12:29:00]wFMCommunicate request_size=255 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 3B 00 00 00 F4 03 04 00 16 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [12:29:00]Write to MH i2c: E2 02 01 70 66 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 3B 00 00 00 F4 03 04 00 16 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 1C [12:29:00]Write i2c OK [12:29:00]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 70 66 00 90 00 4A [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=41 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 68 01 00 35 04 06 00 66 8C D7 A0 47 60 [12:29:01]Write to MH i2c: E2 2C 00 71 66 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 68 01 00 35 04 06 00 66 8C D7 A0 47 60 00 00 F8 [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 71 66 00 90 00 4B [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 72 66 80 0D 03 02 00 00 00 00 53 [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 72 66 00 90 1E 4C 78 A3 8D 0A 43 90 00 43 [12:29:01]RAPDU: 90 1E 4C 78 A3 8D 0A 43 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 73 66 80 11 00 00 00 00 00 00 53 [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 73 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AA [12:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:01]wFMCommunicate OK [12:29:01]CreateOFDProtocolMessage done [12:29:01]OFDSenderStorePacket 92251 [12:29:01]StoreOFDPacket docnum=92251 [12:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 50 AA 26 01 D4 B7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 3B 00 00 00 F4 03 04 00 16 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 68 01 00 35 04 06 00 66 8C D7 A0 47 60 90 1E 4C 78 A3 8D 0A 43 [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/00092251 [12:29:01]NVStorageSaveData ofd_packets/00092251 [12:29:01]File name is /storage/ofd_packets/00092251 [12:29:01]Write 332 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 74 66 DA [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 74 66 00 00 00 00 00 FF 0F EF [12:29:01]RasterBufferAndPrint [12:29:01]line Счет N : (3)127184 [12:29:01]line ИНН: 02508201610067 [12:29:01]line Контрольно-Кассовый Чек [12:29:01]line ПРОДАЖА [12:29:01]line Товар: 2000036220012 [12:29:01]line Кофе Капучино XL(GABB TRADE) [12:29:01]line 1.000 * 130.00 [12:29:01]line = 130.00 [12:29:01]line НДС 12% НСП 1% [12:29:01]line > о реализуемом товаре [12:29:01]line ИТОГО: 130.00 [12:29:01]line НСП 1% : 1.15 [12:29:01]line НДС 12% : 13.80 [12:29:01]line Наличными: 130.00 [12:29:01]line Безнал.: 0.00 [12:29:01]line Место: АЗС № 5 "Партнер Нефть" [12:29:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:29:01]line СНО: Общий режим [12:29:01]line Чек 59 13.09.2024 12:29 [12:29:01]line Смена: 505 ФФД: 1.0 [12:29:01]line ЗНМ: 03000000022 [12:29:01]line РНМ: 0000000000091423 [12:29:01]line Версия ККМ: 001 [12:29:01]line ФМ: 0000000000874692 [12:29:01]line ФД: 92251 [12:29:01]line ФПД: 112755099060064 [12:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T122910&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92251&fm=112755099060064&tin=02508201610067®Number=0000000000091423&sum=13000 [12:29:01]line 0 [12:29:01]written 0, free lines is 4095 [12:29:01]OFD Sender: Processing packet 92251 [packets to send 63, broken 62] [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00092251 [12:29:01]OFD Sender: To server: pG, [12:29:01]CommunicateWithHost lk.salyk.kg:30040 [12:29:01]ConnectInit lk.salyk.kg [12:29:01]Connected sock=10 [12:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 50 AA 26 01 D4 B7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 3B 00 00 00 F4 03 04 00 16 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 68 01 00 35 04 06 00 66 8C D7 A0 47 60 90 1E 4C 78 A3 8D 0A 43 [12:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 25 15 47 00 E1 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 34 36 39 32 10 04 04 00 5B 68 01 00 F4 03 04 00 95 D8 E3 66 B6 04 01 00 00 72 9E 2F 8A 59 19 F2 4B [12:29:01]CommunicateWithHost err = 0 [12:29:01]CheckOFDResponse [12:29:01]1017 (14) - 77093643461234 [12:29:01]1041 (16) - 0000000000874692 [12:29:01]1040 (4) - 92251 [12:29:01]1012 (4) - 13.09.2024 06:15 [12:29:01]1206 (1) - 0 [12:29:01]OFD Sender: Remove packet 92251 [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00092251 [12:29:01]NVStorageDeleteData [12:29:01]Write to MH i2c: 01 00 00 9D 66 03 [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 9D 66 00 00 00 00 00 0E 0D 25 [12:29:01]RasterBufferAndPrint [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]line [12:29:01]written 0, free lines is 3352 [12:29:01]MH_Cut [12:29:01]Write to MH i2c: D1 01 00 A4 66 01 DC [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 01 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: D1 01 00 A4 66 00 DB [12:29:01]Write to MH i2c: 01 00 00 A5 66 0B [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:02]OFD Sender: No OFD packet to send [12:29:02]*** Cut start [12:29:02]*** Purtial cut [12:29:02]*** Stage 1: CUTSNS_PIN = 1 [12:29:04]Read from MH i2c: 01 [12:29:04]MH_I2C_Read... [12:29:04]*** Stop cut motor [12:29:04]*** Cut end [12:29:04]Read from MH i2c: 01 07 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 A5 66 00 00 00 00 00 FF 0F 20 [12:29:04]process_action close_receipt done [12:29:04]requested_data is exist [12:29:04]produce_requested_data [12:29:04]requested_item fm.sn is exist - process it [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 11 00 00 [12:29:04]Write to MH i2c: E2 08 00 A6 66 80 11 00 00 00 00 00 00 86 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 A6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [12:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:04]wFMCommunicate OK [12:29:04]requested_item fd.num is exist - process it [12:29:04]SAM_PROTO_GetFieldsCounters [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 13 00 00 [12:29:04]Write to MH i2c: E2 08 00 A7 66 80 13 00 00 00 00 00 00 89 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 62 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 62 00 A7 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_GetFieldsCounters done [12:29:04]requested_item shift.num is exist - process it [12:29:04]requested_item shift.opened is exist - process it [12:29:04]req_shift_opened [12:29:04]FM_GetShiftState [12:29:04]SAM_PROTO_GetShiftState [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 13 01 00 [12:29:04]Write to MH i2c: E2 08 00 A8 66 80 13 01 00 00 00 00 00 8B [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:04]Read from MH i2c: E2 0E 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 A8 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 17 [12:29:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_GetShiftState done [12:29:04]FM_GetShiftState done [12:29:04]req_shift_opened done [12:29:04]requested_item shift.open_date is exist - process it [12:29:04]req_shift_open_date [12:29:04]req_shift_open_date done [12:29:04]produce_requested_data done [12:29:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92251,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:29:04]process_action_free close_receipt [12:29:04]json_value_free [12:29:04]json_value_free done [12:29:04]process_json_proto returns [12:29:04]Send response to host [12:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92251,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:29:04]free response buf [12:29:04]execute_script done [12:29:04]execute_script returns [12:29:04]free content buf [12:29:04]Sock 8.Close socket [12:29:04]Sock 8.Thread stoped [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:55]accept exits with 9 [12:29:55]New connection [12:29:55]New thread 3067256164 created [12:29:55]Thread 3067399524 joined [12:29:55]Waiting for new connection... [12:29:55] Sock 9.Parse request [12:29:55]Sock 9.Check first char [12:29:55]Sock 9.First char is OK [12:29:55]request: POST /json_proto HTTP/1.0 [12:29:55]Method: POST [12:29:55]URL: /json_proto [12:29:55]Method is POST - this is cgi request [12:29:55]url: /json_proto [12:29:55]query_string will be loaded in cgi processing [12:29:55]execute_cgi json_proto POST (null) [12:29:55]execute_cgi path=json_proto method=POST [12:29:55]POST find Content-Length [12:29:55]Host: 172.17.57.71:8080 [12:29:55]Content-Length: 623 [12:29:55]Content-Type: application/json [12:29:55] [12:29:55]POST finish read [12:29:55]Found Content-Length = 623 [12:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127185", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:55]execute_script... [12:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127185", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:55]POST & json_proto [12:29:55]process_json_proto [12:29:55]json parsed OK: [12:29:55]protocol is kg_v1.0 [12:29:55]action value=close_receipt [12:29:55]process_action close_receipt [12:29:55]cmd_close_receipt [12:29:55]MH_GetDate [12:29:55]Write to MH i2c: F0 00 00 A9 66 FE [12:29:55]Write i2c OK [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: F0 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: F0 09 00 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: F0 09 00 A9 66 00 4E 30 E4 66 33 3A A4 66 46 [12:29:55]GetLastDocTimeStamp 1726230550 [12:29:55]current date 1726230606 [12:29:55]FM_GetShiftState [12:29:55]SAM_PROTO_GetShiftState [12:29:55]wFMCommunicate request_size=4 [12:29:55]MH_SAM_APDU [12:29:55]CAPDU: 80 13 01 00 [12:29:55]Write to MH i2c: E2 08 00 AA 66 80 13 01 00 00 00 00 00 8D [12:29:55]Write i2c OK [12:29:55]MH_I2C_Read... [12:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:55]Read from MH i2c: E2 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: E2 0E 00 [12:29:55]MH_I2C_Read... [12:29:55]Read from MH i2c: E2 0E 00 AA 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 19 [12:29:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:29:55]wFMCommunicate OK [12:29:55]SAM_PROTO_GetShiftState done [12:29:55]FM_GetShiftState done [12:29:55]opened in 1726186930 [12:29:55]opened+sec_in_day 1726273330 [12:29:55]quantity*price = 13400 [12:29:55]sum+1 = 13401 [12:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 60 13.09.2024 12:30 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92252 ФПД: 66034488441149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123006&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92252&fm=66034488441149&tin=02508201610067®Number=0000000000091423&sum=13400 0 [12:29:56]StoreToDocumentArchive [12:29:56]shift 505 fd 92252 [12:29:56]save to /storage/0505/doc_00092252 [12:29:56]save last doc name /storage/0505/doc_00092252 to /storage/kkm_last_doc_name [12:29:56]save OK [12:29:56]Clear old archive folders... [12:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:29:56]tlvbuf is 0165E0F0 [12:29:56]SAM_PROTO_ClearQueue [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 09 00 00 [12:29:56]Write to MH i2c: E2 08 00 B7 66 80 09 00 00 00 00 00 00 8F [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 B7 66 00 90 00 91 [12:29:56]RAPDU: 90 00 [12:29:56]wFMCommunicate OK [12:29:56]SAM_PROTO_ClearQueue done [12:29:56]KKMCreateOFDPacket [12:29:56]OFDProtocolAddRootSTLVToBuf [12:29:56]FM_MakeSignedData [12:29:56]FM_MakeSignedData [12:29:56]SAM_PROTO_SignData [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 0D 01 02 [12:29:56]Write to MH i2c: E2 08 00 B8 66 80 0D 01 02 00 00 00 00 97 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 B8 66 00 90 00 92 [12:29:56]RAPDU: 90 00 [12:29:56]wFMCommunicate OK [12:29:56]wFMCommunicate request_size=255 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 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 4E 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:29:56]Write to MH i2c: E2 02 01 B9 66 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 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 4E 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 D0 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 B9 66 00 90 00 93 [12:29:56]RAPDU: 90 00 [12:29:56]wFMCommunicate OK [12:29:56]wFMCommunicate request_size=34 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 68 01 00 35 04 06 00 3C 0E DA 39 F9 3D [12:29:56]Write to MH i2c: E2 25 00 BA 66 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 68 01 00 35 04 06 00 3C 0E DA 39 F9 3D 00 00 B7 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 03 00 BA 66 00 90 00 94 [12:29:56]RAPDU: 90 00 [12:29:56]wFMCommunicate OK [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 0D 03 02 [12:29:56]Write to MH i2c: E2 08 00 BB 66 80 0D 03 02 00 00 00 00 9C [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0B 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0B 00 BB 66 00 AC 6D 68 6D 45 4C E1 FC 90 00 F9 [12:29:56]RAPDU: AC 6D 68 6D 45 4C E1 FC 90 00 [12:29:56]wFMCommunicate OK [12:29:56]SAM_PROTO_SignData done [12:29:56]FM_MakeSignedData done [12:29:56]CreateOFDProtocolMessage [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 11 00 00 [12:29:56]Write to MH i2c: E2 08 00 BC 66 80 11 00 00 00 00 00 00 9C [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 17 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 17 00 BC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F3 [12:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:56]wFMCommunicate OK [12:29:56]CreateOFDProtocolMessage done [12:29:56]OFDSenderStorePacket 92252 [12:29:56]StoreOFDPacket docnum=92252 [12:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C3 12 1F 01 9D B8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 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 4E 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 68 01 00 35 04 06 00 3C 0E DA 39 F9 3D AC 6D 68 6D 45 4C E1 FC [12:29:56]CheckFolder [12:29:56]dirname=/storage/ofd_packets [12:29:56]CheckFolder done [12:29:56]ProducePacketName [12:29:56]name=ofd_packets/00092252 [12:29:56]NVStorageSaveData ofd_packets/00092252 [12:29:56]File name is /storage/ofd_packets/00092252 [12:29:56]Write 325 bytes [12:29:56]NVStorageSaveData done [12:29:56]OFDSenderStorePacket done [12:29:56]KKMCreateOFDPacket done [12:29:56]NVStorageSaveData kkm_last_timestamp [12:29:56]File name is /storage/kkm_last_timestamp [12:29:56]Write 4 bytes [12:29:56]NVStorageSaveData done [12:29:56]ExternCall_PrintAddStr [12:29:56]wPrintStart [12:29:56]Write to MH i2c: 01 00 00 BD 66 23 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: 01 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: 01 07 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: 01 07 00 BD 66 00 00 00 00 00 FF 0F 38 [12:29:56]RasterBufferAndPrint [12:29:56]line Счет N : (3)127185 [12:29:56]line ИНН: 02508201610067 [12:29:56]line Контрольно-Кассовый Чек [12:29:56]line ПРОДАЖА [12:29:56]line Товар: 48741415 [12:29:56]line Сигареты LD Super Slims Violet [12:29:56]line 1.000 * 134.00 [12:29:56]line = 134.00 [12:29:56]line НДС 12% НСП 1% [12:29:56]line > о реализуемом товаре [12:29:56]line ИТОГО: 134.00 [12:29:56]line НСП 1% : 1.19 [12:29:56]line НДС 12% : 14.23 [12:29:56]line Наличными: 134.00 [12:29:56]line Безнал.: 0.00 [12:29:56]line Место: АЗС № 5 "Партнер Нефть" [12:29:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:29:56]line СНО: Общий режим [12:29:56]line Чек 60 13.09.2024 12:30 [12:29:56]line Смена: 505 ФФД: 1.0 [12:29:56]line ЗНМ: 03000000022 [12:29:56]line РНМ: 0000000000091423 [12:29:56]line Версия ККМ: 001 [12:29:56]line ФМ: 0000000000874692 [12:29:56]line ФД: 92252 [12:29:56]line ФПД: 66034488441149 [12:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123006&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92252&fm=66034488441149&tin=02508201610067®Number=0000000000091423&sum=13400 [12:29:57]line 0 [12:29:57]written 0, free lines is 4095 [12:29:57]OFD Sender: Processing packet 92252 [packets to send 63, broken 62] [12:29:57]ProducePacketName [12:29:57]name=ofd_packets/00092252 [12:29:57]OFD Sender: To server: pG, [12:29:57]CommunicateWithHost lk.salyk.kg:30040 [12:29:57]ConnectInit lk.salyk.kg [12:29:57]Connected sock=10 [12:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C3 12 1F 01 9D B8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 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 4E 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 68 01 00 35 04 06 00 3C 0E DA 39 F9 3D AC 6D 68 6D 45 4C E1 FC [12:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A4 BF 47 00 76 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 68 01 00 F4 03 04 00 CC D8 E3 66 B6 04 01 00 00 F7 A8 91 73 6A 34 4E DF [12:29:57]CommunicateWithHost err = 0 [12:29:57]CheckOFDResponse [12:29:57]1017 (14) - 77093643461234 [12:29:57]1041 (16) - 0000000000874692 [12:29:57]1040 (4) - 92252 [12:29:57]1012 (4) - 13.09.2024 06:16 [12:29:57]1206 (1) - 0 [12:29:57]OFD Sender: Remove packet 92252 [12:29:57]ProducePacketName [12:29:57]name=ofd_packets/00092252 [12:29:57]NVStorageDeleteData [12:29:57]Write to MH i2c: 01 00 00 E6 66 4C [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: 01 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: 01 07 00 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: 01 07 00 E6 66 00 00 00 00 00 04 0D 64 [12:29:57]RasterBufferAndPrint [12:29:57]line [12:29:57]line [12:29:57]line [12:29:57]line [12:29:57]line [12:29:57]written 0, free lines is 3338 [12:29:57]MH_Cut [12:29:57]Write to MH i2c: D1 01 00 ED 66 01 25 [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: D1 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: D1 01 00 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: D1 01 00 ED 66 00 24 [12:29:57]Write to MH i2c: 01 00 00 EE 66 54 [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]OFD Sender: No OFD packet to send [12:29:58]*** Cut start [12:29:58]*** Purtial cut [12:29:58]*** Stage 1: CUTSNS_PIN = 1 [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]*** Stop cut motor [12:30:00]*** Cut end [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 EE 66 00 00 00 00 00 FF 0F 69 [12:30:00]process_action close_receipt done [12:30:00]requested_data is exist [12:30:00]produce_requested_data [12:30:00]requested_item fm.sn is exist - process it [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 11 00 00 [12:30:00]Write to MH i2c: E2 08 00 EF 66 80 11 00 00 00 00 00 00 CF [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 EF 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [12:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:30:00]wFMCommunicate OK [12:30:00]requested_item fd.num is exist - process it [12:30:00]SAM_PROTO_GetFieldsCounters [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 13 00 00 [12:30:00]Write to MH i2c: E2 08 00 F0 66 80 13 00 00 00 00 00 00 D2 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 62 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 62 00 F0 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [12:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_GetFieldsCounters done [12:30:00]requested_item shift.num is exist - process it [12:30:00]requested_item shift.opened is exist - process it [12:30:00]req_shift_opened [12:30:00]FM_GetShiftState [12:30:00]SAM_PROTO_GetShiftState [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 13 01 00 [12:30:00]Write to MH i2c: E2 08 00 F1 66 80 13 01 00 00 00 00 00 D4 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0E 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0E 00 F1 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 60 [12:30:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_GetShiftState done [12:30:00]FM_GetShiftState done [12:30:00]req_shift_opened done [12:30:00]requested_item shift.open_date is exist - process it [12:30:00]req_shift_open_date [12:30:00]req_shift_open_date done [12:30:00]produce_requested_data done [12:30:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92252,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:30:00]process_action_free close_receipt [12:30:00]json_value_free [12:30:00]json_value_free done [12:30:00]process_json_proto returns [12:30:00]Send response to host [12:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92252,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:30:00]free response buf [12:30:00]execute_script done [12:30:00]execute_script returns [12:30:00]free content buf [12:30:00]Sock 9.Close socket [12:30:00]Sock 9.Thread stoped [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]accept exits with 8 [12:31:32]New connection [12:31:32]New thread 3067399524 created [12:31:32]Thread 3067256164 joined [12:31:32]Waiting for new connection... [12:31:32] Sock 8.Parse request [12:31:32]Sock 8.Check first char [12:31:32]Sock 8.First char is OK [12:31:32]request: POST /json_proto HTTP/1.0 [12:31:32]Method: POST [12:31:32]URL: /json_proto [12:31:32]Method is POST - this is cgi request [12:31:32]url: /json_proto [12:31:32]query_string will be loaded in cgi processing [12:31:32]execute_cgi json_proto POST (null) [12:31:32]execute_cgi path=json_proto method=POST [12:31:32]POST find Content-Length [12:31:32]Host: 172.17.57.71:8080 [12:31:32]Content-Length: 671 [12:31:32]Content-Type: application/json [12:31:32] [12:31:32]POST finish read [12:31:32]Found Content-Length = 671 [12:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127186", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:32]execute_script... [12:31: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 : (3)127186", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:32]POST & json_proto [12:31:32]process_json_proto [12:31:32]json parsed OK: [12:31:32]protocol is kg_v1.0 [12:31:32]action value=close_receipt [12:31:32]process_action close_receipt [12:31:32]cmd_close_receipt [12:31:32]MH_GetDate [12:31:32]Write to MH i2c: F0 00 00 F2 66 47 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 09 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 09 00 F2 66 00 AF 30 E4 66 33 3A A4 66 F0 [12:31:32]GetLastDocTimeStamp 1726230606 [12:31:32]current date 1726230703 [12:31:32]FM_GetShiftState [12:31:32]SAM_PROTO_GetShiftState [12:31:32]wFMCommunicate request_size=4 [12:31:32]MH_SAM_APDU [12:31:32]CAPDU: 80 13 01 00 [12:31:32]Write to MH i2c: E2 08 00 F3 66 80 13 01 00 00 00 00 00 D6 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:32]Read from MH i2c: E2 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 0E 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 0E 00 F3 66 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 62 [12:31:32]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:31:32]wFMCommunicate OK [12:31:32]SAM_PROTO_GetShiftState done [12:31:32]FM_GetShiftState done [12:31:32]opened in 1726186930 [12:31:32]opened+sec_in_day 1726273330 [12:31:32]quantity*price = 9500 [12:31:32]sum+1 = 9501 [12:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 61 13.09.2024 12:31 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92253 ФПД: 201486022797542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123143&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92253&fm=201486022797542&tin=02508201610067®Number=0000000000091423&sum=9500 0 [12:31:33]StoreToDocumentArchive [12:31:33]shift 505 fd 92253 [12:31:33]save to /storage/0505/doc_00092253 [12:31:33]save last doc name /storage/0505/doc_00092253 to /storage/kkm_last_doc_name [12:31:33]save OK [12:31:33]Clear old archive folders... [12:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=290 [12:31:33]tlvbuf is 017AA930 [12:31:33]SAM_PROTO_ClearQueue [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 09 00 00 [12:31:33]Write to MH i2c: E2 08 00 00 67 80 09 00 00 00 00 00 00 D9 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 00 67 00 90 00 DB [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_ClearQueue done [12:31:33]KKMCreateOFDPacket [12:31:33]OFDProtocolAddRootSTLVToBuf [12:31:33]FM_MakeSignedData [12:31:33]FM_MakeSignedData [12:31:33]SAM_PROTO_SignData [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 01 02 [12:31:33]Write to MH i2c: E2 08 00 01 67 80 0D 01 02 00 00 00 00 E1 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 01 67 00 90 00 DC [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=255 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AF 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:31:33]Write to MH i2c: E2 02 01 02 67 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AF 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 10 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 02 67 00 90 00 DD [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=49 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 02 02 2C 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 68 01 00 35 04 06 00 B7 40 1E D0 E8 E6 [12:31:33]Write to MH i2c: E2 34 00 03 67 80 0D 02 02 2C 00 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 68 01 00 35 04 06 00 B7 40 1E D0 E8 E6 00 00 88 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 03 67 00 90 00 DE [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 03 02 [12:31:33]Write to MH i2c: E2 08 00 04 67 80 0D 03 02 00 00 00 00 E6 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0B 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0B 00 04 67 00 AB E5 65 17 A8 CB 1A B2 90 00 32 [12:31:33]RAPDU: AB E5 65 17 A8 CB 1A B2 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_SignData done [12:31:33]FM_MakeSignedData done [12:31:33]CreateOFDProtocolMessage [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 11 00 00 [12:31:33]Write to MH i2c: E2 08 00 05 67 80 11 00 00 00 00 00 00 E6 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:34]Read from MH i2c: E2 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 17 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 17 00 05 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3D [12:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:34]wFMCommunicate OK [12:31:34]CreateOFDProtocolMessage done [12:31:34]OFDSenderStorePacket 92253 [12:31:34]StoreOFDPacket docnum=92253 [12:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 19 4C 2E 01 04 A1 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AF 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 68 01 00 35 04 06 00 B7 40 1E D0 E8 E6 AB E5 65 17 A8 CB 1A B2 [12:31:34]CheckFolder [12:31:34]dirname=/storage/ofd_packets [12:31:34]CheckFolder done [12:31:34]ProducePacketName [12:31:34]name=ofd_packets/00092253 [12:31:34]NVStorageSaveData ofd_packets/00092253 [12:31:34]File name is /storage/ofd_packets/00092253 [12:31:34]Write 340 bytes [12:31:34]NVStorageSaveData done [12:31:34]OFDSenderStorePacket done [12:31:34]KKMCreateOFDPacket done [12:31:34]NVStorageSaveData kkm_last_timestamp [12:31:34]File name is /storage/kkm_last_timestamp [12:31:34]Write 4 bytes [12:31:34]NVStorageSaveData done [12:31:34]ExternCall_PrintAddStr [12:31:34]wPrintStart [12:31:34]Write to MH i2c: 01 00 00 06 67 6D [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 06 67 00 00 00 00 00 FF 0F 82 [12:31:34]RasterBufferAndPrint [12:31:34]line Счет N : (3)127186 [12:31:34]line ИНН: 02508201610067 [12:31:34]line Контрольно-Кассовый Чек [12:31:34]line ПРОДАЖА [12:31:34]line Товар: 4700000483334 [12:31:34]line Напиток Nitro Fresh Дикие ягоды [12:31:34]line 1.000 * 95.00 [12:31:34]line = 95.00 [12:31:34]line НДС 12% НСП 1% [12:31:34]line > о реализуемом товаре [12:31:34]line ИТОГО: 95.00 [12:31:34]line НСП 1% : 0.84 [12:31:34]line НДС 12% : 10.09 [12:31:34]line Наличными: 95.00 [12:31:34]line Безнал.: 0.00 [12:31:34]line Место: АЗС № 5 "Партнер Нефть" [12:31:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:31:34]line СНО: Общий режим [12:31:34]line Чек 61 13.09.2024 12:31 [12:31:34]line Смена: 505 ФФД: 1.0 [12:31:34]line ЗНМ: 03000000022 [12:31:34]line РНМ: 0000000000091423 [12:31:34]line Версия ККМ: 001 [12:31:34]line ФМ: 0000000000874692 [12:31:34]line ФД: 92253 [12:31:34]line ФПД: 201486022797542 [12:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123143&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92253&fm=201486022797542&tin=02508201610067®Number=0000000000091423&sum=9500 [12:31:34]line 0 [12:31:34]written 0, free lines is 4095 [12:31:34]OFD Sender: Processing packet 92253 [packets to send 63, broken 62] [12:31:34]ProducePacketName [12:31:34]name=ofd_packets/00092253 [12:31:34]OFD Sender: To server: pG, [12:31:34]CommunicateWithHost lk.salyk.kg:30040 [12:31:34]ConnectInit lk.salyk.kg [12:31:34]Connected sock=11 [12:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 19 4C 2E 01 04 A1 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AF 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 68 01 00 35 04 06 00 B7 40 1E D0 E8 E6 AB E5 65 17 A8 CB 1A B2 [12:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DA CB 47 00 FA 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 68 01 00 F4 03 04 00 2D D9 E3 66 B6 04 01 00 00 BA F5 18 3F 4B 52 61 47 [12:31:34]CommunicateWithHost err = 0 [12:31:34]CheckOFDResponse [12:31:34]1017 (14) - 77093643461234 [12:31:34]1041 (16) - 0000000000874692 [12:31:34]1040 (4) - 92253 [12:31:34]1012 (4) - 13.09.2024 06:18 [12:31:34]1206 (1) - 0 [12:31:34]OFD Sender: Remove packet 92253 [12:31:34]ProducePacketName [12:31:34]name=ofd_packets/00092253 [12:31:34]NVStorageDeleteData [12:31:34]Write to MH i2c: 01 00 00 2F 67 96 [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 2F 67 00 00 00 00 00 0B 0D B5 [12:31:34]RasterBufferAndPrint [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]written 0, free lines is 3346 [12:31:34]MH_Cut [12:31:34]Write to MH i2c: D1 01 00 36 67 01 6F [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 01 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 01 00 36 67 00 6E [12:31:34]Write to MH i2c: 01 00 00 37 67 9E [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]OFD Sender: No OFD packet to send [12:31:35]*** Cut start [12:31:35]*** Purtial cut [12:31:35]*** Stage 1: CUTSNS_PIN = 1 [12:31:37]Read from MH i2c: 01 [12:31:37]MH_I2C_Read... [12:31:37]*** Stop cut motor [12:31:37]*** Cut end [12:31:37]Read from MH i2c: 01 07 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: 01 07 00 37 67 00 00 00 00 00 FF 0F B3 [12:31:37]process_action close_receipt done [12:31:37]requested_data is exist [12:31:37]produce_requested_data [12:31:37]requested_item fm.sn is exist - process it [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 11 00 00 [12:31:37]Write to MH i2c: E2 08 00 38 67 80 11 00 00 00 00 00 00 19 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 17 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 17 00 38 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [12:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:37]wFMCommunicate OK [12:31:37]requested_item fd.num is exist - process it [12:31:37]SAM_PROTO_GetFieldsCounters [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 13 00 00 [12:31:37]Write to MH i2c: E2 08 00 39 67 80 13 00 00 00 00 00 00 1C [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 62 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 62 00 39 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:37]wFMCommunicate OK [12:31:37]SAM_PROTO_GetFieldsCounters done [12:31:37]requested_item shift.num is exist - process it [12:31:37]requested_item shift.opened is exist - process it [12:31:37]req_shift_opened [12:31:37]FM_GetShiftState [12:31:37]SAM_PROTO_GetShiftState [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 13 01 00 [12:31:37]Write to MH i2c: E2 08 00 3A 67 80 13 01 00 00 00 00 00 1E [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 0E 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 0E 00 3A 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AA [12:31:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:31:37]wFMCommunicate OK [12:31:37]SAM_PROTO_GetShiftState done [12:31:37]FM_GetShiftState done [12:31:37]req_shift_opened done [12:31:37]requested_item shift.open_date is exist - process it [12:31:37]req_shift_open_date [12:31:37]req_shift_open_date done [12:31:37]produce_requested_data done [12:31:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92253,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:31:37]process_action_free close_receipt [12:31:37]json_value_free [12:31:37]json_value_free done [12:31:37]process_json_proto returns [12:31:37]Send response to host [12:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92253,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:31:37]free response buf [12:31:37]execute_script done [12:31:37]execute_script returns [12:31:37]free content buf [12:31:37]Sock 8.Close socket [12:31:37]Sock 8.Thread stoped [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:46]accept exits with 9 [12:31:46]New connection [12:31:46]New thread 3067256164 created [12:31:46]Thread 3067399524 joined [12:31:46]Waiting for new connection... [12:31:46] Sock 9.Parse request [12:31:46]Sock 9.Check first char [12:31:46]Sock 9.First char is OK [12:31:46]request: POST /json_proto HTTP/1.0 [12:31:46]Method: POST [12:31:46]URL: /json_proto [12:31:46]Method is POST - this is cgi request [12:31:46]url: /json_proto [12:31:46]query_string will be loaded in cgi processing [12:31:46]execute_cgi json_proto POST (null) [12:31:46]execute_cgi path=json_proto method=POST [12:31:46]POST find Content-Length [12:31:46]Host: 172.17.57.71:8080 [12:31:46]Content-Length: 727 [12:31:46]Content-Type: application/json [12:31:46] [12:31:46]POST finish read [12:31:46]Found Content-Length = 727 [12:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127187", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:46]execute_script... [12:31: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 : (3)127187", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:46]POST & json_proto [12:31:46]process_json_proto [12:31:46]json parsed OK: [12:31:46]protocol is kg_v1.0 [12:31:46]action value=close_receipt [12:31:46]process_action close_receipt [12:31:46]cmd_close_receipt [12:31:46]MH_GetDate [12:31:46]Write to MH i2c: F0 00 00 3B 67 91 [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 3B 67 00 BD 30 E4 66 33 3A A4 66 48 [12:31:46]GetLastDocTimeStamp 1726230703 [12:31:46]current date 1726230717 [12:31:46]FM_GetShiftState [12:31:46]SAM_PROTO_GetShiftState [12:31:46]wFMCommunicate request_size=4 [12:31:46]MH_SAM_APDU [12:31:46]CAPDU: 80 13 01 00 [12:31:46]Write to MH i2c: E2 08 00 3C 67 80 13 01 00 00 00 00 00 20 [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:46]Read from MH i2c: E2 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 3C 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AC [12:31:46]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:31:46]wFMCommunicate OK [12:31:46]SAM_PROTO_GetShiftState done [12:31:46]FM_GetShiftState done [12:31:46]opened in 1726186930 [12:31:46]opened+sec_in_day 1726273330 [12:31:46]quantity*price = 8000 [12:31:46]sum+1 = 8001 [12:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 62 13.09.2024 12:31 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92254 ФПД: 262104652123084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123157&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92254&fm=262104652123084&tin=02508201610067®Number=0000000000091423&sum=8000 0 [12:31:47]StoreToDocumentArchive [12:31:47]shift 505 fd 92254 [12:31:47]save to /storage/0505/doc_00092254 [12:31:47]save last doc name /storage/0505/doc_00092254 to /storage/kkm_last_doc_name [12:31:47]save OK [12:31:47]Clear old archive folders... [12:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=306 [12:31:47]tlvbuf is 01657EF0 [12:31:47]SAM_PROTO_ClearQueue [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 09 00 00 [12:31:47]Write to MH i2c: E2 08 00 49 67 80 09 00 00 00 00 00 00 22 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 49 67 00 90 00 24 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_ClearQueue done [12:31:47]KKMCreateOFDPacket [12:31:47]OFDProtocolAddRootSTLVToBuf [12:31:47]FM_MakeSignedData [12:31:47]FM_MakeSignedData [12:31:47]SAM_PROTO_SignData [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 01 02 [12:31:47]Write to MH i2c: E2 08 00 4A 67 80 0D 01 02 00 00 00 00 2A [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 4A 67 00 90 00 25 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=255 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BD 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 [12:31:47]Write to MH i2c: E2 02 01 4B 67 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BD 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 00 E0 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 4B 67 00 90 00 26 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=65 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 68 01 00 35 04 06 00 EE 61 FE AF 0B CC [12:31:47]Write to MH i2c: E2 44 00 4C 67 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 68 01 00 35 04 06 00 EE 61 FE AF 0B CC 00 00 14 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 4C 67 00 90 00 27 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 03 02 [12:31:47]Write to MH i2c: E2 08 00 4D 67 80 0D 03 02 00 00 00 00 2F [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0B 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0B 00 4D 67 00 05 12 D6 7B 68 AD 15 08 90 00 CA [12:31:47]RAPDU: 05 12 D6 7B 68 AD 15 08 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_SignData done [12:31:47]FM_MakeSignedData done [12:31:47]CreateOFDProtocolMessage [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 11 00 00 [12:31:47]Write to MH i2c: E2 08 00 4E 67 80 11 00 00 00 00 00 00 2F [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 17 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 17 00 4E 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 86 [12:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:47]wFMCommunicate OK [12:31:47]CreateOFDProtocolMessage done [12:31:47]OFDSenderStorePacket 92254 [12:31:47]StoreOFDPacket docnum=92254 [12:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 3C D0 3E 01 47 74 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BD 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 68 01 00 35 04 06 00 EE 61 FE AF 0B CC 05 12 D6 7B 68 AD 15 08 [12:31:47]CheckFolder [12:31:47]dirname=/storage/ofd_packets [12:31:47]CheckFolder done [12:31:47]ProducePacketName [12:31:47]name=ofd_packets/00092254 [12:31:47]NVStorageSaveData ofd_packets/00092254 [12:31:47]File name is /storage/ofd_packets/00092254 [12:31:47]Write 356 bytes [12:31:47]NVStorageSaveData done [12:31:47]OFDSenderStorePacket done [12:31:47]KKMCreateOFDPacket done [12:31:47]NVStorageSaveData kkm_last_timestamp [12:31:47]File name is /storage/kkm_last_timestamp [12:31:47]Write 4 bytes [12:31:47]NVStorageSaveData done [12:31:47]ExternCall_PrintAddStr [12:31:47]wPrintStart [12:31:47]Write to MH i2c: 01 00 00 4F 67 B6 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 07 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 07 00 4F 67 00 00 00 00 00 FF 0F CB [12:31:47]RasterBufferAndPrint [12:31:47]line Счет N : (3)127187 [12:31:47]line ИНН: 02508201610067 [12:31:47]line Контрольно-Кассовый Чек [12:31:47]line ПРОДАЖА [12:31:47]line Товар: 4600338001623 [12:31:47]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:31:47]line 1.000 * 80.00 [12:31:47]line = 80.00 [12:31:47]line НДС 12% НСП 1% [12:31:47]line > о реализуемом товаре [12:31:47]line ИТОГО: 80.00 [12:31:47]line НСП 1% : 0.71 [12:31:47]line НДС 12% : 8.50 [12:31:47]line Наличными: 80.00 [12:31:47]line Безнал.: 0.00 [12:31:47]line Место: АЗС № 5 "Партнер Нефть" [12:31:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:31:47]line СНО: Общий режим [12:31:47]line Чек 62 13.09.2024 12:31 [12:31:47]line Смена: 505 ФФД: 1.0 [12:31:47]line ЗНМ: 03000000022 [12:31:47]line РНМ: 0000000000091423 [12:31:47]line Версия ККМ: 001 [12:31:47]line ФМ: 0000000000874692 [12:31:47]line ФД: 92254 [12:31:47]line ФПД: 262104652123084 [12:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123157&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92254&fm=262104652123084&tin=02508201610067®Number=0000000000091423&sum=8000 [12:31:48]line 0 [12:31:48]OFD Sender: Processing packet 92254 [packets to send 63, broken 62] [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00092254 [12:31:48]OFD Sender: To server: pG, [12:31:48]CommunicateWithHost lk.salyk.kg:30040 [12:31:48]ConnectInit lk.salyk.kg [12:31:48]written 0, free lines is 4095 [12:31:48]Connected sock=10 [12:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 3C D0 3E 01 47 74 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BD 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 68 01 00 35 04 06 00 EE 61 FE AF 0B CC 05 12 D6 7B 68 AD 15 08 [12:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 01 47 00 59 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 34 36 39 32 10 04 04 00 5E 68 01 00 F4 03 04 00 3C D9 E3 66 B6 04 01 00 00 18 F1 F6 23 3E 51 DE 69 [12:31:48]CommunicateWithHost err = 0 [12:31:48]CheckOFDResponse [12:31:48]1017 (14) - 77093643461234 [12:31:48]1041 (16) - 0000000000874692 [12:31:48]1040 (4) - 92254 [12:31:48]1012 (4) - 13.09.2024 06:18 [12:31:48]1206 (1) - 0 [12:31:48]OFD Sender: Remove packet 92254 [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00092254 [12:31:48]NVStorageDeleteData [12:31:48]Write to MH i2c: 01 00 00 78 67 DF [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 78 67 00 00 00 00 00 12 0D 05 [12:31:48]RasterBufferAndPrint [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]written 0, free lines is 3354 [12:31:48]MH_Cut [12:31:48]Write to MH i2c: D1 01 00 7F 67 01 B8 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 01 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 01 00 7F 67 00 B7 [12:31:48]Write to MH i2c: 01 00 00 80 67 E7 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]OFD Sender: No OFD packet to send [12:31:49]*** Cut start [12:31:49]*** Purtial cut [12:31:49]*** Stage 1: CUTSNS_PIN = 1 [12:31:51]Read from MH i2c: 01 [12:31:51]MH_I2C_Read... [12:31:51]*** Stop cut motor [12:31:51]*** Cut end [12:31:51]Read from MH i2c: 01 07 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 80 67 00 00 00 00 00 FF 0F FC [12:31:51]process_action close_receipt done [12:31:51]requested_data is exist [12:31:51]produce_requested_data [12:31:51]requested_item fm.sn is exist - process it [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 11 00 00 [12:31:51]Write to MH i2c: E2 08 00 81 67 80 11 00 00 00 00 00 00 62 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 17 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 17 00 81 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [12:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:51]wFMCommunicate OK [12:31:51]requested_item fd.num is exist - process it [12:31:51]SAM_PROTO_GetFieldsCounters [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 13 00 00 [12:31:51]Write to MH i2c: E2 08 00 82 67 80 13 00 00 00 00 00 00 65 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 62 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 62 00 82 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:51]wFMCommunicate OK [12:31:51]SAM_PROTO_GetFieldsCounters done [12:31:51]requested_item shift.num is exist - process it [12:31:51]requested_item shift.opened is exist - process it [12:31:51]req_shift_opened [12:31:51]FM_GetShiftState [12:31:51]SAM_PROTO_GetShiftState [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 13 01 00 [12:31:51]Write to MH i2c: E2 08 00 83 67 80 13 01 00 00 00 00 00 67 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 83 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F3 [12:31:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:31:51]wFMCommunicate OK [12:31:51]SAM_PROTO_GetShiftState done [12:31:51]FM_GetShiftState done [12:31:51]req_shift_opened done [12:31:51]requested_item shift.open_date is exist - process it [12:31:51]req_shift_open_date [12:31:51]req_shift_open_date done [12:31:51]produce_requested_data done [12:31:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92254,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:31:51]process_action_free close_receipt [12:31:51]json_value_free [12:31:51]json_value_free done [12:31:51]process_json_proto returns [12:31:51]Send response to host [12:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92254,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:31:51]free response buf [12:31:51]execute_script done [12:31:51]execute_script returns [12:31:51]free content buf [12:31:51]Sock 9.Close socket [12:31:51]Sock 9.Thread stoped [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:10]accept exits with 8 [12:32:10]New connection [12:32:10]New thread 3067399524 created [12:32:10]Thread 3067256164 joined [12:32:10]Waiting for new connection... [12:32:10] Sock 8.Parse request [12:32:10]Sock 8.Check first char [12:32:10]Sock 8.First char is OK [12:32:10]request: POST /json_proto HTTP/1.0 [12:32:10]Method: POST [12:32:10]URL: /json_proto [12:32:10]Method is POST - this is cgi request [12:32:10]url: /json_proto [12:32:10]query_string will be loaded in cgi processing [12:32:10]execute_cgi json_proto POST (null) [12:32:10]execute_cgi path=json_proto method=POST [12:32:10]POST find Content-Length [12:32:10]Host: 172.17.57.71:8080 [12:32:10]Content-Length: 727 [12:32:10]Content-Type: application/json [12:32:10] [12:32:10]POST finish read [12:32:10]Found Content-Length = 727 [12:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127188", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:10]execute_script... [12:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127188", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:10]POST & json_proto [12:32:10]process_json_proto [12:32:10]json parsed OK: [12:32:10]protocol is kg_v1.0 [12:32:10]action value=close_receipt [12:32:10]process_action close_receipt [12:32:10]cmd_close_receipt [12:32:10]MH_GetDate [12:32:10]Write to MH i2c: F0 00 00 84 67 DA [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 09 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 09 00 84 67 00 D5 30 E4 66 33 3A A4 66 A9 [12:32:10]GetLastDocTimeStamp 1726230717 [12:32:10]current date 1726230741 [12:32:10]FM_GetShiftState [12:32:10]SAM_PROTO_GetShiftState [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 13 01 00 [12:32:10]Write to MH i2c: E2 08 00 85 67 80 13 01 00 00 00 00 00 69 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 85 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F5 [12:32:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_GetShiftState done [12:32:10]FM_GetShiftState done [12:32:10]opened in 1726186930 [12:32:10]opened+sec_in_day 1726273330 [12:32:10]quantity*price = 8000 [12:32:10]sum+1 = 8001 [12:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 63 13.09.2024 12:32 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92255 ФПД: 52520385247609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123221&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92255&fm=52520385247609&tin=02508201610067®Number=0000000000091423&sum=8000 0 [12:32:11]StoreToDocumentArchive [12:32:11]shift 505 fd 92255 [12:32:11]save to /storage/0505/doc_00092255 [12:32:11]save last doc name /storage/0505/doc_00092255 to /storage/kkm_last_doc_name [12:32:11]save OK [12:32:11]Clear old archive folders... [12:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=306 [12:32:11]tlvbuf is 01598E20 [12:32:11]SAM_PROTO_ClearQueue [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 09 00 00 [12:32:11]Write to MH i2c: E2 08 00 92 67 80 09 00 00 00 00 00 00 6B [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 92 67 00 90 00 6D [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]SAM_PROTO_ClearQueue done [12:32:11]KKMCreateOFDPacket [12:32:11]OFDProtocolAddRootSTLVToBuf [12:32:11]FM_MakeSignedData [12:32:11]FM_MakeSignedData [12:32:11]SAM_PROTO_SignData [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 01 02 [12:32:11]Write to MH i2c: E2 08 00 93 67 80 0D 01 02 00 00 00 00 73 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 93 67 00 90 00 6E [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=255 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 D5 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 [12:32:11]Write to MH i2c: E2 02 01 94 67 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 D5 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 00 42 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 94 67 00 90 00 6F [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=65 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 68 01 00 35 04 06 00 2F C4 5A E7 F9 79 [12:32:11]Write to MH i2c: E2 44 00 95 67 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 68 01 00 35 04 06 00 2F C4 5A E7 F9 79 00 00 31 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 95 67 00 90 00 70 [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 03 02 [12:32:11]Write to MH i2c: E2 08 00 96 67 80 0D 03 02 00 00 00 00 78 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 0B 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 0B 00 96 67 00 0A F4 C7 4A 1E D3 31 5C 90 00 06 [12:32:11]RAPDU: 0A F4 C7 4A 1E D3 31 5C 90 00 [12:32:11]wFMCommunicate OK [12:32:11]SAM_PROTO_SignData done [12:32:11]FM_MakeSignedData done [12:32:11]CreateOFDProtocolMessage [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 11 00 00 [12:32:11]Write to MH i2c: E2 08 00 97 67 80 11 00 00 00 00 00 00 78 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 17 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 17 00 97 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [12:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:11]wFMCommunicate OK [12:32:11]CreateOFDProtocolMessage done [12:32:11]OFDSenderStorePacket 92255 [12:32:11]StoreOFDPacket docnum=92255 [12:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 18 6B 3E 01 2C D7 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 D5 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 68 01 00 35 04 06 00 2F C4 5A E7 F9 79 0A F4 C7 4A 1E D3 31 5C [12:32:11]CheckFolder [12:32:11]dirname=/storage/ofd_packets [12:32:11]CheckFolder done [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00092255 [12:32:11]NVStorageSaveData ofd_packets/00092255 [12:32:11]File name is /storage/ofd_packets/00092255 [12:32:11]Write 356 bytes [12:32:11]NVStorageSaveData done [12:32:11]OFDSenderStorePacket done [12:32:11]KKMCreateOFDPacket done [12:32:11]NVStorageSaveData kkm_last_timestamp [12:32:11]File name is /storage/kkm_last_timestamp [12:32:11]Write 4 bytes [12:32:11]NVStorageSaveData done [12:32:11]ExternCall_PrintAddStr [12:32:11]wPrintStart [12:32:11]Write to MH i2c: 01 00 00 98 67 FF [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 98 67 00 00 00 00 00 FF 0F 14 [12:32:11]RasterBufferAndPrint [12:32:11]line Счет N : (3)127188 [12:32:11]line ИНН: 02508201610067 [12:32:11]line Контрольно-Кассовый Чек [12:32:11]line ПРОДАЖА [12:32:11]line Товар: 4600338001623 [12:32:11]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:32:11]line 1.000 * 80.00 [12:32:11]line = 80.00 [12:32:11]line НДС 12% НСП 1% [12:32:11]line > о реализуемом товаре [12:32:11]line ИТОГО: 80.00 [12:32:11]line НСП 1% : 0.71 [12:32:11]line НДС 12% : 8.50 [12:32:11]line Наличными: 80.00 [12:32:11]line Безнал.: 0.00 [12:32:11]line Место: АЗС № 5 "Партнер Нефть" [12:32:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:32:11]line СНО: Общий режим [12:32:12]line Чек 63 13.09.2024 12:32 [12:32:12]line Смена: 505 ФФД: 1.0 [12:32:12]line ЗНМ: 03000000022 [12:32:12]line РНМ: 0000000000091423 [12:32:12]line Версия ККМ: 001 [12:32:12]line ФМ: 0000000000874692 [12:32:12]line ФД: 92255 [12:32:12]line ФПД: 52520385247609 [12:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123221&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92255&fm=52520385247609&tin=02508201610067®Number=0000000000091423&sum=8000 [12:32:12]line 0 [12:32:12]OFD Sender: Processing packet 92255 [packets to send 63, broken 62] [12:32:12]ProducePacketName [12:32:12]name=ofd_packets/00092255 [12:32:12]OFD Sender: To server: pG, [12:32:12]CommunicateWithHost lk.salyk.kg:30040 [12:32:12]ConnectInit lk.salyk.kg [12:32:12]written 0, free lines is 4095 [12:32:12]Connected sock=10 [12:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 46 01 00 00 18 6B 3E 01 2C D7 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 D5 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 68 01 00 35 04 06 00 2F C4 5A E7 F9 79 0A F4 C7 4A 1E D3 31 5C [12:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 77 6F 47 00 CA 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 68 01 00 F4 03 04 00 53 D9 E3 66 B6 04 01 00 00 9F 37 97 C3 AF 34 70 48 [12:32:12]CommunicateWithHost err = 0 [12:32:12]CheckOFDResponse [12:32:12]1017 (14) - 77093643461234 [12:32:12]1041 (16) - 0000000000874692 [12:32:12]1040 (4) - 92255 [12:32:12]1012 (4) - 13.09.2024 06:18 [12:32:12]1206 (1) - 0 [12:32:12]OFD Sender: Remove packet 92255 [12:32:12]ProducePacketName [12:32:12]name=ofd_packets/00092255 [12:32:12]NVStorageDeleteData [12:32:12]Write to MH i2c: 01 00 00 C1 67 28 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 C1 67 00 00 00 00 00 12 0D 4E [12:32:12]RasterBufferAndPrint [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]written 0, free lines is 3353 [12:32:12]MH_Cut [12:32:12]Write to MH i2c: D1 01 00 C8 67 01 01 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 C8 67 00 00 [12:32:12]Write to MH i2c: 01 00 00 C9 67 30 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]OFD Sender: No OFD packet to send [12:32:13]*** Cut start [12:32:13]*** Purtial cut [12:32:13]*** Stage 1: CUTSNS_PIN = 1 [12:32:15]Read from MH i2c: 01 [12:32:15]MH_I2C_Read... [12:32:15]*** Stop cut motor [12:32:15]*** Cut end [12:32:15]Read from MH i2c: 01 07 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 C9 67 00 00 00 00 00 FF 0F 45 [12:32:15]process_action close_receipt done [12:32:15]requested_data is exist [12:32:15]produce_requested_data [12:32:15]requested_item fm.sn is exist - process it [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 11 00 00 [12:32:15]Write to MH i2c: E2 08 00 CA 67 80 11 00 00 00 00 00 00 AB [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 CA 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 02 [12:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:15]wFMCommunicate OK [12:32:15]requested_item fd.num is exist - process it [12:32:15]SAM_PROTO_GetFieldsCounters [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 00 00 [12:32:15]Write to MH i2c: E2 08 00 CB 67 80 13 00 00 00 00 00 00 AE [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 62 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 62 00 CB 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetFieldsCounters done [12:32:15]requested_item shift.num is exist - process it [12:32:15]requested_item shift.opened is exist - process it [12:32:15]req_shift_opened [12:32:15]FM_GetShiftState [12:32:15]SAM_PROTO_GetShiftState [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 01 00 [12:32:15]Write to MH i2c: E2 08 00 CC 67 80 13 01 00 00 00 00 00 B0 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 CC 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3C [12:32:15]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetShiftState done [12:32:15]FM_GetShiftState done [12:32:15]req_shift_opened done [12:32:15]requested_item shift.open_date is exist - process it [12:32:15]req_shift_open_date [12:32:15]req_shift_open_date done [12:32:15]produce_requested_data done [12:32:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92255,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:32:15]process_action_free close_receipt [12:32:15]json_value_free [12:32:15]json_value_free done [12:32:15]process_json_proto returns [12:32:15]Send response to host [12:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92255,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:32:15]free response buf [12:32:15]execute_script done [12:32:15]execute_script returns [12:32:15]free content buf [12:32:15]Sock 8.Close socket [12:32:15]Sock 8.Thread stoped [12:32:17]OFD Sender: No OFD packet to send [12:32:19]accept exits with 9 [12:32:19]New connection [12:32:19]New thread 3067256164 created [12:32:19]Thread 3067399524 joined [12:32:19]Waiting for new connection... [12:32:19] Sock 9.Parse request [12:32:19]Sock 9.Check first char [12:32:19]Sock 9.First char is OK [12:32:19]request: POST /json_proto HTTP/1.0 [12:32:19]Method: POST [12:32:19]URL: /json_proto [12:32:19]Method is POST - this is cgi request [12:32:19]url: /json_proto [12:32:19]query_string will be loaded in cgi processing [12:32:19]execute_cgi json_proto POST (null) [12:32:19]execute_cgi path=json_proto method=POST [12:32:19]POST find Content-Length [12:32:19]Host: 172.17.57.71:8080 [12:32:19]Content-Length: 787 [12:32:19]Content-Type: application/json [12:32:19] [12:32:19]POST finish read [12:32:19]Found Content-Length = 787 [12:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92254, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127187", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "92254" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]execute_script... [12:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92254, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127187", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "92254" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]POST & json_proto [12:32:19]process_json_proto [12:32:19]json parsed OK: [12:32:19]protocol is kg_v1.0 [12:32:19]action value=close_receipt [12:32:19]process_action close_receipt [12:32:19]cmd_close_receipt [12:32:19]MH_GetDate [12:32:19]Write to MH i2c: F0 00 00 CD 67 23 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 CD 67 00 DE 30 E4 66 33 3A A4 66 FB [12:32:19]GetLastDocTimeStamp 1726230741 [12:32:19]current date 1726230750 [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 CE 67 80 13 01 00 00 00 00 00 B2 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 CE 67 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3E [12:32:19]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetShiftState done [12:32:19]FM_GetShiftState done [12:32:19]opened in 1726186930 [12:32:19]opened+sec_in_day 1726273330 [12:32:19]quantity*price = 8000 [12:32:19]sum+1 = 8001 [12:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 64 13.09.2024 12:32 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92254 ФМ осн.: 0000000000874692 ФМ: 0000000000874692 ФД: 92256 ФПД: 228728785812353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123230&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92256&fm=228728785812353&tin=02508201610067®Number=0000000000091423&sum=8000 92254 [12:32:20]StoreToDocumentArchive [12:32:20]shift 505 fd 92256 [12:32:20]save to /storage/0505/doc_00092256 [12:32:20]save last doc name /storage/0505/doc_00092256 to /storage/kkm_last_doc_name [12:32:20]save OK [12:32:20]Clear old archive folders... [12:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=334 [12:32:20]tlvbuf is 0156B8A0 [12:32:20]SAM_PROTO_ClearQueue [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 09 00 00 [12:32:20]Write to MH i2c: E2 08 00 DD 67 80 09 00 00 00 00 00 00 B6 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 DD 67 00 90 00 B8 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_ClearQueue done [12:32:20]KKMCreateOFDPacket [12:32:20]OFDProtocolAddRootSTLVToBuf [12:32:20]FM_MakeSignedData [12:32:20]FM_MakeSignedData [12:32:20]SAM_PROTO_SignData [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 01 02 [12:32:20]Write to MH i2c: E2 08 00 DE 67 80 0D 01 02 00 00 00 00 BE [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 DE 67 00 90 00 B9 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=255 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 02 02 FA 03 00 4E 01 1E 04 01 00 02 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DE 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 [12:32:20]Write to MH i2c: E2 02 01 DF 67 80 0D 02 02 FA 00 03 00 4E 01 1E 04 01 00 02 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DE 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 00 B4 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 DF 67 00 90 00 BA [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=93 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 02 02 58 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 5E 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 68 01 00 35 04 06 00 D0 07 12 07 3B 81 [12:32:20]Write to MH i2c: E2 60 00 E0 67 80 0D 02 02 58 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 5E 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 68 01 00 35 04 06 00 D0 07 12 07 3B 81 00 00 11 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 E0 67 00 90 00 BB [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 03 02 [12:32:20]Write to MH i2c: E2 08 00 E1 67 80 0D 03 02 00 00 00 00 C3 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 E1 67 00 D0 D2 E4 C4 98 56 29 DB 90 00 00 [12:32:20]RAPDU: D0 D2 E4 C4 98 56 29 DB 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_SignData done [12:32:20]FM_MakeSignedData done [12:32:20]CreateOFDProtocolMessage [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 11 00 00 [12:32:20]Write to MH i2c: E2 08 00 E2 67 80 11 00 00 00 00 00 00 C3 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:21]Read from MH i2c: E2 17 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 E2 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1A [12:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:21]wFMCommunicate OK [12:32:21]CreateOFDProtocolMessage done [12:32:21]OFDSenderStorePacket 92256 [12:32:21]StoreOFDPacket docnum=92256 [12:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 62 01 00 00 25 81 5A 01 AB C4 5A 03 01 00 03 00 4E 01 1E 04 01 00 02 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DE 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 5E 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 68 01 00 35 04 06 00 D0 07 12 07 3B 81 D0 D2 E4 C4 98 56 29 DB [12:32:21]CheckFolder [12:32:21]dirname=/storage/ofd_packets [12:32:21]CheckFolder done [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00092256 [12:32:21]NVStorageSaveData ofd_packets/00092256 [12:32:21]File name is /storage/ofd_packets/00092256 [12:32:21]Write 384 bytes [12:32:21]NVStorageSaveData done [12:32:21]OFDSenderStorePacket done [12:32:21]KKMCreateOFDPacket done [12:32:21]NVStorageSaveData kkm_last_timestamp [12:32:21]File name is /storage/kkm_last_timestamp [12:32:21]Write 4 bytes [12:32:21]NVStorageSaveData done [12:32:21]ExternCall_PrintAddStr [12:32:21]wPrintStart [12:32:21]Write to MH i2c: 01 00 00 E3 67 4A [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 E3 67 00 00 00 00 00 FF 0F 5F [12:32:21]RasterBufferAndPrint [12:32:21]line Счет N : (3)127187 [12:32:21]line ИНН: 02508201610067 [12:32:21]line Контрольно-Кассовый Чек [12:32:21]line ВОЗВРАТ ПРОДАЖИ [12:32:21]line Товар: 4600338001623 [12:32:21]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:32:21]line 1.000 * 80.00 [12:32:21]line = 80.00 [12:32:21]line НДС 12% НСП 1% [12:32:21]line > о реализуемом товаре [12:32:21]line ИТОГО: 80.00 [12:32:21]line НСП 1% : 0.71 [12:32:21]line НДС 12% : 8.50 [12:32:21]line Наличными: 80.00 [12:32:21]line Безнал.: 0.00 [12:32:21]line Место: АЗС № 5 "Партнер Нефть" [12:32:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:32:21]line СНО: Общий режим [12:32:21]line Чек 64 13.09.2024 12:32 [12:32:21]line Смена: 505 ФФД: 1.0 [12:32:21]line ЗНМ: 03000000022 [12:32:21]line РНМ: 0000000000091423 [12:32:21]line Версия ККМ: 001 [12:32:21]line ФД осн.: 92254 [12:32:21]line ФМ осн.: 0000000000874692 [12:32:21]line ФМ: 0000000000874692 [12:32:21]line ФД: 92256 [12:32:21]line ФПД: 228728785812353 [12:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T123230&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92256&fm=228728785812353&tin=02508201610067®Number=0000000000091423&sum=8000 [12:32:21]line 92254 [12:32:21]written 0, free lines is 4095 [12:32:21]OFD Sender: Processing packet 92256 [packets to send 63, broken 62] [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00092256 [12:32:21]OFD Sender: To server: pG, [12:32:21]CommunicateWithHost lk.salyk.kg:30040 [12:32:21]ConnectInit lk.salyk.kg [12:32:21]Connected sock=10 [12:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 62 01 00 00 25 81 5A 01 AB C4 5A 03 01 00 03 00 4E 01 1E 04 01 00 02 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DE 30 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 5E 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 68 01 00 35 04 06 00 D0 07 12 07 3B 81 D0 D2 E4 C4 98 56 29 DB [12:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A7 80 47 00 17 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 68 01 00 F4 03 04 00 5C D9 E3 66 B6 04 01 00 00 EC 5E 0B 85 FC 0E 93 29 [12:32:21]CommunicateWithHost err = 0 [12:32:21]CheckOFDResponse [12:32:21]1017 (14) - 77093643461234 [12:32:21]1041 (16) - 0000000000874692 [12:32:21]1040 (4) - 92256 [12:32:21]1012 (4) - 13.09.2024 06:19 [12:32:21]1206 (1) - 0 [12:32:21]OFD Sender: Remove packet 92256 [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00092256 [12:32:21]NVStorageDeleteData [12:32:21]Write to MH i2c: 01 00 00 0E 68 76 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 0E 68 00 00 00 00 00 05 0D 8F [12:32:21]RasterBufferAndPrint [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]written 0, free lines is 3342 [12:32:21]MH_Cut [12:32:21]Write to MH i2c: D1 01 00 15 68 01 4F [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 15 68 00 4E [12:32:21]Write to MH i2c: 01 00 00 16 68 7E [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]OFD Sender: No OFD packet to send [12:32:22]*** Cut start [12:32:22]*** Purtial cut [12:32:22]*** Stage 1: CUTSNS_PIN = 1 [12:32:24]Read from MH i2c: 01 [12:32:24]MH_I2C_Read... [12:32:24]*** Stop cut motor [12:32:24]*** Cut end [12:32:24]Read from MH i2c: 01 07 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: 01 07 00 16 68 00 00 00 00 00 FF 0F 93 [12:32:24]process_action close_receipt done [12:32:24]requested_data is exist [12:32:24]produce_requested_data [12:32:24]requested_item fm.sn is exist - process it [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 11 00 00 [12:32:24]Write to MH i2c: E2 08 00 17 68 80 11 00 00 00 00 00 00 F9 [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 17 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 17 00 17 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 50 [12:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:24]wFMCommunicate OK [12:32:24]requested_item fd.num is exist - process it [12:32:24]SAM_PROTO_GetFieldsCounters [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 13 00 00 [12:32:24]Write to MH i2c: E2 08 00 18 68 80 13 00 00 00 00 00 00 FC [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 62 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 62 00 18 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 60 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 60 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:24]wFMCommunicate OK [12:32:24]SAM_PROTO_GetFieldsCounters done [12:32:24]requested_item shift.num is exist - process it [12:32:24]requested_item shift.opened is exist - process it [12:32:24]req_shift_opened [12:32:24]FM_GetShiftState [12:32:24]SAM_PROTO_GetShiftState [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 13 01 00 [12:32:24]Write to MH i2c: E2 08 00 19 68 80 13 01 00 00 00 00 00 FE [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 19 68 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8A [12:32:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [12:32:24]wFMCommunicate OK [12:32:24]SAM_PROTO_GetShiftState done [12:32:24]FM_GetShiftState done [12:32:24]req_shift_opened done [12:32:24]requested_item shift.open_date is exist - process it [12:32:24]req_shift_open_date [12:32:24]req_shift_open_date done [12:32:24]produce_requested_data done [12:32:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92256,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [12:32:24]process_action_free close_receipt [12:32:24]json_value_free [12:32:24]json_value_free done [12:32:24]process_json_proto returns [12:32:24]Send response to host [12:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92256,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [12:32:24]free response buf [12:32:24]execute_script done [12:32:24]execute_script returns [12:32:24]free content buf [12:32:24]Sock 9.Close socket [12:32:24]Sock 9.Thread stoped [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 FF FF C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 2F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 FF FF B9 [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 02 00 02 [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 02 00 00 00 00 00 00 FF 0F 17 [00:00:10]Model is 3 [00:00:10]MH firmware is 65535 [00:00:10]MH boot firmware is 65535 [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 03 00 41 00 60 00 FF FF 7D [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 03 00 00 D9 [00:00:10]Write to MH i2c: D5 00 00 04 00 D8 [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 04 00 00 D9 [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 05 00 F4 [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 05 00 00 5B 38 E4 66 33 3A A4 66 51 [13:04:27]Current date/time: 13.09.2024 13:04 [13:04:27]FM_Init [13:04:27]wFMConnect [13:04:27]MH_SAM_On [13:04:27]Write to MH i2c: E0 00 00 06 00 E5 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_init finished! [13:04:27]*** atr: [13:04:27]*** 0F 3B D5 18 FF 81 91 FE [13:04:27]*** 1F C3 80 73 C8 21 10 0A [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]*** 00 00 00 00 00 00 00 00 [13:04:27]Read from MH i2c: E0 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E0 10 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [13:04:27]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:04:27]wFMCommunicate request_size=10 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:04:27]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 [13:04:27]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [13:04:27]RAPDU: 90 00 [13:04:27]wFMCommunicate OK [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 11 00 00 [13:04:27]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 17 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [13:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:27]wFMCommunicate OK [13:04:27]Detected FM SN is 0000000000874692 [13:04:27]Stored FM SN is 0000000000874692 [13:04:27]wFMCommunicate request_size=9 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 16 00 00 04 76 6E 01 00 [13:04:27]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 76 6E 01 00 00 00 75 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:04:27]RAPDU: 90 00 [13:04:27]wFMCommunicate OK [13:04:27]FM PIN OK [13:04:27]wFMCommunicate request_size=8 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 14 04 00 03 02 00 01 [13:04:27]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [13:04:27]RAPDU: 90 00 [13:04:27]wFMCommunicate OK [13:04:27]wFMCommunicate request_size=13 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:04:27]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:04:27]RAPDU: 90 00 [13:04:27]wFMCommunicate OK [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 11 00 00 [13:04:27]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 17 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [13:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:04:27]wFMCommunicate OK [13:04:27]DocumentArchiveInit [13:04:27]Start Httpd... [13:04:27]Httpd thread 3067415908 created [13:04:27]Write to MH i2c: 01 00 00 0D 00 0D [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 07 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [13:04:27]MH Int Process started [13:04:27]Allocated Socket 8 [13:04:27]Bind OK [13:04:27]Listen OK [13:04:27]httpd running on port 8080 [13:04:27]Waiting for new connection... [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15: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:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:33]accept exits with 9 [13:25:33]New connection [13:25:33]New thread 3067129188 created [13:25:33]Waiting for new connection... [13:25:33] Sock 9.Parse request [13:25:33]Sock 9.Check first char [13:25:33]Sock 9.First char is OK [13:25:33]request: POST /json_proto HTTP/1.0 [13:25:33]Method: POST [13:25:33]URL: /json_proto [13:25:33]Method is POST - this is cgi request [13:25:33]url: /json_proto [13:25:33]query_string will be loaded in cgi processing [13:25:33]execute_cgi json_proto POST (null) [13:25:33]execute_cgi path=json_proto method=POST [13:25:33]POST find Content-Length [13:25:33]Host: 172.17.57.71:8080 [13:25:33]Content-Length: 632 [13:25:33]Content-Type: application/json [13:25:33] [13:25:33]POST finish read [13:25:33]Found Content-Length = 632 [13:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127189", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:33]execute_script... [13:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127189", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:33]POST & json_proto [13:25:33]process_json_proto [13:25:33]json parsed OK: [13:25:33]protocol is kg_v1.0 [13:25:33]action value=close_receipt [13:25:33]process_action close_receipt [13:25:33]cmd_close_receipt [13:25:33]MH_GetDate [13:25:33]Write to MH i2c: F0 00 00 0E 00 FD [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: F0 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: F0 09 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: F0 09 00 0E 00 00 4E 3D E4 66 33 3A A4 66 52 [13:25:33]GetLastDocTimeStamp 1726230750 [13:25:33]current date 1726233934 [13:25:33]FM_GetShiftState [13:25:33]SAM_PROTO_GetShiftState [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 13 01 00 [13:25:33]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 18 [13:25:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_GetShiftState done [13:25:33]FM_GetShiftState done [13:25:33]opened in 1726186930 [13:25:33]opened+sec_in_day 1726273330 [13:25:33]quantity*price = 16000 [13:25:33]sum+1 = 16001 [13:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 65 13.09.2024 13:25 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92257 ФПД: 85428575632553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T132534&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92257&fm=85428575632553&tin=02508201610067®Number=0000000000091423&sum=16000 0 [13:25:35]StoreToDocumentArchive [13:25:35]shift 505 fd 92257 [13:25:35]save to /storage/0505/doc_00092257 [13:25:35]save last doc name /storage/0505/doc_00092257 to /storage/kkm_last_doc_name [13:25:35]save OK [13:25:35]Clear old archive folders... [13:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:25:35]tlvbuf is 010262A0 [13:25:35]SAM_PROTO_ClearQueue [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 09 00 00 [13:25:35]Write to MH i2c: E2 08 00 1C 00 80 09 00 00 00 00 00 00 8E [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 1C 00 00 90 00 90 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]SAM_PROTO_ClearQueue done [13:25:35]KKMCreateOFDPacket [13:25:35]OFDProtocolAddRootSTLVToBuf [13:25:35]FM_MakeSignedData [13:25:35]FM_MakeSignedData [13:25:35]SAM_PROTO_SignData [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 01 02 [13:25:35]Write to MH i2c: E2 08 00 1D 00 80 0D 01 02 00 00 00 00 96 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 1D 00 00 90 00 91 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=255 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 41 00 00 00 F4 03 04 00 4E 3D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [13:25:35]Write to MH i2c: E2 02 01 1E 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 41 00 00 00 F4 03 04 00 4E 3D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 C6 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=35 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 68 01 00 35 04 06 00 4D B2 63 E7 7C A9 [13:25:35]Write to MH i2c: E2 26 00 1F 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 68 01 00 35 04 06 00 4D B2 63 E7 7C A9 00 00 C8 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 03 02 [13:25:35]Write to MH i2c: E2 08 00 20 00 80 0D 03 02 00 00 00 00 9B [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 0B 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 0B 00 20 00 00 02 98 CB 1A 80 F4 9E 98 90 00 C5 [13:25:35]RAPDU: 02 98 CB 1A 80 F4 9E 98 90 00 [13:25:35]wFMCommunicate OK [13:25:35]SAM_PROTO_SignData done [13:25:35]FM_MakeSignedData done [13:25:35]CreateOFDProtocolMessage [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 11 00 00 [13:25:35]Write to MH i2c: E2 08 00 21 00 80 11 00 00 00 00 00 00 9B [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 17 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 17 00 21 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F2 [13:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:35]wFMCommunicate OK [13:25:35]CreateOFDProtocolMessage done [13:25:35]OFDSenderStorePacket 92257 [13:25:35]StoreOFDPacket docnum=92257 [13:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 9E C4 20 01 B3 D0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 41 00 00 00 F4 03 04 00 4E 3D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 68 01 00 35 04 06 00 4D B2 63 E7 7C A9 02 98 CB 1A 80 F4 9E 98 [13:25:35]CheckFolder [13:25:35]dirname=/storage/ofd_packets [13:25:35]CheckFolder done [13:25:35]ProducePacketName [13:25:35]name=ofd_packets/00092257 [13:25:35]NVStorageSaveData ofd_packets/00092257 [13:25:35]File name is /storage/ofd_packets/00092257 [13:25:35]Write 326 bytes [13:25:35]NVStorageSaveData done [13:25:35]OFDSenderStorePacket done [13:25:35]KKMCreateOFDPacket done [13:25:35]NVStorageSaveData kkm_last_timestamp [13:25:35]File name is /storage/kkm_last_timestamp [13:25:35]Write 4 bytes [13:25:35]NVStorageSaveData done [13:25:35]ExternCall_PrintAddStr [13:25:35]wPrintStart [13:25:35]Write to MH i2c: 01 00 00 22 00 22 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 07 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 07 00 22 00 00 00 00 00 00 FF 0F 37 [13:25:35]RasterBufferAndPrint [13:25:35]line Счет N : (3)127189 [13:25:35]line ИНН: 02508201610067 [13:25:35]line Контрольно-Кассовый Чек [13:25:35]line ПРОДАЖА [13:25:35]line Товар: 4780022460452 [13:25:35]line Антифриз Yumiko gold 1кг [13:25:35]line 1.000 * 160.00 [13:25:35]line = 160.00 [13:25:35]line НДС 12% НСП 1% [13:25:35]line > о реализуемом товаре [13:25:35]line ИТОГО: 160.00 [13:25:35]line НСП 1% : 1.42 [13:25:35]line НДС 12% : 16.99 [13:25:35]line Наличными: 160.00 [13:25:35]line Безнал.: 0.00 [13:25:35]line Место: АЗС № 5 "Партнер Нефть" [13:25:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:25:35]line СНО: Общий режим [13:25:35]line Чек 65 13.09.2024 13:25 [13:25:35]line Смена: 505 ФФД: 1.0 [13:25:35]line ЗНМ: 03000000022 [13:25:35]line РНМ: 0000000000091423 [13:25:35]line Версия ККМ: 001 [13:25:35]line ФМ: 0000000000874692 [13:25:35]line ФД: 92257 [13:25:35]line ФПД: 85428575632553 [13:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T132534&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92257&fm=85428575632553&tin=02508201610067®Number=0000000000091423&sum=16000 [13:25:35]OFD Sender: Processing packet 92257 [packets to send 63, broken 62] [13:25:35]ProducePacketName [13:25:35]name=ofd_packets/00092257 [13:25:35]OFD Sender: To server: pG, [13:25:35]CommunicateWithHost lk.salyk.kg:30040 [13:25:35]ConnectInit lk.salyk.kg [13:25:35]line 0 [13:25:35]written 0, free lines is 4095 [13:25:35]Connected sock=10 [13:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 9E C4 20 01 B3 D0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 41 00 00 00 F4 03 04 00 4E 3D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 68 01 00 35 04 06 00 4D B2 63 E7 7C A9 02 98 CB 1A 80 F4 9E 98 [13:25:36]Write to MH i2c: 01 00 00 4A 00 4A [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 07 00 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 07 00 4A 00 00 00 00 00 00 30 0D 8E [13:25:36]RasterBufferAndPrint [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]written 0, free lines is 3382 [13:25:36]MH_Cut [13:25:36]Write to MH i2c: D1 01 00 51 00 01 23 [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 01 00 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 01 00 51 00 00 22 [13:25:36]Write to MH i2c: 01 00 00 52 00 52 [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 32 A2 47 00 8C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 68 01 00 F4 03 04 00 CD E5 E3 66 B6 04 01 00 00 A3 0B C8 3F 94 54 32 50 [13:25:36]CommunicateWithHost err = 0 [13:25:36]CheckOFDResponse [13:25:36]1017 (14) - 77093643461234 [13:25:36]1041 (16) - 0000000000874692 [13:25:36]1040 (4) - 92257 [13:25:36]1012 (4) - 13.09.2024 07:12 [13:25:36]1206 (1) - 0 [13:25:36]OFD Sender: Remove packet 92257 [13:25:36]ProducePacketName [13:25:36]name=ofd_packets/00092257 [13:25:36]NVStorageDeleteData [13:25:36]*** Cut start [13:25:36]*** Purtial cut [13:25:36]*** Stage 1: CUTSNS_PIN = 1 [13:25:36]OFD Sender: No OFD packet to send [13:25:38]Read from MH i2c: 01 [13:25:38]MH_I2C_Read... [13:25:38]*** Stop cut motor [13:25:38]*** Cut end [13:25:38]Read from MH i2c: 01 07 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: 01 07 00 52 00 00 00 00 00 00 FF 0F 67 [13:25:38]process_action close_receipt done [13:25:38]requested_data is exist [13:25:38]produce_requested_data [13:25:38]requested_item fm.sn is exist - process it [13:25:38]wFMCommunicate request_size=4 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 11 00 00 [13:25:38]Write to MH i2c: E2 08 00 53 00 80 11 00 00 00 00 00 00 CD [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:38]Read from MH i2c: E2 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 17 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 17 00 53 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 24 [13:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:38]wFMCommunicate OK [13:25:38]requested_item fd.num is exist - process it [13:25:38]SAM_PROTO_GetFieldsCounters [13:25:38]wFMCommunicate request_size=4 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 13 00 00 [13:25:38]Write to MH i2c: E2 08 00 54 00 80 13 00 00 00 00 00 00 D0 [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:38]Read from MH i2c: E2 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 62 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 62 00 54 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 61 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [13:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 61 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:38]wFMCommunicate OK [13:25:38]SAM_PROTO_GetFieldsCounters done [13:25:38]requested_item shift.num is exist - process it [13:25:38]requested_item shift.opened is exist - process it [13:25:38]req_shift_opened [13:25:38]FM_GetShiftState [13:25:38]SAM_PROTO_GetShiftState [13:25:38]wFMCommunicate request_size=4 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 13 01 00 [13:25:38]Write to MH i2c: E2 08 00 55 00 80 13 01 00 00 00 00 00 D2 [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:38]Read from MH i2c: E2 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 0E 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 0E 00 55 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 5E [13:25:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [13:25:38]wFMCommunicate OK [13:25:38]SAM_PROTO_GetShiftState done [13:25:38]FM_GetShiftState done [13:25:38]req_shift_opened done [13:25:38]requested_item shift.open_date is exist - process it [13:25:38]req_shift_open_date [13:25:38]req_shift_open_date done [13:25:38]produce_requested_data done [13:25:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92257,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [13:25:38]process_action_free close_receipt [13:25:38]json_value_free [13:25:38]json_value_free done [13:25:38]process_json_proto returns [13:25:38]Send response to host [13:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92257,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [13:25:38]free response buf [13:25:38]execute_script done [13:25:38]execute_script returns [13:25:38]free content buf [13:25:38]Sock 9.Close socket [13:25:38]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31: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:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:12]accept exits with 7 [13:54:12]New connection [13:54:12]New thread 3066985828 created [13:54:12]Thread 3067129188 joined [13:54:12]Waiting for new connection... [13:54:12] Sock 7.Parse request [13:54:12]Sock 7.Check first char [13:54:12]Sock 7.First char is OK [13:54:12]request: POST /json_proto HTTP/1.0 [13:54:12]Method: POST [13:54:12]URL: /json_proto [13:54:12]Method is POST - this is cgi request [13:54:12]url: /json_proto [13:54:12]query_string will be loaded in cgi processing [13:54:12]execute_cgi json_proto POST (null) [13:54:12]execute_cgi path=json_proto method=POST [13:54:12]POST find Content-Length [13:54:12]Host: 172.17.57.71:8080 [13:54:12]Content-Length: 666 [13:54:12]Content-Type: application/json [13:54:12] [13:54:12]POST finish read [13:54:12]Found Content-Length = 666 [13:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127190", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:12]execute_script... [13:54: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 : (3)127190", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:12]POST & json_proto [13:54:12]process_json_proto [13:54:12]json parsed OK: [13:54:12]protocol is kg_v1.0 [13:54:12]action value=close_receipt [13:54:12]process_action close_receipt [13:54:12]cmd_close_receipt [13:54:12]MH_GetDate [13:54:12]Write to MH i2c: F0 00 00 56 00 45 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: F0 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: F0 09 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: F0 09 00 56 00 00 05 44 E4 66 33 3A A4 66 58 [13:54:12]GetLastDocTimeStamp 1726233934 [13:54:12]current date 1726235653 [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 57 00 80 13 01 00 00 00 00 00 D4 [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 57 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 60 [13:54:12]RAPDU: 09 00 01 B2 85 E3 66 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]opened in 1726186930 [13:54:12]opened+sec_in_day 1726273330 [13:54:12]quantity*price = 9000 [13:54:12]sum+1 = 9001 [13:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 66 13.09.2024 13:54 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92258 ФПД: 223708376007077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T135413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92258&fm=223708376007077&tin=02508201610067®Number=0000000000091423&sum=9000 0 [13:54:13]StoreToDocumentArchive [13:54:13]shift 505 fd 92258 [13:54:13]save to /storage/0505/doc_00092258 [13:54:13]save last doc name /storage/0505/doc_00092258 to /storage/kkm_last_doc_name [13:54:13]save OK [13:54:13]Clear old archive folders... [13:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:54:13]tlvbuf is 010291E0 [13:54:13]SAM_PROTO_ClearQueue [13:54:13]wFMCommunicate request_size=4 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 09 00 00 [13:54:13]Write to MH i2c: E2 08 00 64 00 80 09 00 00 00 00 00 00 D6 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [13:54:13]RAPDU: 90 00 [13:54:13]wFMCommunicate OK [13:54:13]SAM_PROTO_ClearQueue done [13:54:13]KKMCreateOFDPacket [13:54:13]OFDProtocolAddRootSTLVToBuf [13:54:13]FM_MakeSignedData [13:54:13]FM_MakeSignedData [13:54:13]SAM_PROTO_SignData [13:54:13]wFMCommunicate request_size=4 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 0D 01 02 [13:54:13]Write to MH i2c: E2 08 00 65 00 80 0D 01 02 00 00 00 00 DE [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 65 00 00 90 00 D9 [13:54:13]RAPDU: 90 00 [13:54:13]wFMCommunicate OK [13:54:13]wFMCommunicate request_size=255 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 05 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:54:13]Write to MH i2c: E2 02 01 66 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 05 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 85 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:14]Read from MH i2c: E2 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 03 00 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [13:54:14]RAPDU: 90 00 [13:54:14]wFMCommunicate OK [13:54:14]wFMCommunicate request_size=52 [13:54:14]MH_SAM_APDU [13:54:14]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 68 01 00 35 04 06 00 CB 76 2A 49 01 A5 [13:54:14]Write to MH i2c: E2 37 00 67 00 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 68 01 00 35 04 06 00 CB 76 2A 49 01 A5 00 00 C7 [13:54:14]Write i2c OK [13:54:14]MH_I2C_Read... [13:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:14]Read from MH i2c: E2 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 03 00 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [13:54:14]RAPDU: 90 00 [13:54:14]wFMCommunicate OK [13:54:14]wFMCommunicate request_size=4 [13:54:14]MH_SAM_APDU [13:54:14]CAPDU: 80 0D 03 02 [13:54:14]Write to MH i2c: E2 08 00 68 00 80 0D 03 02 00 00 00 00 E3 [13:54:14]Write i2c OK [13:54:14]MH_I2C_Read... [13:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:14]Read from MH i2c: E2 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 0B 00 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 0B 00 68 00 00 53 F5 3D 13 CE 9E E1 B5 90 00 7E [13:54:14]RAPDU: 53 F5 3D 13 CE 9E E1 B5 90 00 [13:54:14]wFMCommunicate OK [13:54:14]SAM_PROTO_SignData done [13:54:14]FM_MakeSignedData done [13:54:14]CreateOFDProtocolMessage [13:54:14]wFMCommunicate request_size=4 [13:54:14]MH_SAM_APDU [13:54:14]CAPDU: 80 11 00 00 [13:54:14]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [13:54:14]Write i2c OK [13:54:14]MH_I2C_Read... [13:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:14]Read from MH i2c: E2 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 17 00 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3A [13:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:54:14]wFMCommunicate OK [13:54:14]CreateOFDProtocolMessage done [13:54:14]OFDSenderStorePacket 92258 [13:54:14]StoreOFDPacket docnum=92258 [13:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 7E 11 31 01 9B A3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 05 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 68 01 00 35 04 06 00 CB 76 2A 49 01 A5 53 F5 3D 13 CE 9E E1 B5 [13:54:14]CheckFolder [13:54:14]dirname=/storage/ofd_packets [13:54:14]CheckFolder done [13:54:14]ProducePacketName [13:54:14]name=ofd_packets/00092258 [13:54:14]NVStorageSaveData ofd_packets/00092258 [13:54:14]File name is /storage/ofd_packets/00092258 [13:54:14]Write 343 bytes [13:54:14]NVStorageSaveData done [13:54:14]OFDSenderStorePacket done [13:54:14]KKMCreateOFDPacket done [13:54:14]NVStorageSaveData kkm_last_timestamp [13:54:14]File name is /storage/kkm_last_timestamp [13:54:14]Write 4 bytes [13:54:14]NVStorageSaveData done [13:54:14]ExternCall_PrintAddStr [13:54:14]wPrintStart [13:54:14]Write to MH i2c: 01 00 00 6A 00 6A [13:54:14]Write i2c OK [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: 01 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: 01 07 00 [13:54:14]MH_I2C_Read... [13:54:14]Read from MH i2c: 01 07 00 6A 00 00 00 00 00 00 FF 0F 7F [13:54:14]RasterBufferAndPrint [13:54:14]line Счет N : (3)127190 [13:54:14]line ИНН: 02508201610067 [13:54:14]line Контрольно-Кассовый Чек [13:54:14]line ПРОДАЖА [13:54:14]line Товар: 4870022003305 [13:54:14]line Напиток Gorilla эн нат ж/б 0,5/0,45л [13:54:14]line 1.000 * 90.00 [13:54:14]line = 90.00 [13:54:14]line НДС 12% НСП 1% [13:54:14]line > о реализуемом товаре [13:54:14]line ИТОГО: 90.00 [13:54:14]line НСП 1% : 0.80 [13:54:14]line НДС 12% : 9.56 [13:54:14]line Наличными: 90.00 [13:54:14]line Безнал.: 0.00 [13:54:14]line Место: АЗС № 5 "Партнер Нефть" [13:54:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:54:14]line СНО: Общий режим [13:54:14]line Чек 66 13.09.2024 13:54 [13:54:14]line Смена: 505 ФФД: 1.0 [13:54:14]line ЗНМ: 03000000022 [13:54:14]line РНМ: 0000000000091423 [13:54:14]line Версия ККМ: 001 [13:54:14]line ФМ: 0000000000874692 [13:54:14]line ФД: 92258 [13:54:14]line ФПД: 223708376007077 [13:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T135413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92258&fm=223708376007077&tin=02508201610067®Number=0000000000091423&sum=9000 [13:54:14]OFD Sender: Processing packet 92258 [packets to send 63, broken 62] [13:54:14]ProducePacketName [13:54:14]name=ofd_packets/00092258 [13:54:14]OFD Sender: To server: pG, [13:54:14]CommunicateWithHost lk.salyk.kg:30040 [13:54:14]ConnectInit lk.salyk.kg [13:54:14]line 0 [13:54:14]written 0, free lines is 4095 [13:54:14]Connected sock=10 [13:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 7E 11 31 01 9B A3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 05 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 68 01 00 35 04 06 00 CB 76 2A 49 01 A5 53 F5 3D 13 CE 9E E1 B5 [13:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F7 26 47 00 32 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 68 01 00 F4 03 04 00 84 EC E3 66 B6 04 01 00 00 62 A4 B1 27 E7 4E AF 32 [13:54:15]CommunicateWithHost err = 0 [13:54:15]CheckOFDResponse [13:54:15]1017 (14) - 77093643461234 [13:54:15]1041 (16) - 0000000000874692 [13:54:15]1040 (4) - 92258 [13:54:15]1012 (4) - 13.09.2024 07:40 [13:54:15]1206 (1) - 0 [13:54:15]OFD Sender: Remove packet 92258 [13:54:15]ProducePacketName [13:54:15]name=ofd_packets/00092258 [13:54:15]NVStorageDeleteData [13:54:15]Write to MH i2c: 01 00 00 93 00 93 [13:54:15]Write i2c OK [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: 01 [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: 01 07 00 [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: 01 07 00 93 00 00 00 00 00 00 09 0D B0 [13:54:15]RasterBufferAndPrint [13:54:15]line [13:54:15]line [13:54:15]line [13:54:15]line [13:54:15]line [13:54:15]written 0, free lines is 3344 [13:54:15]MH_Cut [13:54:15]Write to MH i2c: D1 01 00 9A 00 01 6C [13:54:15]Write i2c OK [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: D1 [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: D1 01 00 [13:54:15]MH_I2C_Read... [13:54:15]Read from MH i2c: D1 01 00 9A 00 00 6B [13:54:15]Write to MH i2c: 01 00 00 9B 00 9B [13:54:15]Write i2c OK [13:54:15]MH_I2C_Read... [13:54:15]OFD Sender: No OFD packet to send [13:54:15]*** Cut start [13:54:15]*** Purtial cut [13:54:15]*** Stage 1: CUTSNS_PIN = 1 [13:54:17]Read from MH i2c: 01 [13:54:17]MH_I2C_Read... [13:54:17]*** Stop cut motor [13:54:17]*** Cut end [13:54:17]Read from MH i2c: 01 07 00 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 FF 0F B0 [13:54:17]process_action close_receipt done [13:54:17]requested_data is exist [13:54:17]produce_requested_data [13:54:17]requested_item fm.sn is exist - process it [13:54:17]wFMCommunicate request_size=4 [13:54:17]MH_SAM_APDU [13:54:17]CAPDU: 80 11 00 00 [13:54:17]Write to MH i2c: E2 08 00 9C 00 80 11 00 00 00 00 00 00 16 [13:54:17]Write i2c OK [13:54:17]MH_I2C_Read... [13:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:17]Read from MH i2c: E2 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 17 00 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 17 00 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [13:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:54:17]wFMCommunicate OK [13:54:17]requested_item fd.num is exist - process it [13:54:17]SAM_PROTO_GetFieldsCounters [13:54:17]wFMCommunicate request_size=4 [13:54:17]MH_SAM_APDU [13:54:17]CAPDU: 80 13 00 00 [13:54:17]Write to MH i2c: E2 08 00 9D 00 80 13 00 00 00 00 00 00 19 [13:54:17]Write i2c OK [13:54:17]MH_I2C_Read... [13:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:18]Read from MH i2c: E2 [13:54:18]MH_I2C_Read... [13:54:18]Read from MH i2c: E2 62 00 [13:54:18]MH_I2C_Read... [13:54:18]Read from MH i2c: E2 62 00 9D 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 62 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 62 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:18]wFMCommunicate OK [13:54:18]SAM_PROTO_GetFieldsCounters done [13:54:18]requested_item shift.num is exist - process it [13:54:18]requested_item shift.opened is exist - process it [13:54:18]req_shift_opened [13:54:18]FM_GetShiftState [13:54:18]SAM_PROTO_GetShiftState [13:54:18]wFMCommunicate request_size=4 [13:54:18]MH_SAM_APDU [13:54:18]CAPDU: 80 13 01 00 [13:54:18]Write to MH i2c: E2 08 00 9E 00 80 13 01 00 00 00 00 00 1B [13:54:18]Write i2c OK [13:54:18]MH_I2C_Read... [13:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:18]Read from MH i2c: E2 [13:54:18]MH_I2C_Read... [13:54:18]Read from MH i2c: E2 0E 00 [13:54:18]MH_I2C_Read... [13:54:18]Read from MH i2c: E2 0E 00 9E 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A7 [13:54:18]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [13:54:18]wFMCommunicate OK [13:54:18]SAM_PROTO_GetShiftState done [13:54:18]FM_GetShiftState done [13:54:18]req_shift_opened done [13:54:18]requested_item shift.open_date is exist - process it [13:54:18]req_shift_open_date [13:54:18]req_shift_open_date done [13:54:18]produce_requested_data done [13:54:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92258,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [13:54:18]process_action_free close_receipt [13:54:18]json_value_free [13:54:18]json_value_free done [13:54:18]process_json_proto returns [13:54:18]Send response to host [13:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92258,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [13:54:18]free response buf [13:54:18]execute_script done [13:54:18]execute_script returns [13:54:18]free content buf [13:54:18]Sock 7.Close socket [13:54:18]Sock 7.Thread stoped [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:06]accept exits with 9 [13:56:06]New connection [13:56:06]New thread 3067129188 created [13:56:06]Thread 3066985828 joined [13:56:06]Waiting for new connection... [13:56:06] Sock 9.Parse request [13:56:06]Sock 9.Check first char [13:56:06]Sock 9.First char is OK [13:56:06]request: POST /json_proto HTTP/1.0 [13:56:06]Method: POST [13:56:06]URL: /json_proto [13:56:06]Method is POST - this is cgi request [13:56:06]url: /json_proto [13:56:06]query_string will be loaded in cgi processing [13:56:06]execute_cgi json_proto POST (null) [13:56:06]execute_cgi path=json_proto method=POST [13:56:06]POST find Content-Length [13:56:06]Host: 172.17.57.71:8080 [13:56:06]Content-Length: 663 [13:56:06]Content-Type: application/json [13:56:06] [13:56:06]POST finish read [13:56:06]Found Content-Length = 663 [13:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127191", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]execute_script... [13:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127191", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]POST & json_proto [13:56:06]process_json_proto [13:56:06]json parsed OK: [13:56:06]protocol is kg_v1.0 [13:56:06]action value=close_receipt [13:56:06]process_action close_receipt [13:56:06]cmd_close_receipt [13:56:06]MH_GetDate [13:56:06]Write to MH i2c: F0 00 00 9F 00 8E [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 9F 00 00 77 44 E4 66 33 3A A4 66 13 [13:56:06]GetLastDocTimeStamp 1726235653 [13:56:06]current date 1726235767 [13:56:06]FM_GetShiftState [13:56:06]SAM_PROTO_GetShiftState [13:56:06]wFMCommunicate request_size=4 [13:56:06]MH_SAM_APDU [13:56:06]CAPDU: 80 13 01 00 [13:56:06]Write to MH i2c: E2 08 00 A0 00 80 13 01 00 00 00 00 00 1D [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:06]Read from MH i2c: E2 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 A0 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A9 [13:56:06]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [13:56:06]wFMCommunicate OK [13:56:06]SAM_PROTO_GetShiftState done [13:56:06]FM_GetShiftState done [13:56:06]opened in 1726186930 [13:56:06]opened+sec_in_day 1726273330 [13:56:06]quantity*price = 17000 [13:56:06]sum+1 = 17001 [13:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 67 13.09.2024 13:56 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92259 ФПД: 206955562250283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T135607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92259&fm=206955562250283&tin=02508201610067®Number=0000000000091423&sum=17000 0 [13:56:07]StoreToDocumentArchive [13:56:07]shift 505 fd 92259 [13:56:07]save to /storage/0505/doc_00092259 [13:56:07]save last doc name /storage/0505/doc_00092259 to /storage/kkm_last_doc_name [13:56:07]save OK [13:56:07]Clear old archive folders... [13:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:56:07]tlvbuf is 0102D820 [13:56:07]SAM_PROTO_ClearQueue [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 09 00 00 [13:56:07]Write to MH i2c: E2 08 00 AD 00 80 09 00 00 00 00 00 00 1F [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_ClearQueue done [13:56:07]KKMCreateOFDPacket [13:56:07]OFDProtocolAddRootSTLVToBuf [13:56:07]FM_MakeSignedData [13:56:07]FM_MakeSignedData [13:56:07]SAM_PROTO_SignData [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 01 02 [13:56:07]Write to MH i2c: E2 08 00 AE 00 80 0D 01 02 00 00 00 00 27 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [13:56:07]RAPDU: 90 00 [13:56:07]wFMCommunicate OK [13:56:07]wFMCommunicate request_size=255 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 77 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [13:56:08]Write to MH i2c: E2 02 01 AF 00 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 77 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 EB [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=46 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 68 01 00 35 04 06 00 BC 39 98 C5 B0 2B [13:56:08]Write to MH i2c: E2 31 00 B0 00 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 68 01 00 35 04 06 00 BC 39 98 C5 B0 2B 00 00 AE [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 03 02 [13:56:08]Write to MH i2c: E2 08 00 B1 00 80 0D 03 02 00 00 00 00 2C [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 B1 00 00 62 88 33 62 35 4F 1A DE 90 00 28 [13:56:08]RAPDU: 62 88 33 62 35 4F 1A DE 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_SignData done [13:56:08]FM_MakeSignedData done [13:56:08]CreateOFDProtocolMessage [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 11 00 00 [13:56:08]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 83 [13:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:56:08]wFMCommunicate OK [13:56:08]CreateOFDProtocolMessage done [13:56:08]OFDSenderStorePacket 92259 [13:56:08]StoreOFDPacket docnum=92259 [13:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 78 60 2B 01 A5 E2 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 77 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 68 01 00 35 04 06 00 BC 39 98 C5 B0 2B 62 88 33 62 35 4F 1A DE [13:56:08]CheckFolder [13:56:08]dirname=/storage/ofd_packets [13:56:08]CheckFolder done [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00092259 [13:56:08]NVStorageSaveData ofd_packets/00092259 [13:56:08]File name is /storage/ofd_packets/00092259 [13:56:08]Write 337 bytes [13:56:08]NVStorageSaveData done [13:56:08]OFDSenderStorePacket done [13:56:08]KKMCreateOFDPacket done [13:56:08]NVStorageSaveData kkm_last_timestamp [13:56:08]File name is /storage/kkm_last_timestamp [13:56:08]Write 4 bytes [13:56:08]NVStorageSaveData done [13:56:08]ExternCall_PrintAddStr [13:56:08]wPrintStart [13:56:08]Write to MH i2c: 01 00 00 B3 00 B3 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 B3 00 00 00 00 00 00 FF 0F C8 [13:56:08]RasterBufferAndPrint [13:56:08]line Счет N : (3)127191 [13:56:08]line ИНН: 02508201610067 [13:56:08]line Контрольно-Кассовый Чек [13:56:08]line ПРОДАЖА [13:56:08]line Товар: 5449000176448 [13:56:08]line Сок Piko Pulpy апельсин ПЭТ 1л [13:56:08]line 1.000 * 170.00 [13:56:08]line = 170.00 [13:56:08]line НДС 12% НСП 1% [13:56:08]line > о реализуемом товаре [13:56:08]line ИТОГО: 170.00 [13:56:08]line НСП 1% : 1.50 [13:56:08]line НДС 12% : 18.05 [13:56:08]line Наличными: 170.00 [13:56:08]line Безнал.: 0.00 [13:56:08]line Место: АЗС № 5 "Партнер Нефть" [13:56:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:56:08]line СНО: Общий режим [13:56:08]line Чек 67 13.09.2024 13:56 [13:56:08]line Смена: 505 ФФД: 1.0 [13:56:08]line ЗНМ: 03000000022 [13:56:08]line РНМ: 0000000000091423 [13:56:08]line Версия ККМ: 001 [13:56:08]line ФМ: 0000000000874692 [13:56:08]line ФД: 92259 [13:56:08]line ФПД: 206955562250283 [13:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T135607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92259&fm=206955562250283&tin=02508201610067®Number=0000000000091423&sum=17000 [13:56:08]line 0 [13:56:08]OFD Sender: Processing packet 92259 [packets to send 63, broken 62] [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00092259 [13:56:08]OFD Sender: To server: pG, [13:56:08]CommunicateWithHost lk.salyk.kg:30040 [13:56:08]ConnectInit lk.salyk.kg [13:56:08]written 0, free lines is 4095 [13:56:08]Connected sock=10 [13:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 78 60 2B 01 A5 E2 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 77 44 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 68 01 00 35 04 06 00 BC 39 98 C5 B0 2B 62 88 33 62 35 4F 1A DE [13:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DE 42 47 00 14 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 68 01 00 F4 03 04 00 F6 EC E3 66 B6 04 01 00 00 0A C7 C1 CE 1C 21 44 DB [13:56:09]CommunicateWithHost err = 0 [13:56:09]CheckOFDResponse [13:56:09]1017 (14) - 77093643461234 [13:56:09]1041 (16) - 0000000000874692 [13:56:09]1040 (4) - 92259 [13:56:09]1012 (4) - 13.09.2024 07:42 [13:56:09]1206 (1) - 0 [13:56:09]OFD Sender: Remove packet 92259 [13:56:09]ProducePacketName [13:56:09]name=ofd_packets/00092259 [13:56:09]NVStorageDeleteData [13:56:09]Write to MH i2c: 01 00 00 DC 00 DC [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 06 0D F6 [13:56:09]RasterBufferAndPrint [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]written 0, free lines is 3339 [13:56:09]MH_Cut [13:56:09]Write to MH i2c: D1 01 00 E3 00 01 B5 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 E3 00 00 B4 [13:56:09]Write to MH i2c: 01 00 00 E4 00 E4 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]OFD Sender: No OFD packet to send [13:56:09]*** Cut start [13:56:09]*** Purtial cut [13:56:09]*** Stage 1: CUTSNS_PIN = 1 [13:56:11]Read from MH i2c: 01 [13:56:11]MH_I2C_Read... [13:56:11]*** Stop cut motor [13:56:11]*** Cut end [13:56:11]Read from MH i2c: 01 07 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [13:56:11]process_action close_receipt done [13:56:11]requested_data is exist [13:56:11]produce_requested_data [13:56:11]requested_item fm.sn is exist - process it [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 11 00 00 [13:56:11]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:11]Read from MH i2c: E2 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 17 00 [13:56:11]MH_I2C_Read... [13:56:11]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 34 36 39 32 90 00 B6 [13:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:56:11]wFMCommunicate OK [13:56:11]requested_item fd.num is exist - process it [13:56:11]SAM_PROTO_GetFieldsCounters [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 13 00 00 [13:56:11]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:12]Read from MH i2c: E2 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 62 00 [13:56:12]MH_I2C_Read... [13:56: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 63 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [13:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 63 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:12]wFMCommunicate OK [13:56:12]SAM_PROTO_GetFieldsCounters done [13:56:12]requested_item shift.num is exist - process it [13:56:12]requested_item shift.opened is exist - process it [13:56:12]req_shift_opened [13:56:12]FM_GetShiftState [13:56:12]SAM_PROTO_GetShiftState [13:56:12]wFMCommunicate request_size=4 [13:56:12]MH_SAM_APDU [13:56:12]CAPDU: 80 13 01 00 [13:56:12]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:56:12]Write i2c OK [13:56:12]MH_I2C_Read... [13:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:12]Read from MH i2c: E2 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 0E 00 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F0 [13:56:12]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [13:56:12]wFMCommunicate OK [13:56:12]SAM_PROTO_GetShiftState done [13:56:12]FM_GetShiftState done [13:56:12]req_shift_opened done [13:56:12]requested_item shift.open_date is exist - process it [13:56:12]req_shift_open_date [13:56:12]req_shift_open_date done [13:56:12]produce_requested_data done [13:56:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92259,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [13:56:12]process_action_free close_receipt [13:56:12]json_value_free [13:56:12]json_value_free done [13:56:12]process_json_proto returns [13:56:12]Send response to host [13:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92259,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [13:56:12]free response buf [13:56:12]execute_script done [13:56:12]execute_script returns [13:56:12]free content buf [13:56:12]Sock 9.Close socket [13:56:12]Sock 9.Thread stoped [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]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:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:42]accept exits with 7 [14:13:42]New connection [14:13:42]New thread 3066985828 created [14:13:42]Thread 3067129188 joined [14:13:42]Waiting for new connection... [14:13:42] Sock 7.Parse request [14:13:42]Sock 7.Check first char [14:13:42]Sock 7.First char is OK [14:13:42]request: POST /json_proto HTTP/1.0 [14:13:42]Method: POST [14:13:42]URL: /json_proto [14:13:42]Method is POST - this is cgi request [14:13:42]url: /json_proto [14:13:42]query_string will be loaded in cgi processing [14:13:42]execute_cgi json_proto POST (null) [14:13:42]execute_cgi path=json_proto method=POST [14:13:42]POST find Content-Length [14:13:42]Host: 172.17.57.71:8080 [14:13:42]Content-Length: 695 [14:13:42]Content-Type: application/json [14:13:42] [14:13:42]POST finish read [14:13:42]Found Content-Length = 695 [14:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127192", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:42]execute_script... [14:13: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 : (3)127192", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:42]POST & json_proto [14:13:42]process_json_proto [14:13:42]json parsed OK: [14:13:42]protocol is kg_v1.0 [14:13:42]action value=close_receipt [14:13:42]process_action close_receipt [14:13:42]cmd_close_receipt [14:13:42]MH_GetDate [14:13:42]Write to MH i2c: F0 00 00 E8 00 D7 [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 09 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 09 00 E8 00 00 97 48 E4 66 33 3A A4 66 80 [14:13:42]GetLastDocTimeStamp 1726235767 [14:13:42]current date 1726236823 [14:13:42]FM_GetShiftState [14:13:42]SAM_PROTO_GetShiftState [14:13:42]wFMCommunicate request_size=4 [14:13:42]MH_SAM_APDU [14:13:42]CAPDU: 80 13 01 00 [14:13:42]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:42]Read from MH i2c: E2 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F2 [14:13:42]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:13:42]wFMCommunicate OK [14:13:42]SAM_PROTO_GetShiftState done [14:13:42]FM_GetShiftState done [14:13:42]opened in 1726186930 [14:13:42]opened+sec_in_day 1726273330 [14:13:42]quantity*price = 8900 [14:13:42]sum+1 = 8901 [14:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 68 13.09.2024 14:13 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92260 ФПД: 239705374370506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T141343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92260&fm=239705374370506&tin=02508201610067®Number=0000000000091423&sum=8900 0 [14:13:43]StoreToDocumentArchive [14:13:43]shift 505 fd 92260 [14:13:43]save to /storage/0505/doc_00092260 [14:13:43]save last doc name /storage/0505/doc_00092260 to /storage/kkm_last_doc_name [14:13:43]save OK [14:13:43]Clear old archive folders... [14:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:13:43]tlvbuf is 0100D690 [14:13:43]SAM_PROTO_ClearQueue [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 09 00 00 [14:13:43]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_ClearQueue done [14:13:43]KKMCreateOFDPacket [14:13:43]OFDProtocolAddRootSTLVToBuf [14:13:43]FM_MakeSignedData [14:13:43]FM_MakeSignedData [14:13:43]SAM_PROTO_SignData [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 01 02 [14:13:43]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=255 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 48 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:13:43]Write to MH i2c: E2 02 01 F8 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 48 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 13 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=53 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 68 01 00 35 04 06 00 DA 02 C1 B0 AA CA [14:13:44]Write to MH i2c: E2 38 00 F9 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 68 01 00 35 04 06 00 DA 02 C1 B0 AA CA 00 00 F4 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 03 02 [14:13:44]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 FA 00 00 5F 5A AC 60 22 B4 D9 0B 90 00 F5 [14:13:44]RAPDU: 5F 5A AC 60 22 B4 D9 0B 90 00 [14:13:44]wFMCommunicate OK [14:13:44]SAM_PROTO_SignData done [14:13:44]FM_MakeSignedData done [14:13:44]CreateOFDProtocolMessage [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 11 00 00 [14:13:44]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 17 00 [14:13:44]MH_I2C_Read... [14:13:44]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 34 36 39 32 90 00 CC [14:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:13:44]wFMCommunicate OK [14:13:44]CreateOFDProtocolMessage done [14:13:44]OFDSenderStorePacket 92260 [14:13:44]StoreOFDPacket docnum=92260 [14:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 CB A2 32 01 2B 39 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 48 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 68 01 00 35 04 06 00 DA 02 C1 B0 AA CA 5F 5A AC 60 22 B4 D9 0B [14:13:44]CheckFolder [14:13:44]dirname=/storage/ofd_packets [14:13:44]CheckFolder done [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00092260 [14:13:44]NVStorageSaveData ofd_packets/00092260 [14:13:44]File name is /storage/ofd_packets/00092260 [14:13:44]Write 344 bytes [14:13:44]NVStorageSaveData done [14:13:44]OFDSenderStorePacket done [14:13:44]KKMCreateOFDPacket done [14:13:44]NVStorageSaveData kkm_last_timestamp [14:13:44]File name is /storage/kkm_last_timestamp [14:13:44]Write 4 bytes [14:13:44]NVStorageSaveData done [14:13:44]ExternCall_PrintAddStr [14:13:44]wPrintStart [14:13:44]Write to MH i2c: 01 00 00 FC 00 FC [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [14:13:44]RasterBufferAndPrint [14:13:44]line Счет N : (3)127192 [14:13:44]line ИНН: 02508201610067 [14:13:44]line Контрольно-Кассовый Чек [14:13:44]line ПРОДАЖА [14:13:44]line Товар: 5000159381178 [14:13:44]line Шок Батончик Баунти Трио 82,5г [14:13:44]line 1.000 * 89.00 [14:13:44]line = 89.00 [14:13:44]line НДС 12% НСП 1% [14:13:44]line > о реализуемом товаре [14:13:44]line ИТОГО: 89.00 [14:13:44]line НСП 1% : 0.79 [14:13:44]line НДС 12% : 9.45 [14:13:44]line Наличными: 89.00 [14:13:44]line Безнал.: 0.00 [14:13:44]line Место: АЗС № 5 "Партнер Нефть" [14:13:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:13:44]line СНО: Общий режим [14:13:44]line Чек 68 13.09.2024 14:13 [14:13:44]line Смена: 505 ФФД: 1.0 [14:13:44]line ЗНМ: 03000000022 [14:13:44]line РНМ: 0000000000091423 [14:13:44]line Версия ККМ: 001 [14:13:44]line ФМ: 0000000000874692 [14:13:44]line ФД: 92260 [14:13:44]line ФПД: 239705374370506 [14:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T141343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92260&fm=239705374370506&tin=02508201610067®Number=0000000000091423&sum=8900 [14:13:44]line 0 [14:13:44]OFD Sender: Processing packet 92260 [packets to send 63, broken 62] [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00092260 [14:13:44]OFD Sender: To server: pG, [14:13:44]CommunicateWithHost lk.salyk.kg:30040 [14:13:44]ConnectInit lk.salyk.kg [14:13:44]written 0, free lines is 4095 [14:13:44]Connected sock=10 [14:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 CB A2 32 01 2B 39 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 48 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 68 01 00 35 04 06 00 DA 02 C1 B0 AA CA 5F 5A AC 60 22 B4 D9 0B [14:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6B AE 47 00 09 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 34 36 39 32 10 04 04 00 64 68 01 00 F4 03 04 00 15 F1 E3 66 B6 04 01 00 00 F6 41 9D 59 68 DF 6A 42 [14:13:44]CommunicateWithHost err = 0 [14:13:44]CheckOFDResponse [14:13:44]1017 (14) - 77093643461234 [14:13:44]1041 (16) - 0000000000874692 [14:13:44]1040 (4) - 92260 [14:13:44]1012 (4) - 13.09.2024 08:00 [14:13:44]1206 (1) - 0 [14:13:44]OFD Sender: Remove packet 92260 [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00092260 [14:13:44]NVStorageDeleteData [14:13:45]Write to MH i2c: 01 00 00 25 01 26 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 0C 0D 46 [14:13:45]RasterBufferAndPrint [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]written 0, free lines is 3347 [14:13:45]MH_Cut [14:13:45]Write to MH i2c: D1 01 00 2C 01 01 FF [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 2C 01 00 FE [14:13:45]Write to MH i2c: 01 00 00 2D 01 2E [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]OFD Sender: No OFD packet to send [14:13:45]*** Cut start [14:13:45]*** Purtial cut [14:13:45]*** Stage 1: CUTSNS_PIN = 1 [14:13:47]Read from MH i2c: 01 [14:13:47]MH_I2C_Read... [14:13:47]*** Stop cut motor [14:13:47]*** Cut end [14:13:47]Read from MH i2c: 01 07 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [14:13:47]process_action close_receipt done [14:13:47]requested_data is exist [14:13:47]produce_requested_data [14:13:47]requested_item fm.sn is exist - process it [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 11 00 00 [14:13:47]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 17 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 00 [14:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:13:47]wFMCommunicate OK [14:13:47]requested_item fd.num is exist - process it [14:13:47]SAM_PROTO_GetFieldsCounters [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 13 00 00 [14:13:47]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 62 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 64 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [14:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 64 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetFieldsCounters done [14:13:47]requested_item shift.num is exist - process it [14:13:47]requested_item shift.opened is exist - process it [14:13:47]req_shift_opened [14:13:47]FM_GetShiftState [14:13:47]SAM_PROTO_GetShiftState [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 13 01 00 [14:13:47]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3A [14:13:47]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetShiftState done [14:13:47]FM_GetShiftState done [14:13:47]req_shift_opened done [14:13:47]requested_item shift.open_date is exist - process it [14:13:47]req_shift_open_date [14:13:47]req_shift_open_date done [14:13:47]produce_requested_data done [14:13:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92260,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:13:47]process_action_free close_receipt [14:13:47]json_value_free [14:13:47]json_value_free done [14:13:47]process_json_proto returns [14:13:47]Send response to host [14:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92260,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:13:47]free response buf [14:13:47]execute_script done [14:13:47]execute_script returns [14:13:47]free content buf [14:13:47]Sock 7.Close socket [14:13:47]Sock 7.Thread stoped [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23: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:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:35]accept exits with 9 [14:37:35]New connection [14:37:35]New thread 3067129188 created [14:37:35]Thread 3066985828 joined [14:37:35]Waiting for new connection... [14:37:35] Sock 9.Parse request [14:37:35]Sock 9.Check first char [14:37:35]Sock 9.First char is OK [14:37:35]request: POST /json_proto HTTP/1.0 [14:37:35]Method: POST [14:37:35]URL: /json_proto [14:37:35]Method is POST - this is cgi request [14:37:35]url: /json_proto [14:37:35]query_string will be loaded in cgi processing [14:37:35]execute_cgi json_proto POST (null) [14:37:35]execute_cgi path=json_proto method=POST [14:37:35]POST find Content-Length [14:37:35]Host: 172.17.57.71:8080 [14:37:35]Content-Length: 853 [14:37:35]Content-Type: application/json [14:37:35] [14:37:35]POST finish read [14:37:35]Found Content-Length = 853 [14:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127193", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:35]execute_script... [14:37: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 : (3)127193", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:35]POST & json_proto [14:37:35]process_json_proto [14:37:35]json parsed OK: [14:37:35]protocol is kg_v1.0 [14:37:35]action value=close_receipt [14:37:35]process_action close_receipt [14:37:35]cmd_close_receipt [14:37:35]MH_GetDate [14:37:35]Write to MH i2c: F0 00 00 31 01 21 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: F0 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: F0 09 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: F0 09 00 31 01 00 30 4E E4 66 33 3A A4 66 69 [14:37:35]GetLastDocTimeStamp 1726236823 [14:37:35]current date 1726238256 [14:37:35]FM_GetShiftState [14:37:35]SAM_PROTO_GetShiftState [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 13 01 00 [14:37:35]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 0E 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3C [14:37:35]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:37:35]wFMCommunicate OK [14:37:35]SAM_PROTO_GetShiftState done [14:37:35]FM_GetShiftState done [14:37:35]opened in 1726186930 [14:37:35]opened+sec_in_day 1726273330 [14:37:35]quantity*price = 14400 [14:37:35]sum+1 = 14401 [14:37:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329487 Напиток Pepsi 1,5л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 319.00 НСП 1% : 2.82 НДС 12% : 33.87 Наличными: 319.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 69 13.09.2024 14:37 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92261 ФПД: 214269563315729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T143736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92261&fm=214269563315729&tin=02508201610067®Number=0000000000091423&sum=31900 0 [14:37:37]StoreToDocumentArchive [14:37:37]shift 505 fd 92261 [14:37:37]save to /storage/0505/doc_00092261 [14:37:37]save last doc name /storage/0505/doc_00092261 to /storage/kkm_last_doc_name [14:37:37]save OK [14:37:37]Clear old archive folders... [14:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=371 [14:37:37]tlvbuf is 0100D290 [14:37:37]SAM_PROTO_ClearQueue [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 09 00 00 [14:37:37]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]SAM_PROTO_ClearQueue done [14:37:37]KKMCreateOFDPacket [14:37:37]OFDProtocolAddRootSTLVToBuf [14:37:37]FM_MakeSignedData [14:37:37]FM_MakeSignedData [14:37:37]SAM_PROTO_SignData [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 01 02 [14:37:37]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=255 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 [14:37:37]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 3D [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=130 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 30 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 68 01 00 35 04 06 00 C2 E0 85 35 26 11 [14:37:37]Write to MH i2c: E2 85 00 42 01 80 0D 02 02 7D 00 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 30 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 68 01 00 35 04 06 00 C2 E0 85 35 26 11 00 00 B4 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 03 02 [14:37:37]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 0B 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 0B 00 43 01 00 79 55 FC 34 92 13 04 B3 90 00 1A [14:37:37]RAPDU: 79 55 FC 34 92 13 04 B3 90 00 [14:37:37]wFMCommunicate OK [14:37:37]SAM_PROTO_SignData done [14:37:37]FM_MakeSignedData done [14:37:37]CreateOFDProtocolMessage [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 11 00 00 [14:37:37]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 16 [14:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:37:37]wFMCommunicate OK [14:37:37]CreateOFDProtocolMessage done [14:37:37]OFDSenderStorePacket 92261 [14:37:37]StoreOFDPacket docnum=92261 [14:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 87 01 00 00 0E 4C 7F 01 63 87 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 30 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 68 01 00 35 04 06 00 C2 E0 85 35 26 11 79 55 FC 34 92 13 04 B3 [14:37:37]CheckFolder [14:37:37]dirname=/storage/ofd_packets [14:37:37]CheckFolder done [14:37:37]ProducePacketName [14:37:37]name=ofd_packets/00092261 [14:37:37]NVStorageSaveData ofd_packets/00092261 [14:37:37]File name is /storage/ofd_packets/00092261 [14:37:37]Write 421 bytes [14:37:37]NVStorageSaveData done [14:37:37]OFDSenderStorePacket done [14:37:37]KKMCreateOFDPacket done [14:37:37]NVStorageSaveData kkm_last_timestamp [14:37:37]File name is /storage/kkm_last_timestamp [14:37:37]Write 4 bytes [14:37:37]NVStorageSaveData done [14:37:37]ExternCall_PrintAddStr [14:37:37]wPrintStart [14:37:37]Write to MH i2c: 01 00 00 45 01 46 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 07 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:37:37]RasterBufferAndPrint [14:37:37]line Счет N : (3)127193 [14:37:37]line ИНН: 02508201610067 [14:37:37]line Контрольно-Кассовый Чек [14:37:37]line ПРОДАЖА [14:37:37]line Товар: 48743570 [14:37:37]line Сигареты Winston XStyle Blue [14:37:37]line 1.000 * 144.00 [14:37:37]line = 144.00 [14:37:37]line НДС 12% НСП 1% [14:37:37]line > о реализуемом товаре [14:37:37]line Товар: 4870002329487 [14:37:38]line Напиток Pepsi 1,5л [14:37:38]line 1.000 * 175.00 [14:37:38]line = 175.00 [14:37:38]line НДС 12% НСП 1% [14:37:38]line > о реализуемом товаре [14:37:38]line ИТОГО: 319.00 [14:37:38]line НСП 1% : 2.82 [14:37:38]line НДС 12% : 33.87 [14:37:38]line Наличными: 319.00 [14:37:38]line Безнал.: 0.00 [14:37:38]line Место: АЗС № 5 "Партнер Нефть" [14:37:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:37:38]line СНО: Общий режим [14:37:38]line Чек 69 13.09.2024 14:37 [14:37:38]line Смена: 505 ФФД: 1.0 [14:37:38]line ЗНМ: 03000000022 [14:37:38]line РНМ: 0000000000091423 [14:37:38]line Версия ККМ: 001 [14:37:38]line ФМ: 0000000000874692 [14:37:38]line ФД: 92261 [14:37:38]line ФПД: 214269563315729 [14:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T143736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92261&fm=214269563315729&tin=02508201610067®Number=0000000000091423&sum=31900 [14:37:38]line 0 [14:37:38]OFD Sender: Processing packet 92261 [packets to send 63, broken 62] [14:37:38]ProducePacketName [14:37:38]name=ofd_packets/00092261 [14:37:38]OFD Sender: To server: pG, [14:37:38]CommunicateWithHost lk.salyk.kg:30040 [14:37:38]ConnectInit lk.salyk.kg [14:37:38]written 0, free lines is 4095 [14:37:38]Connected sock=10 [14:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 87 01 00 00 0E 4C 7F 01 63 87 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 30 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 68 01 00 35 04 06 00 C2 E0 85 35 26 11 79 55 FC 34 92 13 04 B3 [14:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BE 1B 47 00 5C D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 68 01 00 F4 03 04 00 AF F6 E3 66 B6 04 01 00 00 50 EA A8 8B AA 73 30 0C [14:37:38]CommunicateWithHost err = 0 [14:37:38]CheckOFDResponse [14:37:38]1017 (14) - 77093643461234 [14:37:38]1041 (16) - 0000000000874692 [14:37:38]1040 (4) - 92261 [14:37:38]1012 (4) - 13.09.2024 08:24 [14:37:38]1206 (1) - 0 [14:37:38]OFD Sender: Remove packet 92261 [14:37:38]ProducePacketName [14:37:38]name=ofd_packets/00092261 [14:37:38]NVStorageDeleteData [14:37:38]Write to MH i2c: 01 00 00 73 01 74 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 E4 0C 6B [14:37:38]RasterBufferAndPrint [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]written 0, free lines is 3305 [14:37:38]MH_Cut [14:37:38]Write to MH i2c: D1 01 00 7A 01 01 4D [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 01 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 01 00 7A 01 00 4C [14:37:38]Write to MH i2c: 01 00 00 7B 01 7C [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]OFD Sender: No OFD packet to send [14:37:39]*** Cut start [14:37:39]*** Purtial cut [14:37:39]*** Stage 1: CUTSNS_PIN = 1 [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]*** Stop cut motor [14:37:41]*** Cut end [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [14:37:41]process_action close_receipt done [14:37:41]requested_data is exist [14:37:41]produce_requested_data [14:37:41]requested_item fm.sn is exist - process it [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 11 00 00 [14:37:41]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 17 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [14:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:37:41]wFMCommunicate OK [14:37:41]requested_item fd.num is exist - process it [14:37:41]SAM_PROTO_GetFieldsCounters [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 13 00 00 [14:37:41]Write to MH i2c: E2 08 00 7D 01 80 13 00 00 00 00 00 00 FA [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 62 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 62 00 7D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 65 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [14:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 65 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:41]wFMCommunicate OK [14:37:41]SAM_PROTO_GetFieldsCounters done [14:37:41]requested_item shift.num is exist - process it [14:37:41]requested_item shift.opened is exist - process it [14:37:41]req_shift_opened [14:37:41]FM_GetShiftState [14:37:41]SAM_PROTO_GetShiftState [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 13 01 00 [14:37:41]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 0E 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 88 [14:37:41]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:37:41]wFMCommunicate OK [14:37:41]SAM_PROTO_GetShiftState done [14:37:41]FM_GetShiftState done [14:37:41]req_shift_opened done [14:37:41]requested_item shift.open_date is exist - process it [14:37:41]req_shift_open_date [14:37:41]req_shift_open_date done [14:37:41]produce_requested_data done [14:37:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92261,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:37:41]process_action_free close_receipt [14:37:41]json_value_free [14:37:41]json_value_free done [14:37:41]process_json_proto returns [14:37:41]Send response to host [14:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92261,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:37:41]free response buf [14:37:41]execute_script done [14:37:41]execute_script returns [14:37:41]free content buf [14:37:41]Sock 9.Close socket [14:37:41]Sock 9.Thread stoped [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [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:38:59]accept exits with 7 [14:38:59]New connection [14:38:59]New thread 3066985828 created [14:38:59]Thread 3067129188 joined [14:38:59]Waiting for new connection... [14:38:59] Sock 7.Parse request [14:38:59]Sock 7.Check first char [14:38:59]Sock 7.First char is OK [14:38:59]request: POST /json_proto HTTP/1.0 [14:38:59]Method: POST [14:38:59]URL: /json_proto [14:38:59]Method is POST - this is cgi request [14:38:59]url: /json_proto [14:38:59]query_string will be loaded in cgi processing [14:38:59]execute_cgi json_proto POST (null) [14:38:59]execute_cgi path=json_proto method=POST [14:38:59]POST find Content-Length [14:38:59]Host: 172.17.57.71:8080 [14:38:59]Content-Length: 992 [14:38:59]Content-Type: application/json [14:38:59] [14:38:59]POST finish read [14:38:59]Found Content-Length = 992 [14:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127194", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:59]execute_script... [14:38:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127194", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:59]POST & json_proto [14:38:59]process_json_proto [14:38:59]json parsed OK: [14:38:59]protocol is kg_v1.0 [14:38:59]action value=close_receipt [14:38:59]process_action close_receipt [14:38:59]cmd_close_receipt [14:38:59]MH_GetDate [14:38:59]Write to MH i2c: F0 00 00 7F 01 6F [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: F0 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: F0 09 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: F0 09 00 7F 01 00 84 4E E4 66 33 3A A4 66 0B [14:38:59]GetLastDocTimeStamp 1726238256 [14:38:59]current date 1726238340 [14:38:59]FM_GetShiftState [14:38:59]SAM_PROTO_GetShiftState [14:38:59]wFMCommunicate request_size=4 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 13 01 00 [14:38:59]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0E 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8A [14:38:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:38:59]wFMCommunicate OK [14:38:59]SAM_PROTO_GetShiftState done [14:38:59]FM_GetShiftState done [14:38:59]opened in 1726186930 [14:38:59]opened+sec_in_day 1726273330 [14:38:59]quantity*price = 10500 [14:38:59]sum+1 = 10501 [14:38:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 70 13.09.2024 14:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92262 ФПД: 207003560393200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T143900&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92262&fm=207003560393200&tin=02508201610067®Number=0000000000091423&sum=26500 0 [14:39:01]StoreToDocumentArchive [14:39:01]shift 505 fd 92262 [14:39:01]save to /storage/0505/doc_00092262 [14:39:01]save last doc name /storage/0505/doc_00092262 to /storage/kkm_last_doc_name [14:39:01]save OK [14:39:01]Clear old archive folders... [14:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=414 [14:39:01]tlvbuf is 0100D110 [14:39:01]SAM_PROTO_ClearQueue [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 09 00 00 [14:39:01]Write to MH i2c: E2 08 00 8D 01 80 09 00 00 00 00 00 00 00 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_ClearQueue done [14:39:01]KKMCreateOFDPacket [14:39:01]OFDProtocolAddRootSTLVToBuf [14:39:01]FM_MakeSignedData [14:39:01]FM_MakeSignedData [14:39:01]SAM_PROTO_SignData [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 01 02 [14:39:01]Write to MH i2c: E2 08 00 8E 01 80 0D 01 02 00 00 00 00 08 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=255 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [14:39:01]Write to MH i2c: E2 02 01 8F 01 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 E5 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=173 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 84 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 68 01 00 35 04 06 00 BC 44 C5 AF 39 F0 [14:39:01]Write to MH i2c: E2 B0 00 90 01 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 84 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 68 01 00 35 04 06 00 BC 44 C5 AF 39 F0 00 00 2E [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 03 02 [14:39:01]Write to MH i2c: E2 08 00 91 01 80 0D 03 02 00 00 00 00 0D [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0B 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0B 00 91 01 00 65 F7 1C 61 7B 58 92 88 90 00 D4 [14:39:01]RAPDU: 65 F7 1C 61 7B 58 92 88 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_SignData done [14:39:01]FM_MakeSignedData done [14:39:01]CreateOFDProtocolMessage [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 11 00 00 [14:39:01]Write to MH i2c: E2 08 00 92 01 80 11 00 00 00 00 00 00 0D [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 92 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 64 [14:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:39:01]wFMCommunicate OK [14:39:01]CreateOFDProtocolMessage done [14:39:01]OFDSenderStorePacket 92262 [14:39:01]StoreOFDPacket docnum=92262 [14:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B2 01 00 00 2A 8A AA 01 AE 6F 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 84 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 68 01 00 35 04 06 00 BC 44 C5 AF 39 F0 65 F7 1C 61 7B 58 92 88 [14:39:01]CheckFolder [14:39:01]dirname=/storage/ofd_packets [14:39:01]CheckFolder done [14:39:01]ProducePacketName [14:39:01]name=ofd_packets/00092262 [14:39:01]NVStorageSaveData ofd_packets/00092262 [14:39:01]File name is /storage/ofd_packets/00092262 [14:39:01]Write 464 bytes [14:39:01]NVStorageSaveData done [14:39:01]OFDSenderStorePacket done [14:39:01]KKMCreateOFDPacket done [14:39:01]NVStorageSaveData kkm_last_timestamp [14:39:01]File name is /storage/kkm_last_timestamp [14:39:01]Write 4 bytes [14:39:01]NVStorageSaveData done [14:39:01]ExternCall_PrintAddStr [14:39:01]wPrintStart [14:39:01]Write to MH i2c: 01 00 00 93 01 94 [14:39:01]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]OFD Sender: Processing packet 92262 [packets to send 63, broken 62] [14:39:02]ProducePacketName [14:39:02]name=ofd_packets/00092262 [14:39:02]OFD Sender: To server: pG, [14:39:02]CommunicateWithHost lk.salyk.kg:30040 [14:39:02]ConnectInit lk.salyk.kg [14:39:02]Read from MH i2c: 01 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [14:39:02]RasterBufferAndPrint [14:39:02]line Счет N : (3)127194 [14:39:02]line ИНН: 02508201610067 [14:39:02]line Контрольно-Кассовый Чек [14:39:02]line ПРОДАЖА [14:39:02]line Товар: 5449000027474 [14:39:02]line Напиток FuzeTea зел чай манго,ромашка 1л [14:39:02]line 1.000 * 105.00 [14:39:02]line = 105.00 [14:39:02]line НДС 12% НСП 1% [14:39:02]line > о реализуемом товаре [14:39:02]line Товар: 4860019001346 [14:39:02]line Вода Боржоми 0,5л ст [14:39:02]line 1.000 * 160.00 [14:39:02]line = 160.00 [14:39:02]line НДС 12% НСП 1% [14:39:02]line > о реализуемом товаре [14:39:02]line ИТОГО: 265.00 [14:39:02]line НСП 1% : 2.35 [14:39:02]line НДС 12% : 28.14 [14:39:02]line Наличными: 265.00 [14:39:02]line Безнал.: 0.00 [14:39:02]line Место: АЗС № 5 "Партнер Нефть" [14:39:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:39:02]line СНО: Общий режим [14:39:02]line Чек 70 13.09.2024 14:39 [14:39:02]line Смена: 505 ФФД: 1.0 [14:39:02]line ЗНМ: 03000000022 [14:39:02]line РНМ: 0000000000091423 [14:39:02]line Версия ККМ: 001 [14:39:02]line ФМ: 0000000000874692 [14:39:02]line ФД: 92262 [14:39:02]line ФПД: 207003560393200 [14:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T143900&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92262&fm=207003560393200&tin=02508201610067®Number=0000000000091423&sum=26500 [14:39:02]line 0 [14:39:02]written 0, free lines is 4095 [14:39:02]Connected sock=10 [14:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B2 01 00 00 2A 8A AA 01 AE 6F 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 84 4E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 68 01 00 35 04 06 00 BC 44 C5 AF 39 F0 65 F7 1C 61 7B 58 92 88 [14:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BE 5C 47 00 54 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 34 36 39 32 10 04 04 00 66 68 01 00 F4 03 04 00 03 F7 E3 66 B6 04 01 00 00 8F BB A2 2C FB E2 2E 9E [14:39:02]CommunicateWithHost err = 0 [14:39:02]CheckOFDResponse [14:39:02]1017 (14) - 77093643461234 [14:39:02]1041 (16) - 0000000000874692 [14:39:02]1040 (4) - 92262 [14:39:02]1012 (4) - 13.09.2024 08:25 [14:39:02]1206 (1) - 0 [14:39:02]OFD Sender: Remove packet 92262 [14:39:02]ProducePacketName [14:39:02]name=ofd_packets/00092262 [14:39:02]NVStorageDeleteData [14:39:02]Write to MH i2c: 01 00 00 C2 01 C3 [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 CA 0C A0 [14:39:02]RasterBufferAndPrint [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]written 0, free lines is 3282 [14:39:02]MH_Cut [14:39:02]Write to MH i2c: D1 01 00 C9 01 01 9C [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 01 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 01 00 C9 01 00 9B [14:39:02]Write to MH i2c: 01 00 00 CA 01 CB [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]OFD Sender: No OFD packet to send [14:39:03]*** Cut start [14:39:03]*** Purtial cut [14:39:03]*** Stage 1: CUTSNS_PIN = 1 [14:39:05]Read from MH i2c: 01 [14:39:05]MH_I2C_Read... [14:39:05]*** Stop cut motor [14:39:05]*** Cut end [14:39:05]Read from MH i2c: 01 07 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 FF 0F E0 [14:39:05]process_action close_receipt done [14:39:05]requested_data is exist [14:39:05]produce_requested_data [14:39:05]requested_item fm.sn is exist - process it [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 11 00 00 [14:39:05]Write to MH i2c: E2 08 00 CB 01 80 11 00 00 00 00 00 00 46 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 17 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 17 00 CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9D [14:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:39:05]wFMCommunicate OK [14:39:05]requested_item fd.num is exist - process it [14:39:05]SAM_PROTO_GetFieldsCounters [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 13 00 00 [14:39:05]Write to MH i2c: E2 08 00 CC 01 80 13 00 00 00 00 00 00 49 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 62 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 62 00 CC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 66 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 66 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:05]wFMCommunicate OK [14:39:05]SAM_PROTO_GetFieldsCounters done [14:39:05]requested_item shift.num is exist - process it [14:39:05]requested_item shift.opened is exist - process it [14:39:05]req_shift_opened [14:39:05]FM_GetShiftState [14:39:05]SAM_PROTO_GetShiftState [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 13 01 00 [14:39:05]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 0E 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D7 [14:39:05]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:39:05]wFMCommunicate OK [14:39:05]SAM_PROTO_GetShiftState done [14:39:05]FM_GetShiftState done [14:39:05]req_shift_opened done [14:39:05]requested_item shift.open_date is exist - process it [14:39:05]req_shift_open_date [14:39:05]req_shift_open_date done [14:39:05]produce_requested_data done [14:39:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92262,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:39:05]process_action_free close_receipt [14:39:05]json_value_free [14:39:05]json_value_free done [14:39:05]process_json_proto returns [14:39:05]Send response to host [14:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92262,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:39:05]free response buf [14:39:05]execute_script done [14:39:05]execute_script returns [14:39:05]free content buf [14:39:05]Sock 7.Close socket [14:39:05]Sock 7.Thread stoped [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41: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:43]accept exits with 9 [14:44:43]New connection [14:44:43]New thread 3067129188 created [14:44:43]Thread 3066985828 joined [14:44:43]Waiting for new connection... [14:44:43] Sock 9.Parse request [14:44:43]Sock 9.Check first char [14:44:43]Sock 9.First char is OK [14:44:43]request: POST /json_proto HTTP/1.0 [14:44:43]Method: POST [14:44:43]URL: /json_proto [14:44:43]Method is POST - this is cgi request [14:44:43]url: /json_proto [14:44:43]query_string will be loaded in cgi processing [14:44:43]execute_cgi json_proto POST (null) [14:44:43]execute_cgi path=json_proto method=POST [14:44:43]POST find Content-Length [14:44:43]Host: 172.17.57.71:8080 [14:44:43]Content-Length: 626 [14:44:43]Content-Type: application/json [14:44:43] [14:44:43]POST finish read [14:44:43]Found Content-Length = 626 [14:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127195", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:43]execute_script... [14:44: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 : (3)127195", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:43]POST & json_proto [14:44:43]process_json_proto [14:44:43]json parsed OK: [14:44:43]protocol is kg_v1.0 [14:44:43]action value=close_receipt [14:44:43]process_action close_receipt [14:44:43]cmd_close_receipt [14:44:43]MH_GetDate [14:44:43]Write to MH i2c: F0 00 00 CE 01 BE [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: F0 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: F0 09 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: F0 09 00 CE 01 00 DC 4F E4 66 33 3A A4 66 B3 [14:44:43]GetLastDocTimeStamp 1726238340 [14:44:43]current date 1726238684 [14:44:43]FM_GetShiftState [14:44:43]SAM_PROTO_GetShiftState [14:44:43]wFMCommunicate request_size=4 [14:44:43]MH_SAM_APDU [14:44:43]CAPDU: 80 13 01 00 [14:44:43]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0E 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D9 [14:44:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:44:43]wFMCommunicate OK [14:44:43]SAM_PROTO_GetShiftState done [14:44:43]FM_GetShiftState done [14:44:43]opened in 1726186930 [14:44:43]opened+sec_in_day 1726273330 [14:44:43]quantity*price = 15000 [14:44:43]sum+1 = 15001 [14:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 71 13.09.2024 14:44 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92263 ФПД: 85798384691010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T144444&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92263&fm=85798384691010&tin=02508201610067®Number=0000000000091423&sum=15000 0 [14:44:44]StoreToDocumentArchive [14:44:44]shift 505 fd 92263 [14:44:44]save to /storage/0505/doc_00092263 [14:44:44]save last doc name /storage/0505/doc_00092263 to /storage/kkm_last_doc_name [14:44:44]save OK [14:44:44]Clear old archive folders... [14:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:44:44]tlvbuf is 0102C130 [14:44:44]SAM_PROTO_ClearQueue [14:44:44]wFMCommunicate request_size=4 [14:44:44]MH_SAM_APDU [14:44:44]CAPDU: 80 09 00 00 [14:44:44]Write to MH i2c: E2 08 00 DC 01 80 09 00 00 00 00 00 00 4F [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:44]Read from MH i2c: E2 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 03 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [14:44:44]RAPDU: 90 00 [14:44:44]wFMCommunicate OK [14:44:44]SAM_PROTO_ClearQueue done [14:44:44]KKMCreateOFDPacket [14:44:44]OFDProtocolAddRootSTLVToBuf [14:44:44]FM_MakeSignedData [14:44:44]FM_MakeSignedData [14:44:44]SAM_PROTO_SignData [14:44:44]wFMCommunicate request_size=4 [14:44:44]MH_SAM_APDU [14:44:44]CAPDU: 80 0D 01 02 [14:44:44]Write to MH i2c: E2 08 00 DD 01 80 0D 01 02 00 00 00 00 57 [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:44]Read from MH i2c: E2 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 03 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [14:44:44]RAPDU: 90 00 [14:44:44]wFMCommunicate OK [14:44:44]wFMCommunicate request_size=255 [14:44:44]MH_SAM_APDU [14:44:44]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 DC 4F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [14:44:44]Write to MH i2c: E2 02 01 DE 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 DC 4F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 2C [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 03 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [14:44:45]RAPDU: 90 00 [14:44:45]wFMCommunicate OK [14:44:45]wFMCommunicate request_size=37 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 68 01 00 35 04 06 00 4E 08 7E 3D E7 42 [14:44:45]Write to MH i2c: E2 28 00 DF 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 68 01 00 35 04 06 00 4E 08 7E 3D E7 42 00 00 BF [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 03 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [14:44:45]RAPDU: 90 00 [14:44:45]wFMCommunicate OK [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 0D 03 02 [14:44:45]Write to MH i2c: E2 08 00 E0 01 80 0D 03 02 00 00 00 00 5C [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0B 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0B 00 E0 01 00 3B 18 22 06 E5 F0 7E A2 90 00 CD [14:44:45]RAPDU: 3B 18 22 06 E5 F0 7E A2 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_SignData done [14:44:45]FM_MakeSignedData done [14:44:45]CreateOFDProtocolMessage [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 11 00 00 [14:44:45]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 17 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B3 [14:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:44:45]wFMCommunicate OK [14:44:45]CreateOFDProtocolMessage done [14:44:45]OFDSenderStorePacket 92263 [14:44:45]StoreOFDPacket docnum=92263 [14:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 4B DA 22 01 38 58 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 DC 4F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 68 01 00 35 04 06 00 4E 08 7E 3D E7 42 3B 18 22 06 E5 F0 7E A2 [14:44:45]CheckFolder [14:44:45]dirname=/storage/ofd_packets [14:44:45]CheckFolder done [14:44:45]ProducePacketName [14:44:45]name=ofd_packets/00092263 [14:44:45]NVStorageSaveData ofd_packets/00092263 [14:44:45]File name is /storage/ofd_packets/00092263 [14:44:45]Write 328 bytes [14:44:45]NVStorageSaveData done [14:44:45]OFDSenderStorePacket done [14:44:45]KKMCreateOFDPacket done [14:44:45]NVStorageSaveData kkm_last_timestamp [14:44:45]File name is /storage/kkm_last_timestamp [14:44:45]Write 4 bytes [14:44:45]NVStorageSaveData done [14:44:45]ExternCall_PrintAddStr [14:44:45]wPrintStart [14:44:45]Write to MH i2c: 01 00 00 E2 01 E3 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: 01 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: 01 07 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [14:44:45]RasterBufferAndPrint [14:44:45]line Счет N : (3)127195 [14:44:45]line ИНН: 02508201610067 [14:44:45]line Контрольно-Кассовый Чек [14:44:45]line ПРОДАЖА [14:44:45]line Товар: 4640030092499 [14:44:45]line Сигареты ESSE SENSE Himalaya [14:44:45]line 1.000 * 150.00 [14:44:45]line = 150.00 [14:44:45]line НДС 12% НСП 1% [14:44:45]line > о реализуемом товаре [14:44:45]line ИТОГО: 150.00 [14:44:45]line НСП 1% : 1.33 [14:44:45]line НДС 12% : 15.93 [14:44:45]line Наличными: 150.00 [14:44:45]line Безнал.: 0.00 [14:44:45]line Место: АЗС № 5 "Партнер Нефть" [14:44:45]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:44:45]line СНО: Общий режим [14:44:45]line Чек 71 13.09.2024 14:44 [14:44:45]line Смена: 505 ФФД: 1.0 [14:44:45]line ЗНМ: 03000000022 [14:44:45]line РНМ: 0000000000091423 [14:44:45]line Версия ККМ: 001 [14:44:45]line ФМ: 0000000000874692 [14:44:45]line ФД: 92263 [14:44:45]line ФПД: 85798384691010 [14:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T144444&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92263&fm=85798384691010&tin=02508201610067®Number=0000000000091423&sum=15000 [14:44:45]line 0 [14:44:45]OFD Sender: Processing packet 92263 [packets to send 63, broken 62] [14:44:45]ProducePacketName [14:44:45]name=ofd_packets/00092263 [14:44:45]OFD Sender: To server: pG, [14:44:45]CommunicateWithHost lk.salyk.kg:30040 [14:44:45]ConnectInit lk.salyk.kg [14:44:45]written 0, free lines is 4095 [14:44:45]Connected sock=10 [14:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 4B DA 22 01 38 58 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 DC 4F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 68 01 00 35 04 06 00 4E 08 7E 3D E7 42 3B 18 22 06 E5 F0 7E A2 [14:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 11 99 47 00 6E D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 68 01 00 F4 03 04 00 5B F8 E3 66 B6 04 01 00 00 0E B4 C3 D5 DF 2A 7F B3 [14:44:46]CommunicateWithHost err = 0 [14:44:46]CheckOFDResponse [14:44:46]1017 (14) - 77093643461234 [14:44:46]1041 (16) - 0000000000874692 [14:44:46]1040 (4) - 92263 [14:44:46]1012 (4) - 13.09.2024 08:31 [14:44:46]1206 (1) - 0 [14:44:46]OFD Sender: Remove packet 92263 [14:44:46]ProducePacketName [14:44:46]name=ofd_packets/00092263 [14:44:46]NVStorageDeleteData [14:44:46]Write to MH i2c: 01 00 00 0B 02 0D [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 07 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 0B 0D 2C [14:44:46]RasterBufferAndPrint [14:44:46]line [14:44:46]line [14:44:46]line [14:44:46]line [14:44:46]line [14:44:46]written 0, free lines is 3344 [14:44:46]MH_Cut [14:44:46]Write to MH i2c: D1 01 00 12 02 01 E6 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: D1 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: D1 01 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: D1 01 00 12 02 00 E5 [14:44:46]Write to MH i2c: 01 00 00 13 02 15 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]OFD Sender: No OFD packet to send [14:44:46]*** Cut start [14:44:46]*** Purtial cut [14:44:46]*** Stage 1: CUTSNS_PIN = 1 [14:44:48]Read from MH i2c: 01 [14:44:48]MH_I2C_Read... [14:44:48]*** Stop cut motor [14:44:48]*** Cut end [14:44:48]Read from MH i2c: 01 07 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 FF 0F 2A [14:44:48]process_action close_receipt done [14:44:48]requested_data is exist [14:44:48]produce_requested_data [14:44:48]requested_item fm.sn is exist - process it [14:44:48]wFMCommunicate request_size=4 [14:44:48]MH_SAM_APDU [14:44:48]CAPDU: 80 11 00 00 [14:44:48]Write to MH i2c: E2 08 00 14 02 80 11 00 00 00 00 00 00 90 [14:44:48]Write i2c OK [14:44:48]MH_I2C_Read... [14:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:48]Read from MH i2c: E2 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 17 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 17 00 14 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E7 [14:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:44:48]wFMCommunicate OK [14:44:48]requested_item fd.num is exist - process it [14:44:48]SAM_PROTO_GetFieldsCounters [14:44:48]wFMCommunicate request_size=4 [14:44:48]MH_SAM_APDU [14:44:48]CAPDU: 80 13 00 00 [14:44:48]Write to MH i2c: E2 08 00 15 02 80 13 00 00 00 00 00 00 93 [14:44:48]Write i2c OK [14:44:48]MH_I2C_Read... [14:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:48]Read from MH i2c: E2 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 62 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 62 00 15 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 67 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [14:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 67 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:49]wFMCommunicate OK [14:44:49]SAM_PROTO_GetFieldsCounters done [14:44:49]requested_item shift.num is exist - process it [14:44:49]requested_item shift.opened is exist - process it [14:44:49]req_shift_opened [14:44:49]FM_GetShiftState [14:44:49]SAM_PROTO_GetShiftState [14:44:49]wFMCommunicate request_size=4 [14:44:49]MH_SAM_APDU [14:44:49]CAPDU: 80 13 01 00 [14:44:49]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [14:44:49]Write i2c OK [14:44:49]MH_I2C_Read... [14:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:49]Read from MH i2c: E2 [14:44:49]MH_I2C_Read... [14:44:49]Read from MH i2c: E2 0E 00 [14:44:49]MH_I2C_Read... [14:44:49]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 21 [14:44:49]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:44:49]wFMCommunicate OK [14:44:49]SAM_PROTO_GetShiftState done [14:44:49]FM_GetShiftState done [14:44:49]req_shift_opened done [14:44:49]requested_item shift.open_date is exist - process it [14:44:49]req_shift_open_date [14:44:49]req_shift_open_date done [14:44:49]produce_requested_data done [14:44:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92263,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:44:49]process_action_free close_receipt [14:44:49]json_value_free [14:44:49]json_value_free done [14:44:49]process_json_proto returns [14:44:49]Send response to host [14:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92263,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:44:49]free response buf [14:44:49]execute_script done [14:44:49]execute_script returns [14:44:49]free content buf [14:44:49]Sock 9.Close socket [14:44:49]Sock 9.Thread stoped [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]accept exits with 7 [14:50:56]New connection [14:50:56]New thread 3066985828 created [14:50:56]Thread 3067129188 joined [14:50:56]Waiting for new connection... [14:50:56] Sock 7.Parse request [14:50:56]Sock 7.Check first char [14:50:56]Sock 7.First char is OK [14:50:56]request: POST /json_proto HTTP/1.0 [14:50:56]Method: POST [14:50:56]URL: /json_proto [14:50:56]Method is POST - this is cgi request [14:50:56]url: /json_proto [14:50:56]query_string will be loaded in cgi processing [14:50:56]execute_cgi json_proto POST (null) [14:50:56]execute_cgi path=json_proto method=POST [14:50:56]POST find Content-Length [14:50:56]Host: 172.17.57.71:8080 [14:50:56]Content-Length: 654 [14:50:56]Content-Type: application/json [14:50:56] [14:50:56]POST finish read [14:50:56]Found Content-Length = 654 [14:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127196", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:56]execute_script... [14:50: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 : (3)127196", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:56]POST & json_proto [14:50:56]process_json_proto [14:50:56]json parsed OK: [14:50:56]protocol is kg_v1.0 [14:50:56]action value=close_receipt [14:50:56]process_action close_receipt [14:50:56]cmd_close_receipt [14:50:56]MH_GetDate [14:50:56]Write to MH i2c: F0 00 00 17 02 08 [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: F0 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: F0 09 00 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: F0 09 00 17 02 00 51 51 E4 66 33 3A A4 66 74 [14:50:56]GetLastDocTimeStamp 1726238684 [14:50:56]current date 1726239057 [14:50:56]FM_GetShiftState [14:50:56]SAM_PROTO_GetShiftState [14:50:56]wFMCommunicate request_size=4 [14:50:56]MH_SAM_APDU [14:50:56]CAPDU: 80 13 01 00 [14:50:56]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:56]Read from MH i2c: E2 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: E2 0E 00 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 23 [14:50:56]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:50:56]wFMCommunicate OK [14:50:56]SAM_PROTO_GetShiftState done [14:50:56]FM_GetShiftState done [14:50:56]opened in 1726186930 [14:50:56]opened+sec_in_day 1726273330 [14:50:56]quantity*price = 15000 [14:50:56]sum+1 = 15001 [14:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 72 13.09.2024 14:50 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92264 ФПД: 160684138012562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T145057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92264&fm=160684138012562&tin=02508201610067®Number=0000000000091423&sum=15000 0 [14:50:57]StoreToDocumentArchive [14:50:57]shift 505 fd 92264 [14:50:57]save to /storage/0505/doc_00092264 [14:50:57]save last doc name /storage/0505/doc_00092264 to /storage/kkm_last_doc_name [14:50:57]save OK [14:50:57]Clear old archive folders... [14:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:50:57]tlvbuf is 0103D140 [14:50:57]SAM_PROTO_ClearQueue [14:50:57]wFMCommunicate request_size=4 [14:50:57]MH_SAM_APDU [14:50:57]CAPDU: 80 09 00 00 [14:50:57]Write to MH i2c: E2 08 00 25 02 80 09 00 00 00 00 00 00 99 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:57]Read from MH i2c: E2 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 03 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [14:50:57]RAPDU: 90 00 [14:50:57]wFMCommunicate OK [14:50:57]SAM_PROTO_ClearQueue done [14:50:57]KKMCreateOFDPacket [14:50:57]OFDProtocolAddRootSTLVToBuf [14:50:57]FM_MakeSignedData [14:50:57]FM_MakeSignedData [14:50:57]SAM_PROTO_SignData [14:50:57]wFMCommunicate request_size=4 [14:50:57]MH_SAM_APDU [14:50:57]CAPDU: 80 0D 01 02 [14:50:57]Write to MH i2c: E2 08 00 26 02 80 0D 01 02 00 00 00 00 A1 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:57]Read from MH i2c: E2 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 03 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [14:50:57]RAPDU: 90 00 [14:50:57]wFMCommunicate OK [14:50:57]wFMCommunicate request_size=255 [14:50:57]MH_SAM_APDU [14:50:57]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 51 51 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [14:50:57]Write to MH i2c: E2 02 01 27 02 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 51 51 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 42 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [14:50:58]RAPDU: 90 00 [14:50:58]wFMCommunicate OK [14:50:58]wFMCommunicate request_size=34 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 68 01 00 35 04 06 00 92 24 30 F7 9F 92 [14:50:58]Write to MH i2c: E2 25 00 28 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 68 01 00 35 04 06 00 92 24 30 F7 9F 92 00 00 48 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [14:50:58]RAPDU: 90 00 [14:50:58]wFMCommunicate OK [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 0D 03 02 [14:50:58]Write to MH i2c: E2 08 00 29 02 80 0D 03 02 00 00 00 00 A6 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0B 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0B 00 29 02 00 47 2C B2 A8 D1 48 E9 01 90 00 77 [14:50:58]RAPDU: 47 2C B2 A8 D1 48 E9 01 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_SignData done [14:50:58]FM_MakeSignedData done [14:50:58]CreateOFDProtocolMessage [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 11 00 00 [14:50:58]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FD [14:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:50:58]wFMCommunicate OK [14:50:58]CreateOFDProtocolMessage done [14:50:58]OFDSenderStorePacket 92264 [14:50:58]StoreOFDPacket docnum=92264 [14:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 AC 47 1F 01 AC 4D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 51 51 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 68 01 00 35 04 06 00 92 24 30 F7 9F 92 47 2C B2 A8 D1 48 E9 01 [14:50:58]CheckFolder [14:50:58]dirname=/storage/ofd_packets [14:50:58]CheckFolder done [14:50:58]ProducePacketName [14:50:58]name=ofd_packets/00092264 [14:50:58]NVStorageSaveData ofd_packets/00092264 [14:50:58]File name is /storage/ofd_packets/00092264 [14:50:58]Write 325 bytes [14:50:58]NVStorageSaveData done [14:50:58]OFDSenderStorePacket done [14:50:58]KKMCreateOFDPacket done [14:50:58]NVStorageSaveData kkm_last_timestamp [14:50:58]File name is /storage/kkm_last_timestamp [14:50:58]Write 4 bytes [14:50:58]NVStorageSaveData done [14:50:58]ExternCall_PrintAddStr [14:50:58]wPrintStart [14:50:58]Write to MH i2c: 01 00 00 2B 02 2D [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [14:50:58]RasterBufferAndPrint [14:50:58]line Счет N : (3)127196 [14:50:58]line ИНН: 02508201610067 [14:50:58]line Контрольно-Кассовый Чек [14:50:58]line ПРОДАЖА [14:50:58]line Товар: 54491472 [14:50:58]line Напиток Кока-Кола 0,5л [14:50:58]line 2.000 * 75.00 [14:50:58]line = 150.00 [14:50:58]line НДС 12% НСП 1% [14:50:58]line > о реализуемом товаре [14:50:58]line ИТОГО: 150.00 [14:50:58]line НСП 1% : 1.33 [14:50:58]line НДС 12% : 15.93 [14:50:58]line Наличными: 150.00 [14:50:58]line Безнал.: 0.00 [14:50:58]line Место: АЗС № 5 "Партнер Нефть" [14:50:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:50:58]line СНО: Общий режим [14:50:58]line Чек 72 13.09.2024 14:50 [14:50:58]line Смена: 505 ФФД: 1.0 [14:50:58]line ЗНМ: 03000000022 [14:50:58]line РНМ: 0000000000091423 [14:50:58]line Версия ККМ: 001 [14:50:58]line ФМ: 0000000000874692 [14:50:58]line ФД: 92264 [14:50:58]line ФПД: 160684138012562 [14:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T145057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92264&fm=160684138012562&tin=02508201610067®Number=0000000000091423&sum=15000 [14:50:58]line 0 [14:50:58]written 0, free lines is 4095 [14:50:58]OFD Sender: Processing packet 92264 [packets to send 63, broken 62] [14:50:58]ProducePacketName [14:50:58]name=ofd_packets/00092264 [14:50:58]OFD Sender: To server: pG, [14:50:58]CommunicateWithHost lk.salyk.kg:30040 [14:50:58]ConnectInit lk.salyk.kg [14:50:58]Connected sock=10 [14:50:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 AC 47 1F 01 AC 4D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 51 51 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 68 01 00 35 04 06 00 92 24 30 F7 9F 92 47 2C B2 A8 D1 48 E9 01 [14:50:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FF 30 47 00 85 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 68 01 00 F4 03 04 00 CF F9 E3 66 B6 04 01 00 00 2C 6D 5D 4C B9 55 8D D8 [14:50:58]CommunicateWithHost err = 0 [14:50:58]CheckOFDResponse [14:50:58]1017 (14) - 77093643461234 [14:50:58]1041 (16) - 0000000000874692 [14:50:58]1040 (4) - 92264 [14:50:58]1012 (4) - 13.09.2024 08:37 [14:50:58]1206 (1) - 0 [14:50:58]OFD Sender: Remove packet 92264 [14:50:58]ProducePacketName [14:50:58]name=ofd_packets/00092264 [14:50:58]NVStorageDeleteData [14:50:58]Write to MH i2c: 01 00 00 53 02 55 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 19 0D 82 [14:50:58]RasterBufferAndPrint [14:50:58]line [14:50:58]line [14:50:58]line [14:50:58]line [14:50:58]line [14:50:58]written 0, free lines is 3361 [14:50:58]MH_Cut [14:50:58]Write to MH i2c: D1 01 00 5A 02 01 2E [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: D1 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: D1 01 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: D1 01 00 5A 02 00 2D [14:50:58]Write to MH i2c: 01 00 00 5B 02 5D [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:59]OFD Sender: No OFD packet to send [14:50:59]*** Cut start [14:50:59]*** Purtial cut [14:50:59]*** Stage 1: CUTSNS_PIN = 1 [14:51:01]Read from MH i2c: 01 [14:51:01]MH_I2C_Read... [14:51:01]*** Stop cut motor [14:51:01]*** Cut end [14:51:01]Read from MH i2c: 01 07 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 FF 0F 72 [14:51:01]process_action close_receipt done [14:51:01]requested_data is exist [14:51:01]produce_requested_data [14:51:01]requested_item fm.sn is exist - process it [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 11 00 00 [14:51:01]Write to MH i2c: E2 08 00 5C 02 80 11 00 00 00 00 00 00 D8 [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 5C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [14:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:51:01]wFMCommunicate OK [14:51:01]requested_item fd.num is exist - process it [14:51:01]SAM_PROTO_GetFieldsCounters [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 13 00 00 [14:51:01]Write to MH i2c: E2 08 00 5D 02 80 13 00 00 00 00 00 00 DB [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 5D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 68 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 68 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:01]wFMCommunicate OK [14:51:01]SAM_PROTO_GetFieldsCounters done [14:51:01]requested_item shift.num is exist - process it [14:51:01]requested_item shift.opened is exist - process it [14:51:01]req_shift_opened [14:51:01]FM_GetShiftState [14:51:01]SAM_PROTO_GetShiftState [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 13 01 00 [14:51:01]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 0E 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 69 [14:51:01]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:51:01]wFMCommunicate OK [14:51:01]SAM_PROTO_GetShiftState done [14:51:01]FM_GetShiftState done [14:51:01]req_shift_opened done [14:51:01]requested_item shift.open_date is exist - process it [14:51:01]req_shift_open_date [14:51:01]req_shift_open_date done [14:51:01]produce_requested_data done [14:51:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92264,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:51:01]process_action_free close_receipt [14:51:01]json_value_free [14:51:01]json_value_free done [14:51:01]process_json_proto returns [14:51:01]Send response to host [14:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92264,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:51:01]free response buf [14:51:01]execute_script done [14:51:01]execute_script returns [14:51:01]free content buf [14:51:01]Sock 7.Close socket [14:51:01]Sock 7.Thread stoped [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:31]accept exits with 9 [14:59:31]New connection [14:59:31]New thread 3067129188 created [14:59:31]Thread 3066985828 joined [14:59:31]Waiting for new connection... [14:59:31] Sock 9.Parse request [14:59:31]Sock 9.Check first char [14:59:31]Sock 9.First char is OK [14:59:31]request: POST /json_proto HTTP/1.0 [14:59:31]Method: POST [14:59:31]URL: /json_proto [14:59:31]Method is POST - this is cgi request [14:59:31]url: /json_proto [14:59:31]query_string will be loaded in cgi processing [14:59:31]execute_cgi json_proto POST (null) [14:59:31]execute_cgi path=json_proto method=POST [14:59:31]POST find Content-Length [14:59:31]Host: 172.17.57.71:8080 [14:59:31]Content-Length: 869 [14:59:31]Content-Type: application/json [14:59:31] [14:59:31]POST finish read [14:59:31]Found Content-Length = 869 [14:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127197", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]execute_script... [14:59: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 : (3)127197", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]POST & json_proto [14:59:31]process_json_proto [14:59:31]json parsed OK: [14:59:31]protocol is kg_v1.0 [14:59:31]action value=close_receipt [14:59:31]process_action close_receipt [14:59:31]cmd_close_receipt [14:59:31]MH_GetDate [14:59:31]Write to MH i2c: F0 00 00 5F 02 50 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 5F 02 00 54 53 E4 66 33 3A A4 66 C1 [14:59:31]GetLastDocTimeStamp 1726239057 [14:59:31]current date 1726239572 [14:59:31]FM_GetShiftState [14:59:31]SAM_PROTO_GetShiftState [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 13 01 00 [14:59:31]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 6B [14:59:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_GetShiftState done [14:59:31]FM_GetShiftState done [14:59:31]opened in 1726186930 [14:59:31]opened+sec_in_day 1726273330 [14:59:31]quantity*price = 5000 [14:59:31]sum+1 = 5001 [14:59:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091621 Сигареты ESSE Exchange W 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 73 13.09.2024 14:59 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92265 ФПД: 258442166031244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T145932&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92265&fm=258442166031244&tin=02508201610067®Number=0000000000091423&sum=20000 0 [14:59:32]StoreToDocumentArchive [14:59:32]shift 505 fd 92265 [14:59:32]save to /storage/0505/doc_00092265 [14:59:32]save last doc name /storage/0505/doc_00092265 to /storage/kkm_last_doc_name [14:59:32]save OK [14:59:32]Clear old archive folders... [14:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=373 [14:59:32]tlvbuf is 010071A0 [14:59:32]SAM_PROTO_ClearQueue [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 09 00 00 [14:59:32]Write to MH i2c: E2 08 00 6D 02 80 09 00 00 00 00 00 00 E1 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_ClearQueue done [14:59:32]KKMCreateOFDPacket [14:59:32]OFDProtocolAddRootSTLVToBuf [14:59:32]FM_MakeSignedData [14:59:32]FM_MakeSignedData [14:59:32]SAM_PROTO_SignData [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 01 02 [14:59:32]Write to MH i2c: E2 08 00 6E 02 80 0D 01 02 00 00 00 00 E9 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [14:59:33]RAPDU: 90 00 [14:59:33]wFMCommunicate OK [14:59:33]wFMCommunicate request_size=255 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 [14:59:33]Write to MH i2c: E2 02 01 6F 02 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 00 00 51 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [14:59:33]RAPDU: 90 00 [14:59:33]wFMCommunicate OK [14:59:33]wFMCommunicate request_size=132 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 54 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 68 01 00 35 04 06 00 EB 0D 41 80 53 8C [14:59:33]Write to MH i2c: E2 87 00 70 02 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 54 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 68 01 00 35 04 06 00 EB 0D 41 80 53 8C 00 00 83 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [14:59:33]RAPDU: 90 00 [14:59:33]wFMCommunicate OK [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 0D 03 02 [14:59:33]Write to MH i2c: E2 08 00 71 02 80 0D 03 02 00 00 00 00 EE [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0B 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0B 00 71 02 00 14 B8 5D 55 31 DC 18 69 90 00 FB [14:59:33]RAPDU: 14 B8 5D 55 31 DC 18 69 90 00 [14:59:33]wFMCommunicate OK [14:59:33]SAM_PROTO_SignData done [14:59:33]FM_MakeSignedData done [14:59:33]CreateOFDProtocolMessage [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 11 00 00 [14:59:33]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 45 [14:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:59:33]wFMCommunicate OK [14:59:33]CreateOFDProtocolMessage done [14:59:33]OFDSenderStorePacket 92265 [14:59:33]StoreOFDPacket docnum=92265 [14:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 02 C3 81 01 30 C6 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 54 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 68 01 00 35 04 06 00 EB 0D 41 80 53 8C 14 B8 5D 55 31 DC 18 69 [14:59:33]CheckFolder [14:59:33]dirname=/storage/ofd_packets [14:59:33]CheckFolder done [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00092265 [14:59:33]NVStorageSaveData ofd_packets/00092265 [14:59:33]File name is /storage/ofd_packets/00092265 [14:59:33]Write 423 bytes [14:59:33]NVStorageSaveData done [14:59:33]OFDSenderStorePacket done [14:59:33]KKMCreateOFDPacket done [14:59:33]NVStorageSaveData kkm_last_timestamp [14:59:33]File name is /storage/kkm_last_timestamp [14:59:33]Write 4 bytes [14:59:33]NVStorageSaveData done [14:59:33]ExternCall_PrintAddStr [14:59:33]wPrintStart [14:59:33]Write to MH i2c: 01 00 00 73 02 75 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [14:59:33]RasterBufferAndPrint [14:59:33]line Счет N : (3)127197 [14:59:33]line ИНН: 02508201610067 [14:59:33]line Контрольно-Кассовый Чек [14:59:33]line ПРОДАЖА [14:59:33]line Товар: 4700000160358 [14:59:33]line Вода Легенда 1л [14:59:33]line 1.000 * 50.00 [14:59:33]line = 50.00 [14:59:33]line НДС 12% НСП 1% [14:59:33]line > о реализуемом товаре [14:59:33]line Товар: 4640030091621 [14:59:33]line Сигареты ESSE Exchange W [14:59:33]line 1.000 * 150.00 [14:59:33]line = 150.00 [14:59:33]line НДС 12% НСП 1% [14:59:33]line > о реализуемом товаре [14:59:33]line ИТОГО: 200.00 [14:59:33]line НСП 1% : 1.77 [14:59:33]line НДС 12% : 21.24 [14:59:33]line Наличными: 200.00 [14:59:33]line Безнал.: 0.00 [14:59:33]line Место: АЗС № 5 "Партнер Нефть" [14:59:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:59:33]line СНО: Общий режим [14:59:33]line Чек 73 13.09.2024 14:59 [14:59:33]line Смена: 505 ФФД: 1.0 [14:59:33]line ЗНМ: 03000000022 [14:59:33]line РНМ: 0000000000091423 [14:59:33]line Версия ККМ: 001 [14:59:33]line ФМ: 0000000000874692 [14:59:33]line ФД: 92265 [14:59:33]line ФПД: 258442166031244 [14:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T145932&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92265&fm=258442166031244&tin=02508201610067®Number=0000000000091423&sum=20000 [14:59:33]line 0 [14:59:33]OFD Sender: Processing packet 92265 [packets to send 63, broken 62] [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00092265 [14:59:33]OFD Sender: To server: pG, [14:59:33]CommunicateWithHost lk.salyk.kg:30040 [14:59:33]ConnectInit lk.salyk.kg [14:59:33]written 0, free lines is 4095 [14:59:34]Connected sock=10 [14:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 02 C3 81 01 30 C6 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 54 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 68 01 00 35 04 06 00 EB 0D 41 80 53 8C 14 B8 5D 55 31 DC 18 69 [14:59:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E9 91 47 00 64 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 34 36 39 32 10 04 04 00 69 68 01 00 F4 03 04 00 D3 FB E3 66 B6 04 01 00 00 1D 12 43 86 CB 70 6A 6E [14:59:34]CommunicateWithHost err = 0 [14:59:34]CheckOFDResponse [14:59:34]1017 (14) - 77093643461234 [14:59:34]1041 (16) - 0000000000874692 [14:59:34]1040 (4) - 92265 [14:59:34]1012 (4) - 13.09.2024 08:46 [14:59:34]1206 (1) - 0 [14:59:34]OFD Sender: Remove packet 92265 [14:59:34]ProducePacketName [14:59:34]name=ofd_packets/00092265 [14:59:34]NVStorageDeleteData [14:59:34]Write to MH i2c: 01 00 00 A1 02 A3 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 E8 0C 9E [14:59:34]RasterBufferAndPrint [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]written 0, free lines is 3310 [14:59:34]MH_Cut [14:59:34]Write to MH i2c: D1 01 00 A8 02 01 7C [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 01 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 01 00 A8 02 00 7B [14:59:34]Write to MH i2c: 01 00 00 A9 02 AB [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]OFD Sender: No OFD packet to send [14:59:35]*** Cut start [14:59:35]*** Purtial cut [14:59:35]*** Stage 1: CUTSNS_PIN = 1 [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]*** Stop cut motor [14:59:37]*** Cut end [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [14:59:37]process_action close_receipt done [14:59:37]requested_data is exist [14:59:37]produce_requested_data [14:59:37]requested_item fm.sn is exist - process it [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 11 00 00 [14:59:37]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [14:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:59:37]wFMCommunicate OK [14:59:37]requested_item fd.num is exist - process it [14:59:37]SAM_PROTO_GetFieldsCounters [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 00 00 [14:59:37]Write to MH i2c: E2 08 00 AB 02 80 13 00 00 00 00 00 00 29 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 62 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 62 00 AB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 69 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 69 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_GetFieldsCounters done [14:59:37]requested_item shift.num is exist - process it [14:59:37]requested_item shift.opened is exist - process it [14:59:37]req_shift_opened [14:59:37]FM_GetShiftState [14:59:37]SAM_PROTO_GetShiftState [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 01 00 [14:59:37]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B7 [14:59:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_GetShiftState done [14:59:37]FM_GetShiftState done [14:59:37]req_shift_opened done [14:59:37]requested_item shift.open_date is exist - process it [14:59:37]req_shift_open_date [14:59:37]req_shift_open_date done [14:59:37]produce_requested_data done [14:59:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92265,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [14:59:37]process_action_free close_receipt [14:59:37]json_value_free [14:59:37]json_value_free done [14:59:37]process_json_proto returns [14:59:37]Send response to host [14:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92265,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [14:59:37]free response buf [14:59:37]execute_script done [14:59:37]execute_script returns [14:59:37]free content buf [14:59:37]Sock 9.Close socket [14:59:37]Sock 9.Thread stoped [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:55]accept exits with 7 [15:00:55]New connection [15:00:55]New thread 3066985828 created [15:00:55]Thread 3067129188 joined [15:00:55]Waiting for new connection... [15:00:55] Sock 7.Parse request [15:00:55]Sock 7.Check first char [15:00:55]Sock 7.First char is OK [15:00:55]request: POST /json_proto HTTP/1.0 [15:00:55]Method: POST [15:00:55]URL: /json_proto [15:00:55]Method is POST - this is cgi request [15:00:55]url: /json_proto [15:00:55]query_string will be loaded in cgi processing [15:00:55]execute_cgi json_proto POST (null) [15:00:55]execute_cgi path=json_proto method=POST [15:00:55]POST find Content-Length [15:00:55]Host: 172.17.57.71:8080 [15:00:55]Content-Length: 656 [15:00:55]Content-Type: application/json [15:00:55] [15:00:55]POST finish read [15:00:55]Found Content-Length = 656 [15:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127198", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:55]execute_script... [15:00: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 : (3)127198", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:55]POST & json_proto [15:00:55]process_json_proto [15:00:55]json parsed OK: [15:00:55]protocol is kg_v1.0 [15:00:55]action value=close_receipt [15:00:55]process_action close_receipt [15:00:55]cmd_close_receipt [15:00:55]MH_GetDate [15:00:55]Write to MH i2c: F0 00 00 AD 02 9E [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: F0 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: F0 09 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: F0 09 00 AD 02 00 A8 53 E4 66 33 3A A4 66 63 [15:00:55]GetLastDocTimeStamp 1726239572 [15:00:55]current date 1726239656 [15:00:55]FM_GetShiftState [15:00:55]SAM_PROTO_GetShiftState [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 13 01 00 [15:00:55]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0E 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B9 [15:00:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:00:55]wFMCommunicate OK [15:00:55]SAM_PROTO_GetShiftState done [15:00:55]FM_GetShiftState done [15:00:55]opened in 1726186930 [15:00:55]opened+sec_in_day 1726273330 [15:00:55]quantity*price = 15400 [15:00:55]sum+1 = 15401 [15:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 74 13.09.2024 15:00 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92266 ФПД: 255214618686096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T150056&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92266&fm=255214618686096&tin=02508201610067®Number=0000000000091423&sum=15400 0 [15:00:56]StoreToDocumentArchive [15:00:56]shift 505 fd 92266 [15:00:56]save to /storage/0505/doc_00092266 [15:00:56]save last doc name /storage/0505/doc_00092266 to /storage/kkm_last_doc_name [15:00:56]save OK [15:00:56]Clear old archive folders... [15:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:00:56]tlvbuf is 01009920 [15:00:56]SAM_PROTO_ClearQueue [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 09 00 00 [15:00:56]Write to MH i2c: E2 08 00 BB 02 80 09 00 00 00 00 00 00 2F [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 03 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [15:00:56]RAPDU: 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_ClearQueue done [15:00:56]KKMCreateOFDPacket [15:00:56]OFDProtocolAddRootSTLVToBuf [15:00:56]FM_MakeSignedData [15:00:56]FM_MakeSignedData [15:00:56]SAM_PROTO_SignData [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 0D 01 02 [15:00:56]Write to MH i2c: E2 08 00 BC 02 80 0D 01 02 00 00 00 00 37 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 03 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [15:00:56]RAPDU: 90 00 [15:00:56]wFMCommunicate OK [15:00:56]wFMCommunicate request_size=255 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:00:56]Write to MH i2c: E2 02 01 BD 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 4F [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]wFMCommunicate request_size=52 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 68 01 00 35 04 06 00 E8 1D C8 B0 32 90 [15:00:57]Write to MH i2c: E2 37 00 BE 02 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 68 01 00 35 04 06 00 E8 1D C8 B0 32 90 00 00 0D [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 03 02 [15:00:57]Write to MH i2c: E2 08 00 BF 02 80 0D 03 02 00 00 00 00 3C [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0B 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0B 00 BF 02 00 E7 BF C3 72 65 DC F4 22 90 00 6F [15:00:57]RAPDU: E7 BF C3 72 65 DC F4 22 90 00 [15:00:57]wFMCommunicate OK [15:00:57]SAM_PROTO_SignData done [15:00:57]FM_MakeSignedData done [15:00:57]CreateOFDProtocolMessage [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 11 00 00 [15:00:57]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 17 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 93 [15:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:00:57]wFMCommunicate OK [15:00:57]CreateOFDProtocolMessage done [15:00:57]OFDSenderStorePacket 92266 [15:00:57]StoreOFDPacket docnum=92266 [15:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 56 7E 31 01 9A 89 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 68 01 00 35 04 06 00 E8 1D C8 B0 32 90 E7 BF C3 72 65 DC F4 22 [15:00:57]CheckFolder [15:00:57]dirname=/storage/ofd_packets [15:00:57]CheckFolder done [15:00:57]ProducePacketName [15:00:57]name=ofd_packets/00092266 [15:00:57]NVStorageSaveData ofd_packets/00092266 [15:00:57]File name is /storage/ofd_packets/00092266 [15:00:57]Write 343 bytes [15:00:57]NVStorageSaveData done [15:00:57]OFDSenderStorePacket done [15:00:57]KKMCreateOFDPacket done [15:00:57]NVStorageSaveData kkm_last_timestamp [15:00:57]File name is /storage/kkm_last_timestamp [15:00:57]Write 4 bytes [15:00:57]NVStorageSaveData done [15:00:57]ExternCall_PrintAddStr [15:00:57]wPrintStart [15:00:57]Write to MH i2c: 01 00 00 C1 02 C3 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 07 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 FF 0F D8 [15:00:57]RasterBufferAndPrint [15:00:57]line Счет N : (3)127198 [15:00:57]line ИНН: 02508201610067 [15:00:57]line Контрольно-Кассовый Чек [15:00:57]line ПРОДАЖА [15:00:57]line Товар: 4700000480050 [15:00:57]line Напиток Nitro Energy эн green ж/б 0,45л [15:00:57]line 2.000 * 77.00 [15:00:57]line = 154.00 [15:00:57]line НДС 12% НСП 1% [15:00:57]line > о реализуемом товаре [15:00:57]line ИТОГО: 154.00 [15:00:57]line НСП 1% : 1.36 [15:00:57]line НДС 12% : 16.35 [15:00:57]line Наличными: 154.00 [15:00:57]line Безнал.: 0.00 [15:00:57]line Место: АЗС № 5 "Партнер Нефть" [15:00:57]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:00:57]line СНО: Общий режим [15:00:57]line Чек 74 13.09.2024 15:00 [15:00:57]line Смена: 505 ФФД: 1.0 [15:00:57]line ЗНМ: 03000000022 [15:00:57]line РНМ: 0000000000091423 [15:00:57]line Версия ККМ: 001 [15:00:57]line ФМ: 0000000000874692 [15:00:57]line ФД: 92266 [15:00:57]line ФПД: 255214618686096 [15:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T150056&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92266&fm=255214618686096&tin=02508201610067®Number=0000000000091423&sum=15400 [15:00:57]OFD Sender: Processing packet 92266 [packets to send 63, broken 62] [15:00:57]ProducePacketName [15:00:57]name=ofd_packets/00092266 [15:00:57]OFD Sender: To server: pG, [15:00:57]CommunicateWithHost lk.salyk.kg:30040 [15:00:57]ConnectInit lk.salyk.kg [15:00:57]line 0 [15:00:57]written 0, free lines is 4095 [15:00:57]Connected sock=10 [15:00:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 56 7E 31 01 9A 89 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 53 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 68 01 00 35 04 06 00 E8 1D C8 B0 32 90 E7 BF C3 72 65 DC F4 22 [15:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 18 CA 47 00 53 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 68 01 00 F4 03 04 00 27 FC E3 66 B6 04 01 00 00 D0 14 EB C6 C8 21 26 4E [15:00:57]CommunicateWithHost err = 0 [15:00:57]CheckOFDResponse [15:00:57]1017 (14) - 77093643461234 [15:00:57]1041 (16) - 0000000000874692 [15:00:57]1040 (4) - 92266 [15:00:57]1012 (4) - 13.09.2024 08:47 [15:00:57]1206 (1) - 0 [15:00:57]OFD Sender: Remove packet 92266 [15:00:57]ProducePacketName [15:00:57]name=ofd_packets/00092266 [15:00:57]NVStorageDeleteData [15:00:58]Write to MH i2c: 01 00 00 EA 02 EC [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 15 0D 15 [15:00:58]RasterBufferAndPrint [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]written 0, free lines is 3358 [15:00:58]MH_Cut [15:00:58]Write to MH i2c: D1 01 00 F1 02 01 C5 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 01 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 01 00 F1 02 00 C4 [15:00:58]Write to MH i2c: 01 00 00 F2 02 F4 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]OFD Sender: No OFD packet to send [15:00:58]*** Cut start [15:00:58]*** Purtial cut [15:00:58]*** Stage 1: CUTSNS_PIN = 1 [15:01:00]Read from MH i2c: 01 [15:01:00]MH_I2C_Read... [15:01:00]*** Stop cut motor [15:01:00]*** Cut end [15:01:00]Read from MH i2c: 01 07 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [15:01:00]process_action close_receipt done [15:01:00]requested_data is exist [15:01:00]produce_requested_data [15:01:00]requested_item fm.sn is exist - process it [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 11 00 00 [15:01:00]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:00]Read from MH i2c: E2 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 17 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C6 [15:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:01:00]wFMCommunicate OK [15:01:00]requested_item fd.num is exist - process it [15:01:00]SAM_PROTO_GetFieldsCounters [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 13 00 00 [15:01:00]Write to MH i2c: E2 08 00 F4 02 80 13 00 00 00 00 00 00 72 [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:00]Read from MH i2c: E2 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 62 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 62 00 F4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [15: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:00]wFMCommunicate OK [15:01:00]SAM_PROTO_GetFieldsCounters done [15:01:00]requested_item shift.num is exist - process it [15:01:00]requested_item shift.opened is exist - process it [15:01:00]req_shift_opened [15:01:00]FM_GetShiftState [15:01:00]SAM_PROTO_GetShiftState [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 13 01 00 [15:01:00]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:01]Read from MH i2c: E2 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 0E 00 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 00 [15:01:01]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:01:01]wFMCommunicate OK [15:01:01]SAM_PROTO_GetShiftState done [15:01:01]FM_GetShiftState done [15:01:01]req_shift_opened done [15:01:01]requested_item shift.open_date is exist - process it [15:01:01]req_shift_open_date [15:01:01]req_shift_open_date done [15:01:01]produce_requested_data done [15:01:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92266,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:01:01]process_action_free close_receipt [15:01:01]json_value_free [15:01:01]json_value_free done [15:01:01]process_json_proto returns [15:01:01]Send response to host [15:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92266,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:01:01]free response buf [15:01:01]execute_script done [15:01:01]execute_script returns [15:01:01]free content buf [15:01:01]Sock 7.Close socket [15:01:01]Sock 7.Thread stoped [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [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:37]accept exits with 9 [15:17:37]New connection [15:17:37]New thread 3067129188 created [15:17:37]Thread 3066985828 joined [15:17:37]Waiting for new connection... [15:17:37] Sock 9.Parse request [15:17:37]Sock 9.Check first char [15:17:37]Sock 9.First char is OK [15:17:37]request: POST /json_proto HTTP/1.0 [15:17:37]Method: POST [15:17:37]URL: /json_proto [15:17:37]Method is POST - this is cgi request [15:17:37]url: /json_proto [15:17:37]query_string will be loaded in cgi processing [15:17:37]execute_cgi json_proto POST (null) [15:17:37]execute_cgi path=json_proto method=POST [15:17:37]POST find Content-Length [15:17:37]Host: 172.17.57.71:8080 [15:17:37]Content-Length: 900 [15:17:37]Content-Type: application/json [15:17:37] [15:17:37]POST finish read [15:17:37]Found Content-Length = 900 [15:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127199", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]execute_script... [15:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127199", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]POST & json_proto [15:17:37]process_json_proto [15:17:37]json parsed OK: [15:17:37]protocol is kg_v1.0 [15:17:37]action value=close_receipt [15:17:37]process_action close_receipt [15:17:37]cmd_close_receipt [15:17:37]MH_GetDate [15:17:37]Write to MH i2c: F0 00 00 F6 02 E7 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 F6 02 00 92 57 E4 66 33 3A A4 66 9A [15:17:37]GetLastDocTimeStamp 1726239656 [15:17:37]current date 1726240658 [15:17:37]FM_GetShiftState [15:17:37]SAM_PROTO_GetShiftState [15:17:37]wFMCommunicate request_size=4 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 13 01 00 [15:17:37]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 02 [15:17:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:17:37]wFMCommunicate OK [15:17:37]SAM_PROTO_GetShiftState done [15:17:37]FM_GetShiftState done [15:17:37]opened in 1726186930 [15:17:37]opened+sec_in_day 1726273330 [15:17:37]quantity*price = 15000 [15:17:37]sum+1 = 15001 [15:17:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 217.00 НСП 1% : 1.92 НДС 12% : 23.04 Наличными: 217.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 75 13.09.2024 15:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92267 ФПД: 193109708520479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T151738&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92267&fm=193109708520479&tin=02508201610067®Number=0000000000091423&sum=21700 0 [15:17:38]StoreToDocumentArchive [15:17:38]shift 505 fd 92267 [15:17:38]save to /storage/0505/doc_00092267 [15:17:38]save last doc name /storage/0505/doc_00092267 to /storage/kkm_last_doc_name [15:17:38]save OK [15:17:38]Clear old archive folders... [15:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=388 [15:17:38]tlvbuf is 01038A00 [15:17:38]SAM_PROTO_ClearQueue [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 09 00 00 [15:17:38]Write to MH i2c: E2 08 00 04 03 80 09 00 00 00 00 00 00 79 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [15:17:38]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_ClearQueue done [15:17:38]KKMCreateOFDPacket [15:17:38]OFDProtocolAddRootSTLVToBuf [15:17:38]FM_MakeSignedData [15:17:38]FM_MakeSignedData [15:17:38]SAM_PROTO_SignData [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 01 02 [15:17:38]Write to MH i2c: E2 08 00 05 03 80 0D 01 02 00 00 00 00 81 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=255 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [15:17:39]Write to MH i2c: E2 02 01 06 03 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 1E [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=147 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 02 02 8E F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 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 92 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 68 01 00 35 04 06 00 AF A1 DB 94 3C 1F [15:17:39]Write to MH i2c: E2 96 00 07 03 80 0D 02 02 8E 00 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 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 92 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 68 01 00 35 04 06 00 AF A1 DB 94 3C 1F 00 00 12 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]OFD Sender: No OFD packet to send [15:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 03 02 [15:17:39]Write to MH i2c: E2 08 00 08 03 80 0D 03 02 00 00 00 00 86 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 0B 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 0B 00 08 03 00 21 E9 39 13 38 D3 4E 08 90 00 3E [15:17:39]RAPDU: 21 E9 39 13 38 D3 4E 08 90 00 [15:17:39]wFMCommunicate OK [15:17:39]SAM_PROTO_SignData done [15:17:39]FM_MakeSignedData done [15:17:39]CreateOFDProtocolMessage [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 11 00 00 [15:17:39]Write to MH i2c: E2 08 00 09 03 80 11 00 00 00 00 00 00 86 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 17 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 17 00 09 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [15:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:17:39]wFMCommunicate OK [15:17:39]CreateOFDProtocolMessage done [15:17:39]OFDSenderStorePacket 92267 [15:17:39]StoreOFDPacket docnum=92267 [15:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 99 01 90 01 6E 64 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 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 92 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 68 01 00 35 04 06 00 AF A1 DB 94 3C 1F 21 E9 39 13 38 D3 4E 08 [15:17:39]CheckFolder [15:17:39]dirname=/storage/ofd_packets [15:17:39]CheckFolder done [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00092267 [15:17:39]NVStorageSaveData ofd_packets/00092267 [15:17:39]File name is /storage/ofd_packets/00092267 [15:17:39]Write 438 bytes [15:17:39]NVStorageSaveData done [15:17:39]OFDSenderStorePacket done [15:17:39]KKMCreateOFDPacket done [15:17:39]NVStorageSaveData kkm_last_timestamp [15:17:39]File name is /storage/kkm_last_timestamp [15:17:39]Write 4 bytes [15:17:39]NVStorageSaveData done [15:17:39]ExternCall_PrintAddStr [15:17:39]wPrintStart [15:17:39]Write to MH i2c: 01 00 00 0A 03 0D [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [15:17:39]RasterBufferAndPrint [15:17:39]line Счет N : (3)127199 [15:17:39]line ИНН: 02508201610067 [15:17:39]line Контрольно-Кассовый Чек [15:17:39]line ПРОДАЖА [15:17:39]line Товар: 4640030091645 [15:17:39]line Сигареты ESSE Exchange M [15:17:39]line 1.000 * 150.00 [15:17:39]line = 150.00 [15:17:39]line НДС 12% НСП 1% [15:17:39]line > о реализуемом товаре [15:17:39]line Товар: 8710732217097 [15:17:39]line Зажигалка Cricket ПН пьезо [15:17:39]line 1.000 * 67.00 [15:17:39]line = 67.00 [15:17:39]line НДС 12% НСП 1% [15:17:39]line > о реализуемом товаре [15:17:39]line ИТОГО: 217.00 [15:17:39]line НСП 1% : 1.92 [15:17:39]line НДС 12% : 23.04 [15:17:39]line Наличными: 217.00 [15:17:39]line Безнал.: 0.00 [15:17:39]line Место: АЗС № 5 "Партнер Нефть" [15:17:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:17:39]line СНО: Общий режим [15:17:39]line Чек 75 13.09.2024 15:17 [15:17:39]line Смена: 505 ФФД: 1.0 [15:17:39]line ЗНМ: 03000000022 [15:17:39]line РНМ: 0000000000091423 [15:17:39]line Версия ККМ: 001 [15:17:39]line ФМ: 0000000000874692 [15:17:39]line ФД: 92267 [15:17:39]line ФПД: 193109708520479 [15:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T151738&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92267&fm=193109708520479&tin=02508201610067®Number=0000000000091423&sum=21700 [15:17:39]OFD Sender: Processing packet 92267 [packets to send 63, broken 62] [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00092267 [15:17:39]OFD Sender: To server: pG, [15:17:39]CommunicateWithHost lk.salyk.kg:30040 [15:17:39]ConnectInit lk.salyk.kg [15:17:39]line 0 [15:17:39]written 0, free lines is 4095 [15:17:39]Connected sock=10 [15:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 99 01 90 01 6E 64 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 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 92 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 68 01 00 35 04 06 00 AF A1 DB 94 3C 1F 21 E9 39 13 38 D3 4E 08 [15:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 32 92 47 00 E0 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 68 01 00 F4 03 04 00 11 00 E4 66 B6 04 01 00 00 9B 9B 8E CC B3 C6 34 25 [15:17:40]CommunicateWithHost err = 0 [15:17:40]CheckOFDResponse [15:17:40]1017 (14) - 77093643461234 [15:17:40]1041 (16) - 0000000000874692 [15:17:40]1040 (4) - 92267 [15:17:40]1012 (4) - 13.09.2024 09:04 [15:17:40]1206 (1) - 0 [15:17:40]OFD Sender: Remove packet 92267 [15:17:40]ProducePacketName [15:17:40]name=ofd_packets/00092267 [15:17:40]NVStorageDeleteData [15:17:40]Write to MH i2c: 01 00 00 38 03 3B [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 D8 0C 26 [15:17:40]RasterBufferAndPrint [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]written 0, free lines is 3298 [15:17:40]MH_Cut [15:17:40]Write to MH i2c: D1 01 00 3F 03 01 14 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 01 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 01 00 3F 03 00 13 [15:17:40]Write to MH i2c: 01 00 00 40 03 43 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]OFD Sender: No OFD packet to send [15:17:41]*** Cut start [15:17:41]*** Purtial cut [15:17:41]*** Stage 1: CUTSNS_PIN = 1 [15:17:43]Read from MH i2c: 01 [15:17:43]MH_I2C_Read... [15:17:43]*** Stop cut motor [15:17:43]*** Cut end [15:17:43]Read from MH i2c: 01 07 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [15:17:43]process_action close_receipt done [15:17:43]requested_data is exist [15:17:43]produce_requested_data [15:17:43]requested_item fm.sn is exist - process it [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 11 00 00 [15:17:43]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [15:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:17:43]wFMCommunicate OK [15:17:43]requested_item fd.num is exist - process it [15:17:43]SAM_PROTO_GetFieldsCounters [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 13 00 00 [15:17:43]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 62 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 62 00 42 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [15:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_GetFieldsCounters done [15:17:43]requested_item shift.num is exist - process it [15:17:43]requested_item shift.opened is exist - process it [15:17:43]req_shift_opened [15:17:43]FM_GetShiftState [15:17:43]SAM_PROTO_GetShiftState [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 13 01 00 [15:17:43]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0E 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 4F [15:17:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_GetShiftState done [15:17:43]FM_GetShiftState done [15:17:43]req_shift_opened done [15:17:43]requested_item shift.open_date is exist - process it [15:17:43]req_shift_open_date [15:17:43]req_shift_open_date done [15:17:43]produce_requested_data done [15:17:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92267,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:17:43]process_action_free close_receipt [15:17:43]json_value_free [15:17:43]json_value_free done [15:17:43]process_json_proto returns [15:17:43]Send response to host [15:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92267,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:17:43]free response buf [15:17:43]execute_script done [15:17:43]execute_script returns [15:17:43]free content buf [15:17:43]Sock 9.Close socket [15:17:43]Sock 9.Thread stoped [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:21]accept exits with 7 [15:18:21]New connection [15:18:21]New thread 3066985828 created [15:18:21]Thread 3067129188 joined [15:18:21]Waiting for new connection... [15:18:21] Sock 7.Parse request [15:18:21]Sock 7.Check first char [15:18:21]Sock 7.First char is OK [15:18:21]request: POST /json_proto HTTP/1.0 [15:18:21]Method: POST [15:18:21]URL: /json_proto [15:18:21]Method is POST - this is cgi request [15:18:21]url: /json_proto [15:18:21]query_string will be loaded in cgi processing [15:18:21]execute_cgi json_proto POST (null) [15:18:21]execute_cgi path=json_proto method=POST [15:18:21]POST find Content-Length [15:18:21]Host: 172.17.57.71:8080 [15:18:21]Content-Length: 599 [15:18:21]Content-Type: application/json [15:18:21] [15:18:21]POST finish read [15:18:21]Found Content-Length = 599 [15:18:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127200", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:21]execute_script... [15:18: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 : (3)127200", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:21]POST & json_proto [15:18:21]process_json_proto [15:18:21]json parsed OK: [15:18:21]protocol is kg_v1.0 [15:18:21]action value=close_receipt [15:18:21]process_action close_receipt [15:18:21]cmd_close_receipt [15:18:21]MH_GetDate [15:18:21]Write to MH i2c: F0 00 00 44 03 36 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: F0 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: F0 09 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: F0 09 00 44 03 00 BE 57 E4 66 33 3A A4 66 15 [15:18:21]GetLastDocTimeStamp 1726240658 [15:18:21]current date 1726240702 [15:18:21]FM_GetShiftState [15:18:21]SAM_PROTO_GetShiftState [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 13 01 00 [15:18:21]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0E 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 51 [15:18:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:18:21]wFMCommunicate OK [15:18:21]SAM_PROTO_GetShiftState done [15:18:21]FM_GetShiftState done [15:18:21]opened in 1726186930 [15:18:21]opened+sec_in_day 1726273330 [15:18:21]quantity*price = 4500 [15:18:21]sum+1 = 4501 [15:18:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 76 13.09.2024 15:18 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92268 ФПД: 197476292965913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T151822&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92268&fm=197476292965913&tin=02508201610067®Number=0000000000091423&sum=4500 0 [15:18:22]StoreToDocumentArchive [15:18:22]shift 505 fd 92268 [15:18:22]save to /storage/0505/doc_00092268 [15:18:22]save last doc name /storage/0505/doc_00092268 to /storage/kkm_last_doc_name [15:18:22]save OK [15:18:22]Clear old archive folders... [15:18:22]ProcessDocumentItem done err = 0, tmpTLVsize=262 [15:18:22]tlvbuf is 010202A0 [15:18:22]SAM_PROTO_ClearQueue [15:18:22]wFMCommunicate request_size=4 [15:18:22]MH_SAM_APDU [15:18:22]CAPDU: 80 09 00 00 [15:18:22]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:22]Read from MH i2c: E2 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: E2 03 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [15:18:22]RAPDU: 90 00 [15:18:22]wFMCommunicate OK [15:18:22]SAM_PROTO_ClearQueue done [15:18:22]KKMCreateOFDPacket [15:18:22]OFDProtocolAddRootSTLVToBuf [15:18:22]FM_MakeSignedData [15:18:22]FM_MakeSignedData [15:18:22]SAM_PROTO_SignData [15:18:22]wFMCommunicate request_size=4 [15:18:22]MH_SAM_APDU [15:18:22]CAPDU: 80 0D 01 02 [15:18:22]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:22]Read from MH i2c: E2 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: E2 03 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [15:18:22]RAPDU: 90 00 [15:18:22]wFMCommunicate OK [15:18:22]wFMCommunicate request_size=255 [15:18:22]MH_SAM_APDU [15:18:22]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 BE 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 [15:18:22]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 BE 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 00 00 88 [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 03 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [15:18:23]RAPDU: 90 00 [15:18:23]wFMCommunicate OK [15:18:23]wFMCommunicate request_size=21 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 0D 02 02 10 04 00 6C 68 01 00 35 04 06 00 B3 9A 88 4B 36 19 [15:18:23]Write to MH i2c: E2 18 00 55 03 80 0D 02 02 10 00 04 00 6C 68 01 00 35 04 06 00 B3 9A 88 4B 36 19 00 00 79 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 03 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [15:18:23]RAPDU: 90 00 [15:18:23]wFMCommunicate OK [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 0D 03 02 [15:18:23]Write to MH i2c: E2 08 00 56 03 80 0D 03 02 00 00 00 00 D4 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0B 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0B 00 56 03 00 75 B9 CD 97 40 83 C6 71 90 00 61 [15:18:23]RAPDU: 75 B9 CD 97 40 83 C6 71 90 00 [15:18:23]wFMCommunicate OK [15:18:23]SAM_PROTO_SignData done [15:18:23]FM_MakeSignedData done [15:18:23]CreateOFDProtocolMessage [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 11 00 00 [15:18:23]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2B [15:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:18:23]wFMCommunicate OK [15:18:23]CreateOFDProtocolMessage done [15:18:23]OFDSenderStorePacket 92268 [15:18:23]StoreOFDPacket docnum=92268 [15:18:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 CC F1 12 01 58 DE 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 BE 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 68 01 00 35 04 06 00 B3 9A 88 4B 36 19 75 B9 CD 97 40 83 C6 71 [15:18:23]CheckFolder [15:18:23]dirname=/storage/ofd_packets [15:18:23]CheckFolder done [15:18:23]ProducePacketName [15:18:23]name=ofd_packets/00092268 [15:18:23]NVStorageSaveData ofd_packets/00092268 [15:18:23]File name is /storage/ofd_packets/00092268 [15:18:23]Write 312 bytes [15:18:23]NVStorageSaveData done [15:18:23]OFDSenderStorePacket done [15:18:23]KKMCreateOFDPacket done [15:18:23]NVStorageSaveData kkm_last_timestamp [15:18:23]File name is /storage/kkm_last_timestamp [15:18:23]Write 4 bytes [15:18:23]NVStorageSaveData done [15:18:23]ExternCall_PrintAddStr [15:18:23]wPrintStart [15:18:23]Write to MH i2c: 01 00 00 58 03 5B [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: 01 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: 01 07 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [15:18:23]RasterBufferAndPrint [15:18:23]line Счет N : (3)127200 [15:18:23]line ИНН: 02508201610067 [15:18:23]line Контрольно-Кассовый Чек [15:18:23]line ПРОДАЖА [15:18:23]line Товар: 40099484 [15:18:23]line Жев Orbit White под [15:18:23]line 1.000 * 45.00 [15:18:23]line = 45.00 [15:18:23]line НДС 12% НСП 1% [15:18:23]line > о реализуемом товаре [15:18:23]line ИТОГО: 45.00 [15:18:23]line НСП 1% : 0.40 [15:18:23]line НДС 12% : 4.78 [15:18:23]line Наличными: 45.00 [15:18:23]line Безнал.: 0.00 [15:18:23]line Место: АЗС № 5 "Партнер Нефть" [15:18:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:18:23]line СНО: Общий режим [15:18:23]line Чек 76 13.09.2024 15:18 [15:18:23]line Смена: 505 ФФД: 1.0 [15:18:23]line ЗНМ: 03000000022 [15:18:23]line РНМ: 0000000000091423 [15:18:23]line Версия ККМ: 001 [15:18:23]line ФМ: 0000000000874692 [15:18:23]line ФД: 92268 [15:18:23]line ФПД: 197476292965913 [15:18:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T151822&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92268&fm=197476292965913&tin=02508201610067®Number=0000000000091423&sum=4500 [15:18:23]line 0 [15:18:23]OFD Sender: Processing packet 92268 [packets to send 63, broken 62] [15:18:23]ProducePacketName [15:18:23]name=ofd_packets/00092268 [15:18:23]OFD Sender: To server: pG, [15:18:23]CommunicateWithHost lk.salyk.kg:30040 [15:18:23]ConnectInit lk.salyk.kg [15:18:23]written 0, free lines is 4095 [15:18:23]Connected sock=11 [15: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 34 36 39 32 1A 01 00 00 CC F1 12 01 58 DE 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 BE 57 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 68 01 00 35 04 06 00 B3 9A 88 4B 36 19 75 B9 CD 97 40 83 C6 71 [15:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7F 98 47 00 B3 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 68 01 00 F4 03 04 00 3D 00 E4 66 B6 04 01 00 00 A4 F9 6F B5 5E 9B A8 B8 [15:18:23]CommunicateWithHost err = 0 [15:18:23]CheckOFDResponse [15:18:23]1017 (14) - 77093643461234 [15:18:23]1041 (16) - 0000000000874692 [15:18:23]1040 (4) - 92268 [15:18:23]1012 (4) - 13.09.2024 09:05 [15:18:23]1206 (1) - 0 [15:18:23]OFD Sender: Remove packet 92268 [15:18:23]ProducePacketName [15:18:23]name=ofd_packets/00092268 [15:18:23]NVStorageDeleteData [15:18:24]Write to MH i2c: 01 00 00 80 03 83 [15:18:24]Write i2c OK [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: 01 [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: 01 07 00 [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 18 0D AF [15:18:24]RasterBufferAndPrint [15:18:24]line [15:18:24]line [15:18:24]line [15:18:24]line [15:18:24]line [15:18:24]written 0, free lines is 3359 [15:18:24]MH_Cut [15:18:24]Write to MH i2c: D1 01 00 87 03 01 5C [15:18:24]Write i2c OK [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: D1 [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: D1 01 00 [15:18:24]MH_I2C_Read... [15:18:24]Read from MH i2c: D1 01 00 87 03 00 5B [15:18:24]Write to MH i2c: 01 00 00 88 03 8B [15:18:24]Write i2c OK [15:18:24]MH_I2C_Read... [15:18:24]OFD Sender: No OFD packet to send [15:18:24]*** Cut start [15:18:24]*** Purtial cut [15:18:24]*** Stage 1: CUTSNS_PIN = 1 [15:18:26]Read from MH i2c: 01 [15:18:26]MH_I2C_Read... [15:18:26]*** Stop cut motor [15:18:26]*** Cut end [15:18:26]Read from MH i2c: 01 07 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FF 0F A0 [15:18:26]process_action close_receipt done [15:18:26]requested_data is exist [15:18:26]produce_requested_data [15:18:26]requested_item fm.sn is exist - process it [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 11 00 00 [15:18:26]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 17 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5D [15:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:18:26]wFMCommunicate OK [15:18:26]requested_item fd.num is exist - process it [15:18:26]SAM_PROTO_GetFieldsCounters [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 00 00 [15:18:26]Write to MH i2c: E2 08 00 8A 03 80 13 00 00 00 00 00 00 09 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 62 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 62 00 8A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [15:18:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:26]wFMCommunicate OK [15:18:26]SAM_PROTO_GetFieldsCounters done [15:18:26]requested_item shift.num is exist - process it [15:18:26]requested_item shift.opened is exist - process it [15:18:26]req_shift_opened [15:18:26]FM_GetShiftState [15:18:26]SAM_PROTO_GetShiftState [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 01 00 [15:18:26]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0E 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 97 [15:18:27]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_GetShiftState done [15:18:27]FM_GetShiftState done [15:18:27]req_shift_opened done [15:18:27]requested_item shift.open_date is exist - process it [15:18:27]req_shift_open_date [15:18:27]req_shift_open_date done [15:18:27]produce_requested_data done [15:18:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92268,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:18:27]process_action_free close_receipt [15:18:27]json_value_free [15:18:27]json_value_free done [15:18:27]process_json_proto returns [15:18:27]Send response to host [15:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92268,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:18:27]free response buf [15:18:27]execute_script done [15:18:27]execute_script returns [15:18:27]free content buf [15:18:27]Sock 7.Close socket [15:18:27]Sock 7.Thread stoped [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:03]accept exits with 9 [15:28:03]New connection [15:28:03]New thread 3067129188 created [15:28:03]Thread 3066985828 joined [15:28:03]Waiting for new connection... [15:28:03] Sock 9.Parse request [15:28:03]Sock 9.Check first char [15:28:03]Sock 9.First char is OK [15:28:03]request: POST /json_proto HTTP/1.0 [15:28:03]Method: POST [15:28:03]URL: /json_proto [15:28:03]Method is POST - this is cgi request [15:28:03]url: /json_proto [15:28:03]query_string will be loaded in cgi processing [15:28:03]execute_cgi json_proto POST (null) [15:28:03]execute_cgi path=json_proto method=POST [15:28:03]POST find Content-Length [15:28:03]Host: 172.17.57.71:8080 [15:28:03]Content-Length: 654 [15:28:03]Content-Type: application/json [15:28:03] [15:28:03]POST finish read [15:28:03]Found Content-Length = 654 [15:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127201", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:03]execute_script... [15:28: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 : (3)127201", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:03]POST & json_proto [15:28:03]process_json_proto [15:28:03]json parsed OK: [15:28:03]protocol is kg_v1.0 [15:28:03]action value=close_receipt [15:28:03]process_action close_receipt [15:28:03]cmd_close_receipt [15:28:03]MH_GetDate [15:28:03]Write to MH i2c: F0 00 00 8C 03 7E [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 09 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 09 00 8C 03 00 04 5A E4 66 33 3A A4 66 A6 [15:28:03]GetLastDocTimeStamp 1726240702 [15:28:03]current date 1726241284 [15:28:03]FM_GetShiftState [15:28:03]SAM_PROTO_GetShiftState [15:28:03]wFMCommunicate request_size=4 [15:28:03]MH_SAM_APDU [15:28:03]CAPDU: 80 13 01 00 [15:28:03]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 99 [15:28:03]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:28:03]wFMCommunicate OK [15:28:03]SAM_PROTO_GetShiftState done [15:28:03]FM_GetShiftState done [15:28:03]opened in 1726186930 [15:28:03]opened+sec_in_day 1726273330 [15:28:03]quantity*price = 4900 [15:28:03]sum+1 = 4901 [15:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 77 13.09.2024 15:28 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92269 ФПД: 214764101465359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T152804&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92269&fm=214764101465359&tin=02508201610067®Number=0000000000091423&sum=4900 0 [15:28:04]StoreToDocumentArchive [15:28:04]shift 505 fd 92269 [15:28:04]save to /storage/0505/doc_00092269 [15:28:04]save last doc name /storage/0505/doc_00092269 to /storage/kkm_last_doc_name [15:28:04]save OK [15:28:04]Clear old archive folders... [15:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:28:04]tlvbuf is 01020040 [15:28:04]SAM_PROTO_ClearQueue [15:28:04]wFMCommunicate request_size=4 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 09 00 00 [15:28:04]Write to MH i2c: E2 08 00 9A 03 80 09 00 00 00 00 00 00 0F [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:04]Read from MH i2c: E2 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 03 00 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [15:28:04]RAPDU: 90 00 [15:28:04]wFMCommunicate OK [15:28:04]SAM_PROTO_ClearQueue done [15:28:04]KKMCreateOFDPacket [15:28:04]OFDProtocolAddRootSTLVToBuf [15:28:04]FM_MakeSignedData [15:28:04]FM_MakeSignedData [15:28:04]SAM_PROTO_SignData [15:28:04]wFMCommunicate request_size=4 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 0D 01 02 [15:28:04]Write to MH i2c: E2 08 00 9B 03 80 0D 01 02 00 00 00 00 17 [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:04]Read from MH i2c: E2 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 03 00 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [15:28:04]RAPDU: 90 00 [15:28:04]wFMCommunicate OK [15:28:04]wFMCommunicate request_size=255 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 5A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:28:04]Write to MH i2c: E2 02 01 9C 03 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 5A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 CC [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:05]OFD Sender: No OFD packet to send [15:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]wFMCommunicate request_size=48 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 02 02 2B 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 68 01 00 35 04 06 00 C3 53 A9 FA 75 0F [15:28:05]Write to MH i2c: E2 33 00 9D 03 80 0D 02 02 2B 00 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 68 01 00 35 04 06 00 C3 53 A9 FA 75 0F 00 00 26 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 03 02 [15:28:05]Write to MH i2c: E2 08 00 9E 03 80 0D 03 02 00 00 00 00 1C [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0B 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0B 00 9E 03 00 95 B9 F1 EB 0D A1 B0 28 90 00 CD [15:28:05]RAPDU: 95 B9 F1 EB 0D A1 B0 28 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_SignData done [15:28:05]FM_MakeSignedData done [15:28:05]CreateOFDProtocolMessage [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 11 00 00 [15:28:05]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 73 [15:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:28:05]wFMCommunicate OK [15:28:05]CreateOFDProtocolMessage done [15:28:05]OFDSenderStorePacket 92269 [15:28:05]StoreOFDPacket docnum=92269 [15:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 10 A4 2D 01 02 67 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 5A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 68 01 00 35 04 06 00 C3 53 A9 FA 75 0F 95 B9 F1 EB 0D A1 B0 28 [15:28:05]CheckFolder [15:28:05]dirname=/storage/ofd_packets [15:28:05]CheckFolder done [15:28:05]ProducePacketName [15:28:05]name=ofd_packets/00092269 [15:28:05]NVStorageSaveData ofd_packets/00092269 [15:28:05]File name is /storage/ofd_packets/00092269 [15:28:05]Write 339 bytes [15:28:05]NVStorageSaveData done [15:28:05]OFDSenderStorePacket done [15:28:05]KKMCreateOFDPacket done [15:28:05]NVStorageSaveData kkm_last_timestamp [15:28:05]File name is /storage/kkm_last_timestamp [15:28:05]Write 4 bytes [15:28:05]NVStorageSaveData done [15:28:05]ExternCall_PrintAddStr [15:28:05]wPrintStart [15:28:05]Write to MH i2c: 01 00 00 A0 03 A3 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 07 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [15:28:05]RasterBufferAndPrint [15:28:05]line Счет N : (3)127201 [15:28:05]line ИНН: 02508201610067 [15:28:05]line Контрольно-Кассовый Чек [15:28:05]line ПРОДАЖА [15:28:05]line Товар: 46214638 [15:28:05]line Р/ж mentos p.white нежная мята 16/15,5г [15:28:05]line 1.000 * 49.00 [15:28:05]line = 49.00 [15:28:05]line НДС 12% НСП 1% [15:28:05]line > о реализуемом товаре [15:28:05]line ИТОГО: 49.00 [15:28:05]line НСП 1% : 0.43 [15:28:05]line НДС 12% : 5.20 [15:28:05]line Наличными: 49.00 [15:28:05]line Безнал.: 0.00 [15:28:05]line Место: АЗС № 5 "Партнер Нефть" [15:28:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:28:05]line СНО: Общий режим [15:28:05]line Чек 77 13.09.2024 15:28 [15:28:05]line Смена: 505 ФФД: 1.0 [15:28:05]line ЗНМ: 03000000022 [15:28:05]line РНМ: 0000000000091423 [15:28:05]line Версия ККМ: 001 [15:28:05]line ФМ: 0000000000874692 [15:28:05]line ФД: 92269 [15:28:05]line ФПД: 214764101465359 [15:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T152804&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92269&fm=214764101465359&tin=02508201610067®Number=0000000000091423&sum=4900 [15:28:05]line 0 [15:28:05]OFD Sender: Processing packet 92269 [packets to send 63, broken 62] [15:28:05]ProducePacketName [15:28:05]name=ofd_packets/00092269 [15:28:05]OFD Sender: To server: pG, [15:28:05]CommunicateWithHost lk.salyk.kg:30040 [15:28:05]ConnectInit lk.salyk.kg [15:28:05]written 0, free lines is 4095 [15:28:05]Connected sock=10 [15:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 01 00 00 10 A4 2D 01 02 67 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 5A E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 68 01 00 35 04 06 00 C3 53 A9 FA 75 0F 95 B9 F1 EB 0D A1 B0 28 [15:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CF 41 47 00 74 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 68 01 00 F4 03 04 00 83 02 E4 66 B6 04 01 00 00 4A 1B A3 BE 5C 25 6D 0D [15:28:05]CommunicateWithHost err = 0 [15:28:05]CheckOFDResponse [15:28:05]1017 (14) - 77093643461234 [15:28:05]1041 (16) - 0000000000874692 [15:28:05]1040 (4) - 92269 [15:28:05]1012 (4) - 13.09.2024 09:14 [15:28:05]1206 (1) - 0 [15:28:05]OFD Sender: Remove packet 92269 [15:28:05]ProducePacketName [15:28:05]name=ofd_packets/00092269 [15:28:05]NVStorageDeleteData [15:28:06]Write to MH i2c: 01 00 00 C9 03 CC [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 08 0D E8 [15:28:06]RasterBufferAndPrint [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]written 0, free lines is 3344 [15:28:06]MH_Cut [15:28:06]Write to MH i2c: D1 01 00 D0 03 01 A5 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 01 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 01 00 D0 03 00 A4 [15:28:06]Write to MH i2c: 01 00 00 D1 03 D4 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]OFD Sender: No OFD packet to send [15:28:06]*** Cut start [15:28:06]*** Purtial cut [15:28:06]*** Stage 1: CUTSNS_PIN = 1 [15:28:08]Read from MH i2c: 01 [15:28:08]MH_I2C_Read... [15:28:08]*** Stop cut motor [15:28:08]*** Cut end [15:28:08]Read from MH i2c: 01 07 00 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [15:28:08]process_action close_receipt done [15:28:08]requested_data is exist [15:28:08]produce_requested_data [15:28:08]requested_item fm.sn is exist - process it [15:28:08]wFMCommunicate request_size=4 [15:28:08]MH_SAM_APDU [15:28:08]CAPDU: 80 11 00 00 [15:28:08]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [15:28:08]Write i2c OK [15:28:08]MH_I2C_Read... [15:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:08]Read from MH i2c: E2 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 17 00 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A6 [15:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:28:08]wFMCommunicate OK [15:28:08]requested_item fd.num is exist - process it [15:28:08]SAM_PROTO_GetFieldsCounters [15:28:08]wFMCommunicate request_size=4 [15:28:08]MH_SAM_APDU [15:28:08]CAPDU: 80 13 00 00 [15:28:08]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [15:28:08]Write i2c OK [15:28:08]MH_I2C_Read... [15:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:08]Read from MH i2c: E2 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 62 00 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 62 00 D3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:08]wFMCommunicate OK [15:28:08]SAM_PROTO_GetFieldsCounters done [15:28:08]requested_item shift.num is exist - process it [15:28:08]requested_item shift.opened is exist - process it [15:28:08]req_shift_opened [15:28:08]FM_GetShiftState [15:28:08]SAM_PROTO_GetShiftState [15:28:08]wFMCommunicate request_size=4 [15:28:08]MH_SAM_APDU [15:28:08]CAPDU: 80 13 01 00 [15:28:08]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [15:28:08]Write i2c OK [15:28:08]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E0 [15:28:09]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_GetShiftState done [15:28:09]FM_GetShiftState done [15:28:09]req_shift_opened done [15:28:09]requested_item shift.open_date is exist - process it [15:28:09]req_shift_open_date [15:28:09]req_shift_open_date done [15:28:09]produce_requested_data done [15:28:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92269,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:28:09]process_action_free close_receipt [15:28:09]json_value_free [15:28:09]json_value_free done [15:28:09]process_json_proto returns [15:28:09]Send response to host [15:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92269,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:28:09]free response buf [15:28:09]execute_script done [15:28:09]execute_script returns [15:28:09]free content buf [15:28:09]Sock 9.Close socket [15:28:09]Sock 9.Thread stoped [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:42]accept exits with 7 [15:33:42]New connection [15:33:42]New thread 3066985828 created [15:33:42]Thread 3067129188 joined [15:33:42]Waiting for new connection... [15:33:42] Sock 7.Parse request [15:33:42]Sock 7.Check first char [15:33:42]Sock 7.First char is OK [15:33:42]request: POST /json_proto HTTP/1.0 [15:33:42]Method: POST [15:33:42]URL: /json_proto [15:33:42]Method is POST - this is cgi request [15:33:42]url: /json_proto [15:33:42]query_string will be loaded in cgi processing [15:33:42]execute_cgi json_proto POST (null) [15:33:42]execute_cgi path=json_proto method=POST [15:33:42]POST find Content-Length [15:33:42]Host: 172.17.57.71:8080 [15:33:42]Content-Length: 655 [15:33:42]Content-Type: application/json [15:33:42] [15:33:42]POST finish read [15:33:42]Found Content-Length = 655 [15:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127202", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:42]execute_script... [15:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127202", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:42]POST & json_proto [15:33:42]process_json_proto [15:33:42]json parsed OK: [15:33:42]protocol is kg_v1.0 [15:33:42]action value=close_receipt [15:33:42]process_action close_receipt [15:33:42]cmd_close_receipt [15:33:42]MH_GetDate [15:33:42]Write to MH i2c: F0 00 00 D5 03 C7 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 09 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 09 00 D5 03 00 57 5B E4 66 33 3A A4 66 43 [15:33:42]GetLastDocTimeStamp 1726241284 [15:33:42]current date 1726241623 [15:33:42]FM_GetShiftState [15:33:42]SAM_PROTO_GetShiftState [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 13 01 00 [15:33:42]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0E 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E2 [15:33:42]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_GetShiftState done [15:33:42]FM_GetShiftState done [15:33:42]opened in 1726186930 [15:33:42]opened+sec_in_day 1726273330 [15:33:42]quantity*price = 8500 [15:33:42]sum+1 = 8501 [15:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 78 13.09.2024 15:33 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92270 ФПД: 131730880236232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T153343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92270&fm=131730880236232&tin=02508201610067®Number=0000000000091423&sum=8500 0 [15:33:43]StoreToDocumentArchive [15:33:43]shift 505 fd 92270 [15:33:43]save to /storage/0505/doc_00092270 [15:33:43]save last doc name /storage/0505/doc_00092270 to /storage/kkm_last_doc_name [15:33:43]save OK [15:33:43]Clear old archive folders... [15:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:33:43]tlvbuf is 0101FDE0 [15:33:43]SAM_PROTO_ClearQueue [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 09 00 00 [15:33:43]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [15:33:43]RAPDU: 90 00 [15:33:43]wFMCommunicate OK [15:33:43]SAM_PROTO_ClearQueue done [15:33:43]KKMCreateOFDPacket [15:33:43]OFDProtocolAddRootSTLVToBuf [15:33:43]FM_MakeSignedData [15:33:43]FM_MakeSignedData [15:33:43]SAM_PROTO_SignData [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 0D 01 02 [15:33:43]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [15:33:43]RAPDU: 90 00 [15:33:43]wFMCommunicate OK [15:33:43]wFMCommunicate request_size=255 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 57 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:33:43]Write to MH i2c: E2 02 01 E5 03 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 57 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 88 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:44]Read from MH i2c: E2 03 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [15:33:44]RAPDU: 90 00 [15:33:44]wFMCommunicate OK [15:33:44]wFMCommunicate request_size=53 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 68 01 00 35 04 06 00 77 CE FC 52 8A C8 [15:33:44]Write to MH i2c: E2 38 00 E6 03 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 68 01 00 35 04 06 00 77 CE FC 52 8A C8 00 00 12 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [15:33:44]RAPDU: 90 00 [15:33:44]wFMCommunicate OK [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 0D 03 02 [15:33:44]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0B 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0B 00 E7 03 00 E5 01 A4 68 92 23 6D 1D 90 00 97 [15:33:44]RAPDU: E5 01 A4 68 92 23 6D 1D 90 00 [15:33:44]wFMCommunicate OK [15:33:44]SAM_PROTO_SignData done [15:33:44]FM_MakeSignedData done [15:33:44]CreateOFDProtocolMessage [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 11 00 00 [15:33:44]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BC [15:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:33:44]wFMCommunicate OK [15:33:44]CreateOFDProtocolMessage done [15:33:44]OFDSenderStorePacket 92270 [15:33:44]StoreOFDPacket docnum=92270 [15:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 10 8C 32 01 E5 9A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 57 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 68 01 00 35 04 06 00 77 CE FC 52 8A C8 E5 01 A4 68 92 23 6D 1D [15:33:44]CheckFolder [15:33:44]dirname=/storage/ofd_packets [15:33:44]CheckFolder done [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00092270 [15:33:44]NVStorageSaveData ofd_packets/00092270 [15:33:44]File name is /storage/ofd_packets/00092270 [15:33:44]Write 344 bytes [15:33:44]NVStorageSaveData done [15:33:44]OFDSenderStorePacket done [15:33:44]KKMCreateOFDPacket done [15:33:44]NVStorageSaveData kkm_last_timestamp [15:33:44]File name is /storage/kkm_last_timestamp [15:33:44]Write 4 bytes [15:33:44]NVStorageSaveData done [15:33:44]ExternCall_PrintAddStr [15:33:44]wPrintStart [15:33:44]Write to MH i2c: 01 00 00 E9 03 EC [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [15:33:44]RasterBufferAndPrint [15:33:44]line Счет N : (3)127202 [15:33:44]line ИНН: 02508201610067 [15:33:44]line Контрольно-Кассовый Чек [15:33:44]line ПРОДАЖА [15:33:44]line Товар: 4600682557456 [15:33:44]line Напиток FLash up energy эн ж/б 0,5/0,45л [15:33:44]line 1.000 * 85.00 [15:33:44]line = 85.00 [15:33:44]line НДС 12% НСП 1% [15:33:44]line > о реализуемом товаре [15:33:44]line ИТОГО: 85.00 [15:33:44]line НСП 1% : 0.75 [15:33:44]line НДС 12% : 9.03 [15:33:44]line Наличными: 85.00 [15:33:44]line Безнал.: 0.00 [15:33:44]line Место: АЗС № 5 "Партнер Нефть" [15:33:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:33:44]line СНО: Общий режим [15:33:44]line Чек 78 13.09.2024 15:33 [15:33:44]line Смена: 505 ФФД: 1.0 [15:33:44]line ЗНМ: 03000000022 [15:33:44]line РНМ: 0000000000091423 [15:33:44]line Версия ККМ: 001 [15:33:44]line ФМ: 0000000000874692 [15:33:44]line ФД: 92270 [15:33:44]line ФПД: 131730880236232 [15:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T153343&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92270&fm=131730880236232&tin=02508201610067®Number=0000000000091423&sum=8500 [15:33:44]line 0 [15:33:44]written 0, free lines is 4095 [15:33:44]OFD Sender: Processing packet 92270 [packets to send 63, broken 62] [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00092270 [15:33:44]OFD Sender: To server: pG, [15:33:44]CommunicateWithHost lk.salyk.kg:30040 [15:33:44]ConnectInit lk.salyk.kg [15:33:44]Connected sock=10 [15:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 10 8C 32 01 E5 9A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 57 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 68 01 00 35 04 06 00 77 CE FC 52 8A C8 E5 01 A4 68 92 23 6D 1D [15:33:44]Write to MH i2c: 01 00 00 12 04 16 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 0C 0D 36 [15:33:44]RasterBufferAndPrint [15:33:44]line [15:33:44]line [15:33:44]line [15:33:44]line [15:33:44]line [15:33:44]written 0, free lines is 3347 [15:33:44]MH_Cut [15:33:44]Write to MH i2c: D1 01 00 19 04 01 EF [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: D1 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: D1 01 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: D1 01 00 19 04 00 EE [15:33:44]Write to MH i2c: 01 00 00 1A 04 1E [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8A BF 47 00 89 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 68 01 00 F4 03 04 00 D6 03 E4 66 B6 04 01 00 00 7B 3C ED 7E 1A E3 23 EE [15:33:44]CommunicateWithHost err = 0 [15:33:44]CheckOFDResponse [15:33:44]1017 (14) - 77093643461234 [15:33:44]1041 (16) - 0000000000874692 [15:33:44]1040 (4) - 92270 [15:33:44]1012 (4) - 13.09.2024 09:20 [15:33:44]1206 (1) - 0 [15:33:44]OFD Sender: Remove packet 92270 [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00092270 [15:33:44]NVStorageDeleteData [15:33:45]OFD Sender: No OFD packet to send [15:33:45]*** Cut start [15:33:45]*** Purtial cut [15:33:45]*** Stage 1: CUTSNS_PIN = 1 [15:33:47]Read from MH i2c: 01 [15:33:47]MH_I2C_Read... [15:33:47]*** Stop cut motor [15:33:47]*** Cut end [15:33:47]Read from MH i2c: 01 07 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [15:33:47]process_action close_receipt done [15:33:47]requested_data is exist [15:33:47]produce_requested_data [15:33:47]requested_item fm.sn is exist - process it [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 11 00 00 [15:33:47]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 17 00 [15:33:47]MH_I2C_Read... [15:33:47]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 34 36 39 32 90 00 F0 [15:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:33:47]wFMCommunicate OK [15:33:47]requested_item fd.num is exist - process it [15:33:47]SAM_PROTO_GetFieldsCounters [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 00 00 [15:33:47]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 62 00 [15:33:47]MH_I2C_Read... [15:33:47]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetFieldsCounters done [15:33:47]requested_item shift.num is exist - process it [15:33:47]requested_item shift.opened is exist - process it [15:33:47]req_shift_opened [15:33:47]FM_GetShiftState [15:33:47]SAM_PROTO_GetShiftState [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 01 00 [15:33:47]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2A [15:33:47]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetShiftState done [15:33:47]FM_GetShiftState done [15:33:47]req_shift_opened done [15:33:47]requested_item shift.open_date is exist - process it [15:33:47]req_shift_open_date [15:33:47]req_shift_open_date done [15:33:47]produce_requested_data done [15:33:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92270,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:33:47]process_action_free close_receipt [15:33:47]json_value_free [15:33:47]json_value_free done [15:33:47]process_json_proto returns [15:33:47]Send response to host [15:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92270,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:33:47]free response buf [15:33:47]execute_script done [15:33:47]execute_script returns [15:33:47]free content buf [15:33:47]Sock 7.Close socket [15:33:47]Sock 7.Thread stoped [15:33:48]accept exits with 9 [15:33:48]New connection [15:33:48]New thread 3067129188 created [15:33:48]Thread 3066985828 joined [15:33:48]Waiting for new connection... [15:33:48] Sock 9.Parse request [15:33:48]Sock 9.Check first char [15:33:48]Sock 9.First char is OK [15:33:48]request: POST /json_proto HTTP/1.0 [15:33:48]Method: POST [15:33:48]URL: /json_proto [15:33:48]Method is POST - this is cgi request [15:33:48]url: /json_proto [15:33:48]query_string will be loaded in cgi processing [15:33:48]execute_cgi json_proto POST (null) [15:33:48]execute_cgi path=json_proto method=POST [15:33:48]POST find Content-Length [15:33:48]Host: 172.17.57.71:8080 [15:33:48]Content-Length: 747 [15:33:48]Content-Type: application/json [15:33:48] [15:33:48]POST finish read [15:33:48]Found Content-Length = 747 [15:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127203", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:48]execute_script... [15:33: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 : (3)127203", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:48]POST & json_proto [15:33:48]process_json_proto [15:33:48]json parsed OK: [15:33:48]protocol is kg_v1.0 [15:33:48]action value=close_receipt [15:33:48]process_action close_receipt [15:33:48]cmd_close_receipt [15:33:48]MH_GetDate [15:33:48]Write to MH i2c: F0 00 00 1E 04 11 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: F0 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: F0 09 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: F0 09 00 1E 04 00 5D 5B E4 66 33 3A A4 66 93 [15:33:48]GetLastDocTimeStamp 1726241623 [15:33:48]current date 1726241629 [15:33:48]FM_GetShiftState [15:33:48]SAM_PROTO_GetShiftState [15:33:48]wFMCommunicate request_size=4 [15:33:48]MH_SAM_APDU [15:33:48]CAPDU: 80 13 01 00 [15:33:48]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:48]Read from MH i2c: E2 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 0E 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2C [15:33:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:33:48]wFMCommunicate OK [15:33:48]SAM_PROTO_GetShiftState done [15:33:48]FM_GetShiftState done [15:33:48]opened in 1726186930 [15:33:48]opened+sec_in_day 1726273330 [15:33:48]quantity*price = 59000 [15:33:48]sum+1 = 59001 [15:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 79 13.09.2024 15:33 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92271 ФПД: 3505441710059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T153349&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92271&fm=3505441710059&tin=02508201610067®Number=0000000000091423&sum=59000 0 [15:33:50]StoreToDocumentArchive [15:33:50]shift 505 fd 92271 [15:33:50]save to /storage/0505/doc_00092271 [15:33:50]save last doc name /storage/0505/doc_00092271 to /storage/kkm_last_doc_name [15:33:50]save OK [15:33:50]Clear old archive folders... [15:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=307 [15:33:50]tlvbuf is 01059970 [15:33:50]SAM_PROTO_ClearQueue [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 09 00 00 [15:33:50]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [15:33:50]RAPDU: 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_ClearQueue done [15:33:50]KKMCreateOFDPacket [15:33:50]OFDProtocolAddRootSTLVToBuf [15:33:50]FM_MakeSignedData [15:33:50]FM_MakeSignedData [15:33:50]SAM_PROTO_SignData [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 0D 01 02 [15:33:50]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [15:33:50]RAPDU: 90 00 [15:33:50]wFMCommunicate OK [15:33:50]wFMCommunicate request_size=255 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 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 5D 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 [15:33:50]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 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 5D 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 00 00 7C [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]OFD Sender: No OFD packet to send [15:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [15:33:50]RAPDU: 90 00 [15:33:50]wFMCommunicate OK [15:33:50]wFMCommunicate request_size=66 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 68 01 00 35 04 06 00 03 30 2C 9B 9F EB [15:33:50]Write to MH i2c: E2 45 00 2F 04 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 68 01 00 35 04 06 00 03 30 2C 9B 9F EB 00 00 59 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [15:33:50]RAPDU: 90 00 [15:33:50]wFMCommunicate OK [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 0D 03 02 [15:33:50]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0B 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0B 00 30 04 00 15 5E 43 B7 C2 2B 30 39 90 00 73 [15:33:50]RAPDU: 15 5E 43 B7 C2 2B 30 39 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_SignData done [15:33:50]FM_MakeSignedData done [15:33:50]CreateOFDProtocolMessage [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 11 00 00 [15:33:50]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 17 00 [15:33:50]MH_I2C_Read... [15:33:50]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 34 36 39 32 90 00 06 [15:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:33:50]wFMCommunicate OK [15:33:50]CreateOFDProtocolMessage done [15:33:50]OFDSenderStorePacket 92271 [15:33:50]StoreOFDPacket docnum=92271 [15:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 47 01 00 00 07 4F 3F 01 CE 10 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 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 5D 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 68 01 00 35 04 06 00 03 30 2C 9B 9F EB 15 5E 43 B7 C2 2B 30 39 [15:33:50]CheckFolder [15:33:50]dirname=/storage/ofd_packets [15:33:50]CheckFolder done [15:33:50]ProducePacketName [15:33:50]name=ofd_packets/00092271 [15:33:50]NVStorageSaveData ofd_packets/00092271 [15:33:50]File name is /storage/ofd_packets/00092271 [15:33:50]Write 357 bytes [15:33:50]NVStorageSaveData done [15:33:50]OFDSenderStorePacket done [15:33:50]KKMCreateOFDPacket done [15:33:50]NVStorageSaveData kkm_last_timestamp [15:33:50]File name is /storage/kkm_last_timestamp [15:33:50]Write 4 bytes [15:33:50]NVStorageSaveData done [15:33:50]ExternCall_PrintAddStr [15:33:50]wPrintStart [15:33:50]Write to MH i2c: 01 00 00 32 04 36 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: 01 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: 01 07 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [15:33:50]RasterBufferAndPrint [15:33:50]line Счет N : (3)127203 [15:33:50]line ИНН: 02508201610067 [15:33:50]line Контрольно-Кассовый Чек [15:33:50]line ПРОДАЖА [15:33:50]line Товар: 2000029770012 [15:33:50]line Очки солнцезащитные в ассортименте [15:33:50]line 1.000 * 590.00 [15:33:50]line = 590.00 [15:33:50]line НДС 12% НСП 1% [15:33:50]line > о реализуемом товаре [15:33:50]line ИТОГО: 590.00 [15:33:50]line НСП 1% : 5.22 [15:33:50]line НДС 12% : 62.65 [15:33:50]line Наличными: 590.00 [15:33:50]line Безнал.: 0.00 [15:33:50]line Место: АЗС № 5 "Партнер Нефть" [15:33:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:33:50]line СНО: Общий режим [15:33:50]line Чек 79 13.09.2024 15:33 [15:33:50]line Смена: 505 ФФД: 1.0 [15:33:50]line ЗНМ: 03000000022 [15:33:50]line РНМ: 0000000000091423 [15:33:50]line Версия ККМ: 001 [15:33:50]line ФМ: 0000000000874692 [15:33:50]line ФД: 92271 [15:33:50]line ФПД: 3505441710059 [15:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T153349&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92271&fm=3505441710059&tin=02508201610067®Number=0000000000091423&sum=59000 [15:33:50]line 0 [15:33:50]written 0, free lines is 4095 [15:33:50]OFD Sender: Processing packet 92271 [packets to send 63, broken 62] [15:33:50]ProducePacketName [15:33:50]name=ofd_packets/00092271 [15:33:50]OFD Sender: To server: pG, [15:33:50]CommunicateWithHost lk.salyk.kg:30040 [15:33:50]ConnectInit lk.salyk.kg [15:33:50]Connected sock=10 [15:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 47 01 00 00 07 4F 3F 01 CE 10 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 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 5D 5B E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 68 01 00 35 04 06 00 03 30 2C 9B 9F EB 15 5E 43 B7 C2 2B 30 39 [15:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 59 6F 47 00 16 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 68 01 00 F4 03 04 00 DC 03 E4 66 B6 04 01 00 00 AF E5 73 3A A0 B3 7A 2D [15:33:51]CommunicateWithHost err = 0 [15:33:51]CheckOFDResponse [15:33:51]1017 (14) - 77093643461234 [15:33:51]1041 (16) - 0000000000874692 [15:33:51]1040 (4) - 92271 [15:33:51]1012 (4) - 13.09.2024 09:20 [15:33:51]1206 (1) - 0 [15:33:51]OFD Sender: Remove packet 92271 [15:33:51]ProducePacketName [15:33:51]name=ofd_packets/00092271 [15:33:51]NVStorageDeleteData [15:33:51]Write to MH i2c: 01 00 00 5B 04 5F [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: 01 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: 01 07 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 1C 0D 8F [15:33:51]RasterBufferAndPrint [15:33:51]line [15:33:51]line [15:33:51]line [15:33:51]line [15:33:51]line [15:33:51]written 0, free lines is 3371 [15:33:51]MH_Cut [15:33:51]Write to MH i2c: D1 01 00 62 04 01 38 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: D1 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: D1 01 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: D1 01 00 62 04 00 37 [15:33:51]Write to MH i2c: 01 00 00 63 04 67 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]OFD Sender: No OFD packet to send [15:33:51]*** Cut start [15:33:51]*** Purtial cut [15:33:51]*** Stage 1: CUTSNS_PIN = 1 [15:33:53]Read from MH i2c: 01 [15:33:53]MH_I2C_Read... [15:33:53]*** Stop cut motor [15:33:53]*** Cut end [15:33:53]Read from MH i2c: 01 07 00 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [15:33:53]process_action close_receipt done [15:33:53]requested_data is exist [15:33:53]produce_requested_data [15:33:53]requested_item fm.sn is exist - process it [15:33:53]wFMCommunicate request_size=4 [15:33:53]MH_SAM_APDU [15:33:53]CAPDU: 80 11 00 00 [15:33:53]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [15:33:53]Write i2c OK [15:33:53]MH_I2C_Read... [15:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:53]Read from MH i2c: E2 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: E2 17 00 [15:33:53]MH_I2C_Read... [15:33:53]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 39 [15:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:33:53]wFMCommunicate OK [15:33:53]requested_item fd.num is exist - process it [15:33:53]SAM_PROTO_GetFieldsCounters [15:33:53]wFMCommunicate request_size=4 [15:33:53]MH_SAM_APDU [15:33:53]CAPDU: 80 13 00 00 [15:33:53]Write to MH i2c: E2 08 00 65 04 80 13 00 00 00 00 00 00 E5 [15:33:53]Write i2c OK [15:33:53]MH_I2C_Read... [15:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:54]Read from MH i2c: E2 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 62 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 62 00 65 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [15:33:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:54]wFMCommunicate OK [15:33:54]SAM_PROTO_GetFieldsCounters done [15:33:54]requested_item shift.num is exist - process it [15:33:54]requested_item shift.opened is exist - process it [15:33:54]req_shift_opened [15:33:54]FM_GetShiftState [15:33:54]SAM_PROTO_GetShiftState [15:33:54]wFMCommunicate request_size=4 [15:33:54]MH_SAM_APDU [15:33:54]CAPDU: 80 13 01 00 [15:33:54]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [15:33:54]Write i2c OK [15:33:54]MH_I2C_Read... [15:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:54]Read from MH i2c: E2 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 0E 00 [15:33:54]MH_I2C_Read... [15:33:54]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 73 [15:33:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [15:33:54]wFMCommunicate OK [15:33:54]SAM_PROTO_GetShiftState done [15:33:54]FM_GetShiftState done [15:33:54]req_shift_opened done [15:33:54]requested_item shift.open_date is exist - process it [15:33:54]req_shift_open_date [15:33:54]req_shift_open_date done [15:33:54]produce_requested_data done [15:33:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92271,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [15:33:54]process_action_free close_receipt [15:33:54]json_value_free [15:33:54]json_value_free done [15:33:54]process_json_proto returns [15:33:54]Send response to host [15:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92271,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [15:33:54]free response buf [15:33:54]execute_script done [15:33:54]execute_script returns [15:33:54]free content buf [15:33:54]Sock 9.Close socket [15:33:54]Sock 9.Thread stoped [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:20]accept exits with 7 [16:19:20]New connection [16:19:20]New thread 3066985828 created [16:19:20]Thread 3067129188 joined [16:19:20]Waiting for new connection... [16:19:20] Sock 7.Parse request [16:19:20]Sock 7.Check first char [16:19:20]Sock 7.First char is OK [16:19:20]request: POST /json_proto HTTP/1.0 [16:19:20]Method: POST [16:19:20]URL: /json_proto [16:19:20]Method is POST - this is cgi request [16:19:20]url: /json_proto [16:19:20]query_string will be loaded in cgi processing [16:19:20]execute_cgi json_proto POST (null) [16:19:20]execute_cgi path=json_proto method=POST [16:19:20]POST find Content-Length [16:19:20]Host: 172.17.57.71:8080 [16:19:20]Content-Length: 690 [16:19:20]Content-Type: application/json [16:19:20] [16:19:20]POST finish read [16:19:20]Found Content-Length = 690 [16:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127204", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:20]execute_script... [16:19: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 : (3)127204", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:20]POST & json_proto [16:19:20]process_json_proto [16:19:20]json parsed OK: [16:19:20]protocol is kg_v1.0 [16:19:20]action value=close_receipt [16:19:20]process_action close_receipt [16:19:20]cmd_close_receipt [16:19:20]MH_GetDate [16:19:20]Write to MH i2c: F0 00 00 67 04 5A [16:19:20]Write i2c OK [16:19:20]MH_I2C_Read... [16:19:20]Read from MH i2c: F0 [16:19:20]MH_I2C_Read... [16:19:20]Read from MH i2c: F0 09 00 [16:19:20]MH_I2C_Read... [16:19:20]Read from MH i2c: F0 09 00 67 04 00 09 66 E4 66 33 3A A4 66 93 [16:19:20]GetLastDocTimeStamp 1726241629 [16:19:20]current date 1726244361 [16:19:20]FM_GetShiftState [16:19:20]SAM_PROTO_GetShiftState [16:19:20]wFMCommunicate request_size=4 [16:19:20]MH_SAM_APDU [16:19:20]CAPDU: 80 13 01 00 [16:19:20]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [16:19:20]Write i2c OK [16:19:20]MH_I2C_Read... [16:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:20]Read from MH i2c: E2 [16:19:20]MH_I2C_Read... [16:19:20]Read from MH i2c: E2 0E 00 [16:19:20]MH_I2C_Read... [16:19:20]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 75 [16:19:20]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:19:20]wFMCommunicate OK [16:19:20]SAM_PROTO_GetShiftState done [16:19:20]FM_GetShiftState done [16:19:20]opened in 1726186930 [16:19:20]opened+sec_in_day 1726273330 [16:19:20]quantity*price = 12500 [16:19:20]sum+1 = 12501 [16:19:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 80 13.09.2024 16:19 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92272 ФПД: 38880989805808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T161921&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92272&fm=38880989805808&tin=02508201610067®Number=0000000000091423&sum=12500 0 [16:19:21]StoreToDocumentArchive [16:19:21]shift 505 fd 92272 [16:19:21]save to /storage/0505/doc_00092272 [16:19:21]save last doc name /storage/0505/doc_00092272 to /storage/kkm_last_doc_name [16:19:21]save OK [16:19:21]Clear old archive folders... [16:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:19:21]tlvbuf is 01018F60 [16:19:21]SAM_PROTO_ClearQueue [16:19:21]wFMCommunicate request_size=4 [16:19:21]MH_SAM_APDU [16:19:21]CAPDU: 80 09 00 00 [16:19:21]Write to MH i2c: E2 08 00 75 04 80 09 00 00 00 00 00 00 EB [16:19:21]Write i2c OK [16:19:21]MH_I2C_Read... [16:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:21]Read from MH i2c: E2 [16:19:21]MH_I2C_Read... [16:19:21]Read from MH i2c: E2 03 00 [16:19:21]MH_I2C_Read... [16:19:21]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [16:19:21]RAPDU: 90 00 [16:19:21]wFMCommunicate OK [16:19:21]SAM_PROTO_ClearQueue done [16:19:21]KKMCreateOFDPacket [16:19:21]OFDProtocolAddRootSTLVToBuf [16:19:21]FM_MakeSignedData [16:19:21]FM_MakeSignedData [16:19:21]SAM_PROTO_SignData [16:19:21]wFMCommunicate request_size=4 [16:19:21]MH_SAM_APDU [16:19:21]CAPDU: 80 0D 01 02 [16:19:21]Write to MH i2c: E2 08 00 76 04 80 0D 01 02 00 00 00 00 F3 [16:19:21]Write i2c OK [16:19:21]MH_I2C_Read... [16:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:21]Read from MH i2c: E2 [16:19:21]MH_I2C_Read... [16:19:21]Read from MH i2c: E2 03 00 [16:19:21]MH_I2C_Read... [16:19:21]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [16:19:21]RAPDU: 90 00 [16:19:21]wFMCommunicate OK [16:19:21]wFMCommunicate request_size=255 [16:19:21]MH_SAM_APDU [16:19:21]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 09 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:19:21]Write to MH i2c: E2 02 01 77 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 09 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 79 [16:19:21]Write i2c OK [16:19:21]MH_I2C_Read... [16:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:22]Read from MH i2c: E2 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 03 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [16:19:22]RAPDU: 90 00 [16:19:22]wFMCommunicate OK [16:19:22]wFMCommunicate request_size=53 [16:19:22]MH_SAM_APDU [16:19:22]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 68 01 00 35 04 06 00 23 5C AF 95 FC F0 [16:19:22]Write to MH i2c: E2 38 00 78 04 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 68 01 00 35 04 06 00 23 5C AF 95 FC F0 00 00 71 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:22]Read from MH i2c: E2 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 03 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [16:19:22]RAPDU: 90 00 [16:19:22]wFMCommunicate OK [16:19:22]wFMCommunicate request_size=4 [16:19:22]MH_SAM_APDU [16:19:22]CAPDU: 80 0D 03 02 [16:19:22]Write to MH i2c: E2 08 00 79 04 80 0D 03 02 00 00 00 00 F8 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:22]Read from MH i2c: E2 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 0B 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 0B 00 79 04 00 8B 72 6D D7 3E 16 8C 5B 90 00 75 [16:19:22]RAPDU: 8B 72 6D D7 3E 16 8C 5B 90 00 [16:19:22]wFMCommunicate OK [16:19:22]SAM_PROTO_SignData done [16:19:22]FM_MakeSignedData done [16:19:22]CreateOFDProtocolMessage [16:19:22]wFMCommunicate request_size=4 [16:19:22]MH_SAM_APDU [16:19:22]CAPDU: 80 11 00 00 [16:19:22]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:22]Read from MH i2c: E2 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 17 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [16:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:19:22]wFMCommunicate OK [16:19:22]CreateOFDProtocolMessage done [16:19:22]OFDSenderStorePacket 92272 [16:19:22]StoreOFDPacket docnum=92272 [16:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 50 D4 32 01 92 BD 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 09 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 68 01 00 35 04 06 00 23 5C AF 95 FC F0 8B 72 6D D7 3E 16 8C 5B [16:19:22]CheckFolder [16:19:22]dirname=/storage/ofd_packets [16:19:22]CheckFolder done [16:19:22]ProducePacketName [16:19:22]name=ofd_packets/00092272 [16:19:22]NVStorageSaveData ofd_packets/00092272 [16:19:22]File name is /storage/ofd_packets/00092272 [16:19:22]Write 344 bytes [16:19:22]NVStorageSaveData done [16:19:22]OFDSenderStorePacket done [16:19:22]KKMCreateOFDPacket done [16:19:22]NVStorageSaveData kkm_last_timestamp [16:19:22]File name is /storage/kkm_last_timestamp [16:19:22]Write 4 bytes [16:19:22]NVStorageSaveData done [16:19:22]ExternCall_PrintAddStr [16:19:22]wPrintStart [16:19:22]Write to MH i2c: 01 00 00 7B 04 7F [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 07 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [16:19:22]RasterBufferAndPrint [16:19:22]line Счет N : (3)127204 [16:19:22]line ИНН: 02508201610067 [16:19:22]line Контрольно-Кассовый Чек [16:19:22]line ПРОДАЖА [16:19:22]line Товар: 4870202521247 [16:19:22]line Напиток MAXI чай 1,2 черн.персик [16:19:22]line 1.000 * 125.00 [16:19:22]line = 125.00 [16:19:22]line НДС 12% НСП 1% [16:19:22]line > о реализуемом товаре [16:19:22]line ИТОГО: 125.00 [16:19:22]line НСП 1% : 1.11 [16:19:22]line НДС 12% : 13.27 [16:19:22]line Наличными: 125.00 [16:19:22]line Безнал.: 0.00 [16:19:22]line Место: АЗС № 5 "Партнер Нефть" [16:19:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:19:22]line СНО: Общий режим [16:19:22]line Чек 80 13.09.2024 16:19 [16:19:22]line Смена: 505 ФФД: 1.0 [16:19:22]line ЗНМ: 03000000022 [16:19:22]line РНМ: 0000000000091423 [16:19:22]line Версия ККМ: 001 [16:19:22]line ФМ: 0000000000874692 [16:19:22]line ФД: 92272 [16:19:22]line ФПД: 38880989805808 [16:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T161921&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92272&fm=38880989805808&tin=02508201610067®Number=0000000000091423&sum=12500 [16:19:22]line 0 [16:19:22]OFD Sender: Processing packet 92272 [packets to send 63, broken 62] [16:19:22]ProducePacketName [16:19:22]name=ofd_packets/00092272 [16:19:22]OFD Sender: To server: pG, [16:19:22]CommunicateWithHost lk.salyk.kg:30040 [16:19:22]ConnectInit lk.salyk.kg [16:19:22]written 0, free lines is 4095 [16:19:22]Connected sock=10 [16:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 50 D4 32 01 92 BD 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 09 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 68 01 00 35 04 06 00 23 5C AF 95 FC F0 8B 72 6D D7 3E 16 8C 5B [16:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8B 28 47 00 76 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 68 01 00 F4 03 04 00 87 0E E4 66 B6 04 01 00 00 34 83 07 51 A6 47 07 76 [16:19:22]CommunicateWithHost err = 0 [16:19:22]CheckOFDResponse [16:19:22]1017 (14) - 77093643461234 [16:19:22]1041 (16) - 0000000000874692 [16:19:22]1040 (4) - 92272 [16:19:22]1012 (4) - 13.09.2024 10:05 [16:19:22]1206 (1) - 0 [16:19:22]OFD Sender: Remove packet 92272 [16:19:22]ProducePacketName [16:19:22]name=ofd_packets/00092272 [16:19:22]NVStorageDeleteData [16:19:22]Write to MH i2c: 01 00 00 A4 04 A8 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 07 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 15 0D D1 [16:19:22]RasterBufferAndPrint [16:19:22]line [16:19:22]line [16:19:22]line [16:19:22]line [16:19:22]line [16:19:22]written 0, free lines is 3357 [16:19:22]MH_Cut [16:19:22]Write to MH i2c: D1 01 00 AB 04 01 81 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: D1 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: D1 01 00 [16:19:22]MH_I2C_Read... [16:19:22]Read from MH i2c: D1 01 00 AB 04 00 80 [16:19:22]Write to MH i2c: 01 00 00 AC 04 B0 [16:19:22]Write i2c OK [16:19:22]MH_I2C_Read... [16:19:23]OFD Sender: No OFD packet to send [16:19:23]*** Cut start [16:19:23]*** Purtial cut [16:19:23]*** Stage 1: CUTSNS_PIN = 1 [16:19:25]Read from MH i2c: 01 [16:19:25]MH_I2C_Read... [16:19:25]*** Stop cut motor [16:19:25]*** Cut end [16:19:25]Read from MH i2c: 01 07 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [16:19:25]process_action close_receipt done [16:19:25]requested_data is exist [16:19:25]produce_requested_data [16:19:25]requested_item fm.sn is exist - process it [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 11 00 00 [16:19:25]Write to MH i2c: E2 08 00 AD 04 80 11 00 00 00 00 00 00 2B [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 17 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 17 00 AD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 82 [16:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:19:25]wFMCommunicate OK [16:19:25]requested_item fd.num is exist - process it [16:19:25]SAM_PROTO_GetFieldsCounters [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 13 00 00 [16:19:25]Write to MH i2c: E2 08 00 AE 04 80 13 00 00 00 00 00 00 2E [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 62 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 62 00 AE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 70 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [16: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 70 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:25]wFMCommunicate OK [16:19:25]SAM_PROTO_GetFieldsCounters done [16:19:25]requested_item shift.num is exist - process it [16:19:25]requested_item shift.opened is exist - process it [16:19:25]req_shift_opened [16:19:25]FM_GetShiftState [16:19:25]SAM_PROTO_GetShiftState [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 13 01 00 [16:19:25]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0E 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BC [16:19:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:19:25]wFMCommunicate OK [16:19:25]SAM_PROTO_GetShiftState done [16:19:25]FM_GetShiftState done [16:19:25]req_shift_opened done [16:19:25]requested_item shift.open_date is exist - process it [16:19:25]req_shift_open_date [16:19:25]req_shift_open_date done [16:19:25]produce_requested_data done [16:19:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92272,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:19:25]process_action_free close_receipt [16:19:25]json_value_free [16:19:25]json_value_free done [16:19:25]process_json_proto returns [16:19:25]Send response to host [16:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92272,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:19:25]free response buf [16:19:25]execute_script done [16:19:25]execute_script returns [16:19:25]free content buf [16:19:25]Sock 7.Close socket [16:19:25]Sock 7.Thread stoped [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:04]accept exits with 9 [16:20:04]New connection [16:20:04]New thread 3067129188 created [16:20:04]Thread 3066985828 joined [16:20:04]Waiting for new connection... [16:20:04] Sock 9.Parse request [16:20:04]Sock 9.Check first char [16:20:04]Sock 9.First char is OK [16:20:04]request: POST /json_proto HTTP/1.0 [16:20:04]Method: POST [16:20:04]URL: /json_proto [16:20:04]Method is POST - this is cgi request [16:20:04]url: /json_proto [16:20:04]query_string will be loaded in cgi processing [16:20:04]execute_cgi json_proto POST (null) [16:20:04]execute_cgi path=json_proto method=POST [16:20:04]POST find Content-Length [16:20:04]Host: 172.17.57.71:8080 [16:20:04]Content-Length: 1182 [16:20:04]Content-Type: application/json [16:20:04] [16:20:04]POST finish read [16:20:04]Found Content-Length = 1182 [16:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127205", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:04]execute_script... [16:20: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 : (3)127205", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:04]POST & json_proto [16:20:04]process_json_proto [16:20:04]json parsed OK: [16:20:04]protocol is kg_v1.0 [16:20:04]action value=close_receipt [16:20:04]process_action close_receipt [16:20:04]cmd_close_receipt [16:20:04]MH_GetDate [16:20:04]Write to MH i2c: F0 00 00 B0 04 A3 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: F0 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: F0 09 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: F0 09 00 B0 04 00 35 66 E4 66 33 3A A4 66 08 [16:20:04]GetLastDocTimeStamp 1726244361 [16:20:04]current date 1726244405 [16:20:04]FM_GetShiftState [16:20:04]SAM_PROTO_GetShiftState [16:20:04]wFMCommunicate request_size=4 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 13 01 00 [16:20:04]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 0E 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BE [16:20:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:20:04]wFMCommunicate OK [16:20:04]SAM_PROTO_GetShiftState done [16:20:04]FM_GetShiftState done [16:20:04]opened in 1726186930 [16:20:04]opened+sec_in_day 1726273330 [16:20:04]quantity*price = 6500 [16:20:04]sum+1 = 6501 [16:20:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216090453 Жевательный мармелад HARIBO Chervyachki 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.45 НДС 12% : 17.52 Наличными: 0.00 Безнал.: 165.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 81 13.09.2024 16:20 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92273 ФПД: 231051256252713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162005&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92273&fm=231051256252713&tin=02508201610067®Number=0000000000091423&sum=16500 0 [16:20:05]StoreToDocumentArchive [16:20:05]shift 505 fd 92273 [16:20:05]save to /storage/0505/doc_00092273 [16:20:05]save last doc name /storage/0505/doc_00092273 to /storage/kkm_last_doc_name [16:20:05]save OK [16:20:05]Clear old archive folders... [16:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=428 [16:20:05]tlvbuf is 01023C10 [16:20:05]SAM_PROTO_ClearQueue [16:20:05]wFMCommunicate request_size=4 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 09 00 00 [16:20:05]Write to MH i2c: E2 08 00 BE 04 80 09 00 00 00 00 00 00 34 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:05]Read from MH i2c: E2 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 03 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [16:20:05]RAPDU: 90 00 [16:20:05]wFMCommunicate OK [16:20:05]SAM_PROTO_ClearQueue done [16:20:05]KKMCreateOFDPacket [16:20:05]OFDProtocolAddRootSTLVToBuf [16:20:05]FM_MakeSignedData [16:20:05]FM_MakeSignedData [16:20:05]SAM_PROTO_SignData [16:20:05]wFMCommunicate request_size=4 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 0D 01 02 [16:20:05]Write to MH i2c: E2 08 00 BF 04 80 0D 01 02 00 00 00 00 3C [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:05]Read from MH i2c: E2 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 03 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [16:20:05]RAPDU: 90 00 [16:20:05]wFMCommunicate OK [16:20:05]wFMCommunicate request_size=255 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 0D 02 02 FA 03 00 AC 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 [16:20:05]Write to MH i2c: E2 02 01 C0 04 80 0D 02 02 FA 00 03 00 AC 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 47 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:06]Read from MH i2c: E2 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 03 00 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [16:20:06]RAPDU: 90 00 [16:20:06]wFMCommunicate OK [16:20:06]wFMCommunicate request_size=187 [16:20:06]MH_SAM_APDU [16:20:06]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 68 01 00 35 04 06 00 D2 23 D0 0D C9 29 [16:20:06]Write to MH i2c: E2 BE 00 C1 04 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 68 01 00 35 04 06 00 D2 23 D0 0D C9 29 00 00 44 [16:20:06]Write i2c OK [16:20:06]MH_I2C_Read... [16:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:06]Read from MH i2c: E2 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 03 00 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [16:20:06]RAPDU: 90 00 [16:20:06]wFMCommunicate OK [16:20:06]wFMCommunicate request_size=4 [16:20:06]MH_SAM_APDU [16:20:06]CAPDU: 80 0D 03 02 [16:20:06]Write to MH i2c: E2 08 00 C2 04 80 0D 03 02 00 00 00 00 41 [16:20:06]Write i2c OK [16:20:06]MH_I2C_Read... [16:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:06]Read from MH i2c: E2 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 0B 00 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 0B 00 C2 04 00 2D 83 7C E1 0C D3 75 21 90 00 C4 [16:20:06]RAPDU: 2D 83 7C E1 0C D3 75 21 90 00 [16:20:06]wFMCommunicate OK [16:20:06]SAM_PROTO_SignData done [16:20:06]FM_MakeSignedData done [16:20:06]CreateOFDProtocolMessage [16:20:06]wFMCommunicate request_size=4 [16:20:06]MH_SAM_APDU [16:20:06]CAPDU: 80 11 00 00 [16:20:06]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [16:20:06]Write i2c OK [16:20:06]MH_I2C_Read... [16:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:06]Read from MH i2c: E2 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 17 00 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 98 [16:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:20:06]wFMCommunicate OK [16:20:06]CreateOFDProtocolMessage done [16:20:06]OFDSenderStorePacket 92273 [16:20:06]StoreOFDPacket docnum=92273 [16:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C0 01 00 00 C2 97 B8 01 BD F9 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 68 01 00 35 04 06 00 D2 23 D0 0D C9 29 2D 83 7C E1 0C D3 75 21 [16:20:06]CheckFolder [16:20:06]dirname=/storage/ofd_packets [16:20:06]CheckFolder done [16:20:06]ProducePacketName [16:20:06]name=ofd_packets/00092273 [16:20:06]NVStorageSaveData ofd_packets/00092273 [16:20:06]File name is /storage/ofd_packets/00092273 [16:20:06]Write 478 bytes [16:20:06]NVStorageSaveData done [16:20:06]OFDSenderStorePacket done [16:20:06]KKMCreateOFDPacket done [16:20:06]NVStorageSaveData kkm_last_timestamp [16:20:06]File name is /storage/kkm_last_timestamp [16:20:06]Write 4 bytes [16:20:06]NVStorageSaveData done [16:20:06]ExternCall_PrintAddStr [16:20:06]wPrintStart [16:20:06]Write to MH i2c: 01 00 00 C4 04 C8 [16:20:06]Write i2c OK [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: 01 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: 01 07 00 [16:20:06]MH_I2C_Read... [16:20:06]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [16:20:06]RasterBufferAndPrint [16:20:06]line Счет N : (3)127205 [16:20:06]line ИНН: 02508201610067 [16:20:06]line Контрольно-Кассовый Чек [16:20:06]line ПРОДАЖА [16:20:06]line Товар: 4600338007564 [16:20:06]line Сок Фруто НЯНЯ мультифрукт 0,2л [16:20:06]line 1.000 * 65.00 [16:20:06]line = 65.00 [16:20:06]line НДС 12% НСП 1% [16:20:06]line > о реализуемом товаре [16:20:06]line Товар: 8691216090453 [16:20:06]line Жевательный мармелад HARIBO Chervyachki [16:20:06]line 1.000 * 100.00 [16:20:06]line = 100.00 [16:20:06]line НДС 12% НСП 1% [16:20:06]line > о реализуемом товаре [16:20:06]line ИТОГО: 165.00 [16:20:06]line НСП 1% : 1.45 [16:20:06]line НДС 12% : 17.52 [16:20:06]line Наличными: 0.00 [16:20:06]line Безнал.: 165.00 [16:20:06]line Место: АЗС № 5 "Партнер Нефть" [16:20:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:20:06]line СНО: Общий режим [16:20:06]line Чек 81 13.09.2024 16:20 [16:20:06]line Смена: 505 ФФД: 1.0 [16:20:06]line ЗНМ: 03000000022 [16:20:06]line РНМ: 0000000000091423 [16:20:06]line Версия ККМ: 001 [16:20:06]line Платежная система: О! деньги [16:20:06]line ФМ: 0000000000874692 [16:20:06]line ФД: 92273 [16:20:06]line ФПД: 231051256252713 [16:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162005&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92273&fm=231051256252713&tin=02508201610067®Number=0000000000091423&sum=16500 [16:20:06]line 0 [16:20:06]written 0, free lines is 4095 [16:20:06]OFD Sender: Processing packet 92273 [packets to send 63, broken 62] [16:20:06]ProducePacketName [16:20:06]name=ofd_packets/00092273 [16:20:06]OFD Sender: To server: pG, [16:20:06]CommunicateWithHost lk.salyk.kg:30040 [16:20:06]ConnectInit lk.salyk.kg [16:20:06]Connected sock=10 [16:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C0 01 00 00 C2 97 B8 01 BD F9 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 66 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 68 01 00 35 04 06 00 D2 23 D0 0D C9 29 2D 83 7C E1 0C D3 75 21 [16:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B7 E2 47 00 FA D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 68 01 00 F4 03 04 00 B4 0E E4 66 B6 04 01 00 00 C9 46 19 A1 0C E0 EE 3E [16:20:07]CommunicateWithHost err = 0 [16:20:07]CheckOFDResponse [16:20:07]1017 (14) - 77093643461234 [16:20:07]1041 (16) - 0000000000874692 [16:20:07]1040 (4) - 92273 [16:20:07]1012 (4) - 13.09.2024 10:06 [16:20:07]1206 (1) - 0 [16:20:07]OFD Sender: Remove packet 92273 [16:20:07]ProducePacketName [16:20:07]name=ofd_packets/00092273 [16:20:07]NVStorageDeleteData [16:20:07]Write to MH i2c: 01 00 00 F6 04 FA [16:20:07]Write i2c OK [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: 01 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: 01 07 00 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 A4 0C B1 [16:20:07]RasterBufferAndPrint [16:20:07]line [16:20:07]line [16:20:07]line [16:20:07]line [16:20:07]line [16:20:07]written 0, free lines is 3242 [16:20:07]MH_Cut [16:20:07]Write to MH i2c: D1 01 00 FD 04 01 D3 [16:20:07]Write i2c OK [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: D1 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: D1 01 00 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: D1 01 00 FD 04 00 D2 [16:20:07]Write to MH i2c: 01 00 00 FE 04 02 [16:20:07]Write i2c OK [16:20:07]MH_I2C_Read... [16:20:07]OFD Sender: No OFD packet to send [16:20:08]*** Cut start [16:20:08]*** Purtial cut [16:20:08]*** Stage 1: CUTSNS_PIN = 1 [16:20:10]Read from MH i2c: 01 [16:20:10]MH_I2C_Read... [16:20:10]*** Stop cut motor [16:20:10]*** Cut end [16:20:10]Read from MH i2c: 01 07 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 FF 0F 17 [16:20:10]process_action close_receipt done [16:20:10]requested_data is exist [16:20:10]produce_requested_data [16:20:10]requested_item fm.sn is exist - process it [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 11 00 00 [16:20:10]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [16:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:20:10]wFMCommunicate OK [16:20:10]requested_item fd.num is exist - process it [16:20:10]SAM_PROTO_GetFieldsCounters [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 13 00 00 [16:20:10]Write to MH i2c: E2 08 00 00 05 80 13 00 00 00 00 00 00 81 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 62 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 62 00 00 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 71 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [16:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 71 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_GetFieldsCounters done [16:20:10]requested_item shift.num is exist - process it [16:20:10]requested_item shift.opened is exist - process it [16:20:10]req_shift_opened [16:20:10]FM_GetShiftState [16:20:10]SAM_PROTO_GetShiftState [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 13 01 00 [16:20:10]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:10]Read from MH i2c: E2 0E 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0F [16:20:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_GetShiftState done [16:20:10]FM_GetShiftState done [16:20:10]req_shift_opened done [16:20:10]requested_item shift.open_date is exist - process it [16:20:10]req_shift_open_date [16:20:10]req_shift_open_date done [16:20:10]produce_requested_data done [16:20:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92273,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:20:10]process_action_free close_receipt [16:20:10]json_value_free [16:20:10]json_value_free done [16:20:10]process_json_proto returns [16:20:10]Send response to host [16:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92273,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:20:10]free response buf [16:20:10]execute_script done [16:20:10]execute_script returns [16:20:10]free content buf [16:20:10]Sock 9.Close socket [16:20:10]Sock 9.Thread stoped [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:25:58]accept exits with 7 [16:25:58]New connection [16:25:58]New thread 3066985828 created [16:25:58]Thread 3067129188 joined [16:25:58]Waiting for new connection... [16:25:58] Sock 7.Parse request [16:25:58]Sock 7.Check first char [16:25:58]Sock 7.First char is OK [16:25:58]request: POST /json_proto HTTP/1.0 [16:25:58]Method: POST [16:25:58]URL: /json_proto [16:25:58]Method is POST - this is cgi request [16:25:58]url: /json_proto [16:25:58]query_string will be loaded in cgi processing [16:25:58]execute_cgi json_proto POST (null) [16:25:58]execute_cgi path=json_proto method=POST [16:25:58]POST find Content-Length [16:25:58]Host: 172.17.57.71:8080 [16:25:58]Content-Length: 632 [16:25:58]Content-Type: application/json [16:25:58] [16:25:58]POST finish read [16:25:58]Found Content-Length = 632 [16:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127206", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:58]execute_script... [16:25:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127206", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:58]POST & json_proto [16:25:58]process_json_proto [16:25:58]json parsed OK: [16:25:58]protocol is kg_v1.0 [16:25:58]action value=close_receipt [16:25:58]process_action close_receipt [16:25:58]cmd_close_receipt [16:25:58]MH_GetDate [16:25:58]Write to MH i2c: F0 00 00 02 05 F6 [16:25:58]Write i2c OK [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: F0 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: F0 09 00 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: F0 09 00 02 05 00 97 67 E4 66 33 3A A4 66 BE [16:25:58]GetLastDocTimeStamp 1726244405 [16:25:58]current date 1726244759 [16:25:58]FM_GetShiftState [16:25:58]SAM_PROTO_GetShiftState [16:25:58]wFMCommunicate request_size=4 [16:25:58]MH_SAM_APDU [16:25:58]CAPDU: 80 13 01 00 [16:25:58]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [16:25:58]Write i2c OK [16:25:58]MH_I2C_Read... [16:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:58]Read from MH i2c: E2 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: E2 0E 00 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 11 [16:25:58]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:25:58]wFMCommunicate OK [16:25:58]SAM_PROTO_GetShiftState done [16:25:58]FM_GetShiftState done [16:25:58]opened in 1726186930 [16:25:58]opened+sec_in_day 1726273330 [16:25:58]quantity*price = 4000 [16:25:58]sum+1 = 4001 [16:25:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 82 13.09.2024 16:25 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92274 ФПД: 201546188914307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162559&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92274&fm=201546188914307&tin=02508201610067®Number=0000000000091423&sum=4000 0 [16:25:59]StoreToDocumentArchive [16:25:59]shift 505 fd 92274 [16:25:59]save to /storage/0505/doc_00092274 [16:25:59]save last doc name /storage/0505/doc_00092274 to /storage/kkm_last_doc_name [16:25:59]save OK [16:25:59]Clear old archive folders... [16:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:25:59]tlvbuf is 010196B0 [16:25:59]SAM_PROTO_ClearQueue [16:25:59]wFMCommunicate request_size=4 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 09 00 00 [16:25:59]Write to MH i2c: E2 08 00 10 05 80 09 00 00 00 00 00 00 87 [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 [16:25:59]MH_I2C_Read... [16:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:59]Read from MH i2c: E2 03 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [16:25:59]RAPDU: 90 00 [16:25:59]wFMCommunicate OK [16:25:59]SAM_PROTO_ClearQueue done [16:25:59]KKMCreateOFDPacket [16:25:59]OFDProtocolAddRootSTLVToBuf [16:25:59]FM_MakeSignedData [16:25:59]FM_MakeSignedData [16:25:59]SAM_PROTO_SignData [16:25:59]wFMCommunicate request_size=4 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 0D 01 02 [16:25:59]Write to MH i2c: E2 08 00 11 05 80 0D 01 02 00 00 00 00 8F [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:59]Read from MH i2c: E2 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 03 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [16:25:59]RAPDU: 90 00 [16:25:59]wFMCommunicate OK [16:25:59]wFMCommunicate request_size=255 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 97 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [16:25:59]Write to MH i2c: E2 02 01 12 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 97 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 13 [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:00]Read from MH i2c: E2 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 03 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [16:26:00]RAPDU: 90 00 [16:26:00]wFMCommunicate OK [16:26:00]wFMCommunicate request_size=34 [16:26:00]MH_SAM_APDU [16:26:00]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 68 01 00 35 04 06 00 B7 4E 20 FE FE 83 [16:26:00]Write to MH i2c: E2 25 00 13 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 68 01 00 35 04 06 00 B7 4E 20 FE FE 83 00 00 D6 [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:00]Read from MH i2c: E2 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 03 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [16:26:00]RAPDU: 90 00 [16:26:00]wFMCommunicate OK [16:26:00]wFMCommunicate request_size=4 [16:26:00]MH_SAM_APDU [16:26:00]CAPDU: 80 0D 03 02 [16:26:00]Write to MH i2c: E2 08 00 14 05 80 0D 03 02 00 00 00 00 94 [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:00]Read from MH i2c: E2 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 0B 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 0B 00 14 05 00 D1 05 43 1F E6 C6 6E B6 90 00 9D [16:26:00]RAPDU: D1 05 43 1F E6 C6 6E B6 90 00 [16:26:00]wFMCommunicate OK [16:26:00]SAM_PROTO_SignData done [16:26:00]FM_MakeSignedData done [16:26:00]CreateOFDProtocolMessage [16:26:00]wFMCommunicate request_size=4 [16:26:00]MH_SAM_APDU [16:26:00]CAPDU: 80 11 00 00 [16:26:00]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:00]Read from MH i2c: E2 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 17 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EB [16:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:26:00]wFMCommunicate OK [16:26:00]CreateOFDProtocolMessage done [16:26:00]OFDSenderStorePacket 92274 [16:26:00]StoreOFDPacket docnum=92274 [16:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 E1 90 1F 01 2C A4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 97 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 68 01 00 35 04 06 00 B7 4E 20 FE FE 83 D1 05 43 1F E6 C6 6E B6 [16:26:00]CheckFolder [16:26:00]dirname=/storage/ofd_packets [16:26:00]CheckFolder done [16:26:00]ProducePacketName [16:26:00]name=ofd_packets/00092274 [16:26:00]NVStorageSaveData ofd_packets/00092274 [16:26:00]File name is /storage/ofd_packets/00092274 [16:26:00]Write 325 bytes [16:26:00]NVStorageSaveData done [16:26:00]OFDSenderStorePacket done [16:26:00]KKMCreateOFDPacket done [16:26:00]NVStorageSaveData kkm_last_timestamp [16:26:00]File name is /storage/kkm_last_timestamp [16:26:00]Write 4 bytes [16:26:00]NVStorageSaveData done [16:26:00]ExternCall_PrintAddStr [16:26:00]wPrintStart [16:26:00]Write to MH i2c: 01 00 00 16 05 1B [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 07 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 07 00 16 05 00 00 00 00 00 FF 0F 30 [16:26:00]RasterBufferAndPrint [16:26:00]line Счет N : (3)127206 [16:26:00]line ИНН: 02508201610067 [16:26:00]line Контрольно-Кассовый Чек [16:26:00]line ПРОДАЖА [16:26:00]line Товар: 50173372 [16:26:00]line Жев Orbit для детей Classic [16:26:00]line 1.000 * 40.00 [16:26:00]line = 40.00 [16:26:00]line НДС 12% НСП 1% [16:26:00]line > о реализуемом товаре [16:26:00]line ИТОГО: 40.00 [16:26:00]line НСП 1% : 0.35 [16:26:00]line НДС 12% : 4.25 [16:26:00]line Наличными: 40.00 [16:26:00]line Безнал.: 0.00 [16:26:00]line Место: АЗС № 5 "Партнер Нефть" [16:26:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:26:00]line СНО: Общий режим [16:26:00]line Чек 82 13.09.2024 16:25 [16:26:00]line Смена: 505 ФФД: 1.0 [16:26:00]line ЗНМ: 03000000022 [16:26:00]line РНМ: 0000000000091423 [16:26:00]line Версия ККМ: 001 [16:26:00]line ФМ: 0000000000874692 [16:26:00]line ФД: 92274 [16:26:00]line ФПД: 201546188914307 [16:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162559&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92274&fm=201546188914307&tin=02508201610067®Number=0000000000091423&sum=4000 [16:26:00]line 0 [16:26:00]OFD Sender: Processing packet 92274 [packets to send 63, broken 62] [16:26:00]ProducePacketName [16:26:00]name=ofd_packets/00092274 [16:26:00]OFD Sender: To server: pG, [16:26:00]CommunicateWithHost lk.salyk.kg:30040 [16:26:00]ConnectInit lk.salyk.kg [16:26:00]written 0, free lines is 4095 [16:26:00]Connected sock=10 [16:26:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 E1 90 1F 01 2C A4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 97 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 68 01 00 35 04 06 00 B7 4E 20 FE FE 83 D1 05 43 1F E6 C6 6E B6 [16:26:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F0 C3 47 00 BB 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 34 36 39 32 10 04 04 00 72 68 01 00 F4 03 04 00 16 10 E4 66 B6 04 01 00 00 B3 FF 6B 00 8A 71 94 CD [16:26:00]CommunicateWithHost err = 0 [16:26:00]CheckOFDResponse [16:26:00]1017 (14) - 77093643461234 [16:26:00]1041 (16) - 0000000000874692 [16:26:00]1040 (4) - 92274 [16:26:00]1012 (4) - 13.09.2024 10:12 [16:26:00]1206 (1) - 0 [16:26:00]OFD Sender: Remove packet 92274 [16:26:00]ProducePacketName [16:26:00]name=ofd_packets/00092274 [16:26:00]NVStorageDeleteData [16:26:00]Write to MH i2c: 01 00 00 3E 05 43 [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 07 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 1D 0D 74 [16:26:00]RasterBufferAndPrint [16:26:00]line [16:26:00]line [16:26:00]line [16:26:00]line [16:26:00]line [16:26:00]written 0, free lines is 3362 [16:26:00]MH_Cut [16:26:00]Write to MH i2c: D1 01 00 45 05 01 1C [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: D1 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: D1 01 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: D1 01 00 45 05 00 1B [16:26:00]Write to MH i2c: 01 00 00 46 05 4B [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:01]OFD Sender: No OFD packet to send [16:26:01]*** Cut start [16:26:01]*** Purtial cut [16:26:01]*** Stage 1: CUTSNS_PIN = 1 [16:26:03]Read from MH i2c: 01 [16:26:03]MH_I2C_Read... [16:26:03]*** Stop cut motor [16:26:03]*** Cut end [16:26:03]Read from MH i2c: 01 07 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [16:26:03]process_action close_receipt done [16:26:03]requested_data is exist [16:26:03]produce_requested_data [16:26:03]requested_item fm.sn is exist - process it [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 11 00 00 [16:26:03]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 17 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [16:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:26:03]wFMCommunicate OK [16:26:03]requested_item fd.num is exist - process it [16:26:03]SAM_PROTO_GetFieldsCounters [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 13 00 00 [16:26:03]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 62 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 72 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [16: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 72 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:03]wFMCommunicate OK [16:26:03]SAM_PROTO_GetFieldsCounters done [16:26:03]requested_item shift.num is exist - process it [16:26:03]requested_item shift.opened is exist - process it [16:26:03]req_shift_opened [16:26:03]FM_GetShiftState [16:26:03]SAM_PROTO_GetShiftState [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 13 01 00 [16:26:03]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 0E 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 57 [16:26:03]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:26:03]wFMCommunicate OK [16:26:03]SAM_PROTO_GetShiftState done [16:26:03]FM_GetShiftState done [16:26:03]req_shift_opened done [16:26:03]requested_item shift.open_date is exist - process it [16:26:03]req_shift_open_date [16:26:03]req_shift_open_date done [16:26:03]produce_requested_data done [16:26:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92274,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:26:03]process_action_free close_receipt [16:26:03]json_value_free [16:26:03]json_value_free done [16:26:03]process_json_proto returns [16:26:03]Send response to host [16:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92274,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:26:03]free response buf [16:26:03]execute_script done [16:26:03]execute_script returns [16:26:03]free content buf [16:26:03]Sock 7.Close socket [16:26:03]Sock 7.Thread stoped [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:34]recv_with_timeout no data received [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:41]accept exits with 9 [16:26:41]New connection [16:26:41]New thread 3067129188 created [16:26:41]Thread 3066985828 joined [16:26:41]Waiting for new connection... [16:26:41] Sock 9.Parse request [16:26:41]Sock 9.Check first char [16:26:41]Sock 9.First char is OK [16:26:41]request: POST /json_proto HTTP/1.0 [16:26:41]Method: POST [16:26:41]URL: /json_proto [16:26:41]Method is POST - this is cgi request [16:26:41]url: /json_proto [16:26:41]query_string will be loaded in cgi processing [16:26:41]execute_cgi json_proto POST (null) [16:26:41]execute_cgi path=json_proto method=POST [16:26:41]POST find Content-Length [16:26:41]Host: 172.17.57.71:8080 [16:26:41]Content-Length: 646 [16:26:41]Content-Type: application/json [16:26:41] [16:26:41]POST finish read [16:26:41]Found Content-Length = 646 [16:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127207", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:41]execute_script... [16:26:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127207", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:41]POST & json_proto [16:26:41]process_json_proto [16:26:41]json parsed OK: [16:26:41]protocol is kg_v1.0 [16:26:41]action value=close_receipt [16:26:41]process_action close_receipt [16:26:41]cmd_close_receipt [16:26:41]MH_GetDate [16:26:41]Write to MH i2c: F0 00 00 4A 05 3E [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: F0 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: F0 09 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: F0 09 00 4A 05 00 C2 67 E4 66 33 3A A4 66 31 [16:26:41]GetLastDocTimeStamp 1726244759 [16:26:41]current date 1726244802 [16:26:41]FM_GetShiftState [16:26:41]SAM_PROTO_GetShiftState [16:26:41]wFMCommunicate request_size=4 [16:26:41]MH_SAM_APDU [16:26:41]CAPDU: 80 13 01 00 [16:26:41]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:41]Read from MH i2c: E2 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 0E 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 59 [16:26:41]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:26:41]wFMCommunicate OK [16:26:41]SAM_PROTO_GetShiftState done [16:26:41]FM_GetShiftState done [16:26:41]opened in 1726186930 [16:26:41]opened+sec_in_day 1726273330 [16:26:41]quantity*price = 13000 [16:26:41]sum+1 = 13001 [16:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 83 13.09.2024 16:26 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92275 ФПД: 124710570436216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162642&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92275&fm=124710570436216&tin=02508201610067®Number=0000000000091423&sum=13000 0 [16:26:42]StoreToDocumentArchive [16:26:42]shift 505 fd 92275 [16:26:42]save to /storage/0505/doc_00092275 [16:26:42]save last doc name /storage/0505/doc_00092275 to /storage/kkm_last_doc_name [16:26:42]save OK [16:26:42]Clear old archive folders... [16:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:26:42]tlvbuf is 01019990 [16:26:42]SAM_PROTO_ClearQueue [16:26:42]wFMCommunicate request_size=4 [16:26:42]MH_SAM_APDU [16:26:42]CAPDU: 80 09 00 00 [16:26:42]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:42]Read from MH i2c: E2 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [16:26:42]RAPDU: 90 00 [16:26:42]wFMCommunicate OK [16:26:42]SAM_PROTO_ClearQueue done [16:26:42]KKMCreateOFDPacket [16:26:42]OFDProtocolAddRootSTLVToBuf [16:26:42]FM_MakeSignedData [16:26:42]FM_MakeSignedData [16:26:42]SAM_PROTO_SignData [16:26:42]wFMCommunicate request_size=4 [16:26:42]MH_SAM_APDU [16:26:42]CAPDU: 80 0D 01 02 [16:26:42]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:42]Read from MH i2c: E2 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [16:26:42]RAPDU: 90 00 [16:26:42]wFMCommunicate OK [16:26:42]wFMCommunicate request_size=255 [16:26:42]MH_SAM_APDU [16:26:42]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 53 00 00 00 F4 03 04 00 C2 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [16:26:42]Write to MH i2c: E2 02 01 5A 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 53 00 00 00 F4 03 04 00 C2 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 A0 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:42]Read from MH i2c: E2 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [16:26:42]RAPDU: 90 00 [16:26:42]wFMCommunicate OK [16:26:42]wFMCommunicate request_size=41 [16:26:42]MH_SAM_APDU [16:26:42]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 68 01 00 35 04 06 00 71 6C 71 40 26 78 [16:26:42]Write to MH i2c: E2 2C 00 5B 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 68 01 00 35 04 06 00 71 6C 71 40 26 78 00 00 B5 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [16:26:43]RAPDU: 90 00 [16:26:43]wFMCommunicate OK [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 0D 03 02 [16:26:43]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0B 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0B 00 5C 05 00 EE 7A 3F D4 3A C1 7F 4B 90 00 1D [16:26:43]RAPDU: EE 7A 3F D4 3A C1 7F 4B 90 00 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_SignData done [16:26:43]FM_MakeSignedData done [16:26:43]CreateOFDProtocolMessage [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 11 00 00 [16:26:43]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [16:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:26:43]wFMCommunicate OK [16:26:43]CreateOFDProtocolMessage done [16:26:43]OFDSenderStorePacket 92275 [16:26:43]StoreOFDPacket docnum=92275 [16:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 C4 45 26 01 1F 80 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 53 00 00 00 F4 03 04 00 C2 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 68 01 00 35 04 06 00 71 6C 71 40 26 78 EE 7A 3F D4 3A C1 7F 4B [16:26:43]CheckFolder [16:26:43]dirname=/storage/ofd_packets [16:26:43]CheckFolder done [16:26:43]ProducePacketName [16:26:43]name=ofd_packets/00092275 [16:26:43]NVStorageSaveData ofd_packets/00092275 [16:26:43]File name is /storage/ofd_packets/00092275 [16:26:43]Write 332 bytes [16:26:43]NVStorageSaveData done [16:26:43]OFDSenderStorePacket done [16:26:43]KKMCreateOFDPacket done [16:26:43]NVStorageSaveData kkm_last_timestamp [16:26:43]File name is /storage/kkm_last_timestamp [16:26:43]Write 4 bytes [16:26:43]NVStorageSaveData done [16:26:43]ExternCall_PrintAddStr [16:26:43]wPrintStart [16:26:43]Write to MH i2c: 01 00 00 5E 05 63 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [16:26:43]RasterBufferAndPrint [16:26:43]line Счет N : (3)127207 [16:26:43]line ИНН: 02508201610067 [16:26:43]line Контрольно-Кассовый Чек [16:26:43]line ПРОДАЖА [16:26:43]line Товар: 2000036220012 [16:26:43]line Кофе Капучино XL(GABB TRADE) [16:26:43]line 1.000 * 130.00 [16:26:43]line = 130.00 [16:26:43]line НДС 12% НСП 1% [16:26:43]line > о реализуемом товаре [16:26:43]line ИТОГО: 130.00 [16:26:43]line НСП 1% : 1.15 [16:26:43]line НДС 12% : 13.80 [16:26:43]line Наличными: 130.00 [16:26:43]line Безнал.: 0.00 [16:26:43]line Место: АЗС № 5 "Партнер Нефть" [16:26:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:26:43]line СНО: Общий режим [16:26:43]line Чек 83 13.09.2024 16:26 [16:26:43]line Смена: 505 ФФД: 1.0 [16:26:43]line ЗНМ: 03000000022 [16:26:43]line РНМ: 0000000000091423 [16:26:43]line Версия ККМ: 001 [16:26:43]line ФМ: 0000000000874692 [16:26:43]line ФД: 92275 [16:26:43]line ФПД: 124710570436216 [16:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T162642&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92275&fm=124710570436216&tin=02508201610067®Number=0000000000091423&sum=13000 [16:26:43]line 0 [16:26:43]OFD Sender: Processing packet 92275 [packets to send 63, broken 62] [16:26:43]ProducePacketName [16:26:43]name=ofd_packets/00092275 [16:26:43]OFD Sender: To server: pG, [16:26:43]CommunicateWithHost lk.salyk.kg:30040 [16:26:43]ConnectInit lk.salyk.kg [16:26:43]written 0, free lines is 4095 [16:26:43]Write to MH i2c: 01 00 00 87 05 8C [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 0C 0D AC [16:26:43]RasterBufferAndPrint [16:26:43]line [16:26:43]line [16:26:43]line [16:26:43]line [16:26:43]line [16:26:43]written 0, free lines is 3346 [16:26:43]MH_Cut [16:26:43]Write to MH i2c: D1 01 00 8E 05 01 65 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: D1 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: D1 01 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: D1 01 00 8E 05 00 64 [16:26:43]Write to MH i2c: 01 00 00 8F 05 94 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:44]*** Cut start [16:26:44]*** Purtial cut [16:26:44]*** Stage 1: CUTSNS_PIN = 1 [16:26:46]Read from MH i2c: 01 [16:26:46]MH_I2C_Read... [16:26:46]*** Stop cut motor [16:26:46]*** Cut end [16:26:46]Read from MH i2c: 01 07 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [16:26:46]process_action close_receipt done [16:26:46]requested_data is exist [16:26:46]produce_requested_data [16:26:46]requested_item fm.sn is exist - process it [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 11 00 00 [16:26:46]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 17 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 66 [16:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:26:46]wFMCommunicate OK [16:26:46]requested_item fd.num is exist - process it [16:26:46]SAM_PROTO_GetFieldsCounters [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 13 00 00 [16:26:46]Write to MH i2c: E2 08 00 91 05 80 13 00 00 00 00 00 00 12 [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 62 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 62 00 91 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 73 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [16:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 73 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:46]wFMCommunicate OK [16:26:46]SAM_PROTO_GetFieldsCounters done [16:26:46]requested_item shift.num is exist - process it [16:26:46]requested_item shift.opened is exist - process it [16:26:46]req_shift_opened [16:26:46]FM_GetShiftState [16:26:46]SAM_PROTO_GetShiftState [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 13 01 00 [16:26:46]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A0 [16:26:46]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:26:46]wFMCommunicate OK [16:26:46]SAM_PROTO_GetShiftState done [16:26:46]FM_GetShiftState done [16:26:46]req_shift_opened done [16:26:46]requested_item shift.open_date is exist - process it [16:26:46]req_shift_open_date [16:26:46]req_shift_open_date done [16:26:46]produce_requested_data done [16:26:46]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92275,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:26:46]process_action_free close_receipt [16:26:46]json_value_free [16:26:46]json_value_free done [16:26:46]process_json_proto returns [16:26:46]Send response to host [16:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92275,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:26:46]free response buf [16:26:46]execute_script done [16:26:46]execute_script returns [16:26:46]free content buf [16:26:46]Sock 9.Close socket [16:26:46]Sock 9.Thread stoped [16:26:48]ConnectInit Can't take IP for lk.salyk.kg [16:26:48]CommunicateWithHost connect error [16:26:48]CommunicateWithHost err = -1 [16:26:48]OFD Sender: Server communicate error [16:26:53]OFD Sender: Processing packet 92275 [packets to send 63, broken 62] [16:26:53]ProducePacketName [16:26:53]name=ofd_packets/00092275 [16:26:53]OFD Sender: To server: pG, [16:26:53]CommunicateWithHost lk.salyk.kg:30040 [16:26:53]ConnectInit lk.salyk.kg [16:26:53]Connected sock=9 [16:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 C4 45 26 01 1F 80 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 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 53 00 00 00 F4 03 04 00 C2 67 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 68 01 00 35 04 06 00 71 6C 71 40 26 78 EE 7A 3F D4 3A C1 7F 4B [16:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 86 37 47 00 2A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 68 01 00 F4 03 04 00 4A 10 E4 66 B6 04 01 00 00 40 98 72 5F BF BD 47 95 [16:26:53]CommunicateWithHost err = 0 [16:26:53]CheckOFDResponse [16:26:53]1017 (14) - 77093643461234 [16:26:53]1041 (16) - 0000000000874692 [16:26:53]1040 (4) - 92275 [16:26:53]1012 (4) - 13.09.2024 10:13 [16:26:53]1206 (1) - 0 [16:26:53]OFD Sender: Remove packet 92275 [16:26:53]ProducePacketName [16:26:53]name=ofd_packets/00092275 [16:26:53]NVStorageDeleteData [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:33]accept exits with 10 [16:30:33]New connection [16:30:33]New thread 3066985828 created [16:30:33]Thread 3067129188 joined [16:30:33]Waiting for new connection... [16:30:33] Sock 10.Parse request [16:30:33]Sock 10.Check first char [16:30:33]Sock 10.First char is OK [16:30:33]request: POST /json_proto HTTP/1.0 [16:30:33]Method: POST [16:30:33]URL: /json_proto [16:30:33]Method is POST - this is cgi request [16:30:33]url: /json_proto [16:30:33]query_string will be loaded in cgi processing [16:30:33]execute_cgi json_proto POST (null) [16:30:33]execute_cgi path=json_proto method=POST [16:30:33]POST find Content-Length [16:30:33]Host: 172.17.57.71:8080 [16:30:33]Content-Length: 614 [16:30:33]Content-Type: application/json [16:30:33] [16:30:33]POST finish read [16:30:33]Found Content-Length = 614 [16:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127208", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:33]execute_script... [16:30: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 : (3)127208", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:33]POST & json_proto [16:30:33]process_json_proto [16:30:33]json parsed OK: [16:30:33]protocol is kg_v1.0 [16:30:33]action value=close_receipt [16:30:33]process_action close_receipt [16:30:33]cmd_close_receipt [16:30:33]MH_GetDate [16:30:33]Write to MH i2c: F0 00 00 93 05 87 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: F0 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: F0 09 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: F0 09 00 93 05 00 AA 68 E4 66 33 3A A4 66 63 [16:30:33]GetLastDocTimeStamp 1726244802 [16:30:33]current date 1726245034 [16:30:33]FM_GetShiftState [16:30:33]SAM_PROTO_GetShiftState [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 13 01 00 [16:30:33]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0E 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A2 [16:30:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:30:33]wFMCommunicate OK [16:30:33]SAM_PROTO_GetShiftState done [16:30:33]FM_GetShiftState done [16:30:33]opened in 1726186930 [16:30:33]opened+sec_in_day 1726273330 [16:30:33]quantity*price = 11000 [16:30:33]sum+1 = 11001 [16:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 84 13.09.2024 16:30 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92276 ФПД: 264761053000256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163034&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92276&fm=264761053000256&tin=02508201610067®Number=0000000000091423&sum=11000 0 [16:30:34]StoreToDocumentArchive [16:30:34]shift 505 fd 92276 [16:30:34]save to /storage/0505/doc_00092276 [16:30:34]save last doc name /storage/0505/doc_00092276 to /storage/kkm_last_doc_name [16:30:34]save OK [16:30:34]Clear old archive folders... [16:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:30:34]tlvbuf is 0100B100 [16:30:34]SAM_PROTO_ClearQueue [16:30:34]wFMCommunicate request_size=4 [16:30:34]MH_SAM_APDU [16:30:34]CAPDU: 80 09 00 00 [16:30:34]Write to MH i2c: E2 08 00 A1 05 80 09 00 00 00 00 00 00 18 [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:34]Read from MH i2c: E2 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: E2 03 00 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [16:30:34]RAPDU: 90 00 [16:30:34]wFMCommunicate OK [16:30:34]SAM_PROTO_ClearQueue done [16:30:34]KKMCreateOFDPacket [16:30:34]OFDProtocolAddRootSTLVToBuf [16:30:34]FM_MakeSignedData [16:30:34]FM_MakeSignedData [16:30:34]SAM_PROTO_SignData [16:30:34]wFMCommunicate request_size=4 [16:30:34]MH_SAM_APDU [16:30:34]CAPDU: 80 0D 01 02 [16:30:34]Write to MH i2c: E2 08 00 A2 05 80 0D 01 02 00 00 00 00 20 [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:34]Read from MH i2c: E2 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: E2 03 00 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [16:30:34]RAPDU: 90 00 [16:30:34]wFMCommunicate OK [16:30:34]wFMCommunicate request_size=255 [16:30:34]MH_SAM_APDU [16:30:34]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 AA 68 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [16:30:34]Write to MH i2c: E2 02 01 A3 05 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 AA 68 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 3C [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:35]Read from MH i2c: E2 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 03 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [16:30:35]RAPDU: 90 00 [16:30:35]wFMCommunicate OK [16:30:35]wFMCommunicate request_size=25 [16:30:35]MH_SAM_APDU [16:30:35]CAPDU: 80 0D 02 02 14 39 32 10 04 04 00 74 68 01 00 35 04 06 00 F0 CC 7C 83 B2 40 [16:30:35]Write to MH i2c: E2 1C 00 A4 05 80 0D 02 02 14 00 39 32 10 04 04 00 74 68 01 00 35 04 06 00 F0 CC 7C 83 B2 40 00 00 97 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:35]Read from MH i2c: E2 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 03 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [16:30:35]RAPDU: 90 00 [16:30:35]wFMCommunicate OK [16:30:35]wFMCommunicate request_size=4 [16:30:35]MH_SAM_APDU [16:30:35]CAPDU: 80 0D 03 02 [16:30:35]Write to MH i2c: E2 08 00 A5 05 80 0D 03 02 00 00 00 00 25 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:35]Read from MH i2c: E2 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 0B 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 0B 00 A5 05 00 22 0D 2D D0 FF DC AA 12 90 00 E9 [16:30:35]RAPDU: 22 0D 2D D0 FF DC AA 12 90 00 [16:30:35]wFMCommunicate OK [16:30:35]SAM_PROTO_SignData done [16:30:35]FM_MakeSignedData done [16:30:35]CreateOFDProtocolMessage [16:30:35]wFMCommunicate request_size=4 [16:30:35]MH_SAM_APDU [16:30:35]CAPDU: 80 11 00 00 [16:30:35]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:35]Read from MH i2c: E2 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 17 00 [16:30:35]MH_I2C_Read... [16:30:35]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 34 36 39 32 90 00 7C [16:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:30:35]wFMCommunicate OK [16:30:35]CreateOFDProtocolMessage done [16:30:35]OFDSenderStorePacket 92276 [16:30:35]StoreOFDPacket docnum=92276 [16:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 2E 12 16 01 10 36 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 AA 68 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 68 01 00 35 04 06 00 F0 CC 7C 83 B2 40 22 0D 2D D0 FF DC AA 12 [16:30:35]CheckFolder [16:30:35]dirname=/storage/ofd_packets [16:30:35]CheckFolder done [16:30:35]ProducePacketName [16:30:35]name=ofd_packets/00092276 [16:30:35]NVStorageSaveData ofd_packets/00092276 [16:30:35]File name is /storage/ofd_packets/00092276 [16:30:35]Write 316 bytes [16:30:35]NVStorageSaveData done [16:30:35]OFDSenderStorePacket done [16:30:35]KKMCreateOFDPacket done [16:30:35]NVStorageSaveData kkm_last_timestamp [16:30:35]File name is /storage/kkm_last_timestamp [16:30:35]Write 4 bytes [16:30:35]NVStorageSaveData done [16:30:35]ExternCall_PrintAddStr [16:30:35]wPrintStart [16:30:35]Write to MH i2c: 01 00 00 A7 05 AC [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 07 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [16:30:35]RasterBufferAndPrint [16:30:35]line Счет N : (3)127208 [16:30:35]line ИНН: 02508201610067 [16:30:35]line Контрольно-Кассовый Чек [16:30:35]line ПРОДАЖА [16:30:35]line Товар: 4870001570071 [16:30:35]line Напиток Pepsi 1л [16:30:35]line 1.000 * 110.00 [16:30:35]line = 110.00 [16:30:35]line НДС 12% НСП 1% [16:30:35]line > о реализуемом товаре [16:30:35]line ИТОГО: 110.00 [16:30:35]line НСП 1% : 0.97 [16:30:35]line НДС 12% : 11.68 [16:30:35]line Наличными: 110.00 [16:30:35]line Безнал.: 0.00 [16:30:35]line Место: АЗС № 5 "Партнер Нефть" [16:30:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:30:35]line СНО: Общий режим [16:30:35]line Чек 84 13.09.2024 16:30 [16:30:35]line Смена: 505 ФФД: 1.0 [16:30:35]line ЗНМ: 03000000022 [16:30:35]line РНМ: 0000000000091423 [16:30:35]line Версия ККМ: 001 [16:30:35]line ФМ: 0000000000874692 [16:30:35]line ФД: 92276 [16:30:35]line ФПД: 264761053000256 [16:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163034&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92276&fm=264761053000256&tin=02508201610067®Number=0000000000091423&sum=11000 [16:30:35]OFD Sender: Processing packet 92276 [packets to send 63, broken 62] [16:30:35]ProducePacketName [16:30:35]name=ofd_packets/00092276 [16:30:35]OFD Sender: To server: pG, [16:30:35]CommunicateWithHost lk.salyk.kg:30040 [16:30:35]ConnectInit lk.salyk.kg [16:30:35]line 0 [16:30:35]written 0, free lines is 4095 [16:30:35]Connected sock=9 [16:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 2E 12 16 01 10 36 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 AA 68 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 68 01 00 35 04 06 00 F0 CC 7C 83 B2 40 22 0D 2D D0 FF DC AA 12 [16:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DF 0B 47 00 E0 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 68 01 00 F4 03 04 00 29 11 E4 66 B6 04 01 00 00 6A 30 C4 F8 D1 5F 71 97 [16:30:35]CommunicateWithHost err = 0 [16:30:35]CheckOFDResponse [16:30:35]1017 (14) - 77093643461234 [16:30:35]1041 (16) - 0000000000874692 [16:30:35]1040 (4) - 92276 [16:30:35]1012 (4) - 13.09.2024 10:17 [16:30:35]1206 (1) - 0 [16:30:35]OFD Sender: Remove packet 92276 [16:30:35]ProducePacketName [16:30:35]name=ofd_packets/00092276 [16:30:35]NVStorageDeleteData [16:30:35]Write to MH i2c: 01 00 00 CF 05 D4 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 07 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 1E 0D 06 [16:30:35]RasterBufferAndPrint [16:30:35]line [16:30:35]line [16:30:35]line [16:30:35]line [16:30:35]line [16:30:35]written 0, free lines is 3364 [16:30:35]MH_Cut [16:30:35]Write to MH i2c: D1 01 00 D6 05 01 AD [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: D1 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: D1 01 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: D1 01 00 D6 05 00 AC [16:30:35]Write to MH i2c: 01 00 00 D7 05 DC [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:36]OFD Sender: No OFD packet to send [16:30:36]*** Cut start [16:30:36]*** Purtial cut [16:30:36]*** Stage 1: CUTSNS_PIN = 1 [16:30:38]Read from MH i2c: 01 [16:30:38]MH_I2C_Read... [16:30:38]*** Stop cut motor [16:30:38]*** Cut end [16:30:38]Read from MH i2c: 01 07 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [16:30:38]process_action close_receipt done [16:30:38]requested_data is exist [16:30:38]produce_requested_data [16:30:38]requested_item fm.sn is exist - process it [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 11 00 00 [16:30:38]Write to MH i2c: E2 08 00 D8 05 80 11 00 00 00 00 00 00 57 [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 17 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 17 00 D8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [16:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:30:38]wFMCommunicate OK [16:30:38]requested_item fd.num is exist - process it [16:30:38]SAM_PROTO_GetFieldsCounters [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 13 00 00 [16:30:38]Write to MH i2c: E2 08 00 D9 05 80 13 00 00 00 00 00 00 5A [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 62 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 62 00 D9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 74 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [16:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 74 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:38]wFMCommunicate OK [16:30:38]SAM_PROTO_GetFieldsCounters done [16:30:38]requested_item shift.num is exist - process it [16:30:38]requested_item shift.opened is exist - process it [16:30:38]req_shift_opened [16:30:38]FM_GetShiftState [16:30:38]SAM_PROTO_GetShiftState [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 13 01 00 [16:30:38]Write to MH i2c: E2 08 00 DA 05 80 13 01 00 00 00 00 00 5C [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 0E 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 0E 00 DA 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E8 [16:30:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:30:38]wFMCommunicate OK [16:30:38]SAM_PROTO_GetShiftState done [16:30:38]FM_GetShiftState done [16:30:38]req_shift_opened done [16:30:38]requested_item shift.open_date is exist - process it [16:30:38]req_shift_open_date [16:30:38]req_shift_open_date done [16:30:38]produce_requested_data done [16:30:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92276,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:30:38]process_action_free close_receipt [16:30:38]json_value_free [16:30:38]json_value_free done [16:30:38]process_json_proto returns [16:30:38]Send response to host [16:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92276,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:30:38]free response buf [16:30:38]execute_script done [16:30:38]execute_script returns [16:30:38]free content buf [16:30:38]Sock 10.Close socket [16:30:38]Sock 10.Thread stoped [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:55]accept exits with 7 [16:33:55]New connection [16:33:55]New thread 3067129188 created [16:33:55]Thread 3066985828 joined [16:33:55]Waiting for new connection... [16:33:55] Sock 7.Parse request [16:33:55]Sock 7.Check first char [16:33:55]Sock 7.First char is OK [16:33:55]request: POST /json_proto HTTP/1.0 [16:33:55]Method: POST [16:33:55]URL: /json_proto [16:33:55]Method is POST - this is cgi request [16:33:55]url: /json_proto [16:33:55]query_string will be loaded in cgi processing [16:33:55]execute_cgi json_proto POST (null) [16:33:55]execute_cgi path=json_proto method=POST [16:33:55]POST find Content-Length [16:33:55]Host: 172.17.57.71:8080 [16:33:55]Content-Length: 677 [16:33:55]Content-Type: application/json [16:33:55] [16:33:55]POST finish read [16:33:55]Found Content-Length = 677 [16:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646933", "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" ] } } [16:33:55]execute_script... [16:33: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)646933", "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" ] } } [16:33:55]POST & json_proto [16:33:55]process_json_proto [16:33:55]json parsed OK: [16:33:55]protocol is kg_v1.0 [16:33:55]action value=close_receipt [16:33:55]process_action close_receipt [16:33:55]cmd_close_receipt [16:33:55]MH_GetDate [16:33:55]Write to MH i2c: F0 00 00 DB 05 CF [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 DB 05 00 74 69 E4 66 33 3A A4 66 76 [16:33:55]GetLastDocTimeStamp 1726245034 [16:33:55]current date 1726245236 [16:33:55]FM_GetShiftState [16:33:55]SAM_PROTO_GetShiftState [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 13 01 00 [16:33:55]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EA [16:33:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_GetShiftState done [16:33:55]FM_GetShiftState done [16:33:55]opened in 1726186930 [16:33:55]opened+sec_in_day 1726273330 [16:33:55]quantity*price = 50041 [16:33:55]sum+1 = 50042 [16:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 85 13.09.2024 16:33 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92277 ФПД: 171176342620639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163356&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92277&fm=171176342620639&tin=02508201610067®Number=0000000000091423&sum=50000 [16:33:56]StoreToDocumentArchive [16:33:56]shift 505 fd 92277 [16:33:56]save to /storage/0505/doc_00092277 [16:33:56]save last doc name /storage/0505/doc_00092277 to /storage/kkm_last_doc_name [16:33:56]save OK [16:33:56]Clear old archive folders... [16:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:56]tlvbuf is 01014DB0 [16:33:56]SAM_PROTO_ClearQueue [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 09 00 00 [16:33:56]Write to MH i2c: E2 08 00 E9 05 80 09 00 00 00 00 00 00 60 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_ClearQueue done [16:33:56]KKMCreateOFDPacket [16:33:56]OFDProtocolAddRootSTLVToBuf [16:33:56]FM_MakeSignedData [16:33:56]FM_MakeSignedData [16:33:56]SAM_PROTO_SignData [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 01 02 [16:33:56]Write to MH i2c: E2 08 00 EA 05 80 0D 01 02 00 00 00 00 68 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=255 [16:33:56]MH_SAM_APDU [16:33: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 55 00 00 00 F4 03 04 00 74 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 68 01 00 35 04 06 00 9B [16:33:56]Write to MH i2c: E2 02 01 EB 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 55 00 00 00 F4 03 04 00 74 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 68 01 00 35 04 06 00 9B 00 00 E4 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]OFD Sender: No OFD packet to send [16:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=10 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 02 02 05 AF 19 18 89 DF [16:33:56]Write to MH i2c: E2 0D 00 EC 05 80 0D 02 02 05 00 AF 19 18 89 DF 00 00 BD [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 03 02 [16:33:56]Write to MH i2c: E2 08 00 ED 05 80 0D 03 02 00 00 00 00 6D [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0B 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0B 00 ED 05 00 7A 6F B6 8C 4C 1B 18 4D 90 00 65 [16:33:56]RAPDU: 7A 6F B6 8C 4C 1B 18 4D 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_SignData done [16:33:56]FM_MakeSignedData done [16:33:56]CreateOFDProtocolMessage [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 11 00 00 [16:33:56]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C4 [16:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:33:56]wFMCommunicate OK [16:33:56]CreateOFDProtocolMessage done [16:33:56]OFDSenderStorePacket 92277 [16:33:56]StoreOFDPacket docnum=92277 [16:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 71 55 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 74 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 68 01 00 35 04 06 00 9B AF 19 18 89 DF 7A 6F B6 8C 4C 1B 18 4D [16:33:56]CheckFolder [16:33:56]dirname=/storage/ofd_packets [16:33:56]CheckFolder done [16:33:56]ProducePacketName [16:33:56]name=ofd_packets/00092277 [16:33:56]NVStorageSaveData ofd_packets/00092277 [16:33:56]File name is /storage/ofd_packets/00092277 [16:33:56]Write 301 bytes [16:33:56]NVStorageSaveData done [16:33:56]OFDSenderStorePacket done [16:33:56]KKMCreateOFDPacket done [16:33:56]NVStorageSaveData kkm_last_timestamp [16:33:56]File name is /storage/kkm_last_timestamp [16:33:56]Write 4 bytes [16:33:56]NVStorageSaveData done [16:33:56]ExternCall_PrintAddStr [16:33:56]wPrintStart [16:33:56]Write to MH i2c: 01 00 00 EF 05 F4 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [16:33:56]RasterBufferAndPrint [16:33:56]line Счет N : (1)646933 [16:33:56]line ИНН: 02508201610067 [16:33:56]line Контрольно-Кассовый Чек [16:33:56]line ПРОДАЖА [16:33:56]line ТРК (МРК, ГНК) : 33 [16:33:56]line Товар: 2710124130 [16:33:56]line Аи-92-К-5 [16:33:56]line 7.480 * 66.90 [16:33:56]line = 500.41 [16:33:56]line НДС 12% НСП 1% [16:33:56]line > о реализуемом товаре [16:33:56]line ОКРУГЛЕНИЕ: -0.41 [16:33:56]line ИТОГО: 500.00 [16:33:56]line Внесено: 500.00 [16:33:56]line СДАЧА: 0.00 [16:33:56]line НСП 1% : 4.43 [16:33:56]line НДС 12% : 53.14 [16:33:56]line Наличными: 500.00 [16:33:56]line Безнал.: 0.00 [16:33:56]line Место: АЗС № 5 "Партнер Нефть" [16:33:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:33:56]line СНО: Общий режим [16:33:56]line Чек 85 13.09.2024 16:33 [16:33:56]line Смена: 505 ФФД: 1.0 [16:33:56]line ЗНМ: 03000000022 [16:33:56]line РНМ: 0000000000091423 [16:33:56]line Версия ККМ: 001 [16:33:56]line ФМ: 0000000000874692 [16:33:56]line ФД: 92277 [16:33:56]line ФПД: 171176342620639 [16:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163356&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92277&fm=171176342620639&tin=02508201610067®Number=0000000000091423&sum=50000 [16:33:57]OFD Sender: Processing packet 92277 [packets to send 63, broken 62] [16:33:57]ProducePacketName [16:33:57]name=ofd_packets/00092277 [16:33:57]OFD Sender: To server: pG, [16:33:57]CommunicateWithHost lk.salyk.kg:30040 [16:33:57]ConnectInit lk.salyk.kg [16:33:57]written 0, free lines is 4095 [16:33:57]Connected sock=10 [16:33:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 71 55 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 74 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 68 01 00 35 04 06 00 9B AF 19 18 89 DF 7A 6F B6 8C 4C 1B 18 4D [16:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 37 1A 47 00 3E 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 34 36 39 32 10 04 04 00 75 68 01 00 F4 03 04 00 F2 11 E4 66 B6 04 01 00 00 53 FB B3 F9 BA F5 CC 0D [16:33:57]CommunicateWithHost err = 0 [16:33:57]CheckOFDResponse [16:33:57]1017 (14) - 77093643461234 [16:33:57]1041 (16) - 0000000000874692 [16:33:57]1040 (4) - 92277 [16:33:57]1012 (4) - 13.09.2024 10:20 [16:33:57]1206 (1) - 0 [16:33:57]OFD Sender: Remove packet 92277 [16:33:57]ProducePacketName [16:33:57]name=ofd_packets/00092277 [16:33:57]NVStorageDeleteData [16:33:57]Write to MH i2c: 01 00 00 1A 06 20 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 F0 0C 23 [16:33:57]RasterBufferAndPrint [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]written 0, free lines is 3318 [16:33:57]MH_Cut [16:33:57]Write to MH i2c: D1 01 00 21 06 01 F9 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 01 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 01 00 21 06 00 F8 [16:33:57]Write to MH i2c: 01 00 00 22 06 28 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]OFD Sender: No OFD packet to send [16:33:58]*** Cut start [16:33:58]*** Purtial cut [16:33:58]*** Stage 1: CUTSNS_PIN = 1 [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]*** Stop cut motor [16:34:00]*** Cut end [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 22 06 00 00 00 00 00 FF 0F 3D [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 23 06 80 11 00 00 00 00 00 00 A3 [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 23 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [16:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 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 24 06 80 13 00 00 00 00 00 00 A6 [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 24 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 75 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 75 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 25 06 80 13 01 00 00 00 00 00 A8 [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 25 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 34 [16:34:00]RAPDU: 09 00 01 B2 85 E3 66 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":"0000000000874692","fd.num":92277,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [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":"0000000000874692","fd.num":92277,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [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 7.Close socket [16:34:00]Sock 7.Thread stoped [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:32]accept exits with 9 [16:35:32]New connection [16:35:32]New thread 3066985828 created [16:35:32]Thread 3067129188 joined [16:35:32]Waiting for new connection... [16:35:32] Sock 9.Parse request [16:35:32]Sock 9.Check first char [16:35:32]Sock 9.First char is OK [16:35:32]request: POST /json_proto HTTP/1.0 [16:35:32]Method: POST [16:35:32]URL: /json_proto [16:35:32]Method is POST - this is cgi request [16:35:32]url: /json_proto [16:35:32]query_string will be loaded in cgi processing [16:35:32]execute_cgi json_proto POST (null) [16:35:32]execute_cgi path=json_proto method=POST [16:35:32]POST find Content-Length [16:35:32]Host: 172.17.57.71:8080 [16:35:32]Content-Length: 901 [16:35:32]Content-Type: application/json [16:35:32] [16:35:32]POST finish read [16:35:32]Found Content-Length = 901 [16:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127209", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:32]execute_script... [16:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127209", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:32]POST & json_proto [16:35:32]process_json_proto [16:35:32]json parsed OK: [16:35:32]protocol is kg_v1.0 [16:35:32]action value=close_receipt [16:35:32]process_action close_receipt [16:35:32]cmd_close_receipt [16:35:32]MH_GetDate [16:35:32]Write to MH i2c: F0 00 00 26 06 1B [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: F0 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: F0 09 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: F0 09 00 26 06 00 D6 69 E4 66 33 3A A4 66 24 [16:35:32]GetLastDocTimeStamp 1726245236 [16:35:32]current date 1726245334 [16:35:32]FM_GetShiftState [16:35:32]SAM_PROTO_GetShiftState [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 13 01 00 [16:35:32]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0E 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 36 [16:35:32]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:35:32]wFMCommunicate OK [16:35:32]SAM_PROTO_GetShiftState done [16:35:32]FM_GetShiftState done [16:35:32]opened in 1726186930 [16:35:32]opened+sec_in_day 1726273330 [16:35:32]quantity*price = 14400 [16:35:32]sum+1 = 14401 [16:35:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.86 НДС 12% : 22.40 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 86 13.09.2024 16:35 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92278 ФПД: 51535541428113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163534&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92278&fm=51535541428113&tin=02508201610067®Number=0000000000091423&sum=21100 0 [16:35:33]StoreToDocumentArchive [16:35:33]shift 505 fd 92278 [16:35:33]save to /storage/0505/doc_00092278 [16:35:33]save last doc name /storage/0505/doc_00092278 to /storage/kkm_last_doc_name [16:35:33]save OK [16:35:33]Clear old archive folders... [16:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=389 [16:35:33]tlvbuf is 01007690 [16:35:33]SAM_PROTO_ClearQueue [16:35:33]wFMCommunicate request_size=4 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 09 00 00 [16:35:33]Write to MH i2c: E2 08 00 34 06 80 09 00 00 00 00 00 00 AC [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [16:35:33]RAPDU: 90 00 [16:35:33]wFMCommunicate OK [16:35:33]SAM_PROTO_ClearQueue done [16:35:33]KKMCreateOFDPacket [16:35:33]OFDProtocolAddRootSTLVToBuf [16:35:33]FM_MakeSignedData [16:35:33]FM_MakeSignedData [16:35:33]SAM_PROTO_SignData [16:35:33]wFMCommunicate request_size=4 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 0D 01 02 [16:35:33]Write to MH i2c: E2 08 00 35 06 80 0D 01 02 00 00 00 00 B4 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [16:35:33]RAPDU: 90 00 [16:35:33]wFMCommunicate OK [16:35:33]wFMCommunicate request_size=255 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [16:35:33]Write to MH i2c: E2 02 01 36 06 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 89 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 03 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [16:35:34]RAPDU: 90 00 [16:35:34]wFMCommunicate OK [16:35:34]wFMCommunicate request_size=148 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 D6 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 68 01 00 35 04 06 00 2E DF 0D A3 DF 91 [16:35:34]Write to MH i2c: E2 97 00 37 06 80 0D 02 02 8F 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 D6 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 68 01 00 35 04 06 00 2E DF 0D A3 DF 91 00 00 26 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 03 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [16:35:34]RAPDU: 90 00 [16:35:34]wFMCommunicate OK [16:35:34]wFMCommunicate request_size=4 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 0D 03 02 [16:35:34]Write to MH i2c: E2 08 00 38 06 80 0D 03 02 00 00 00 00 B9 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0B 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0B 00 38 06 00 5F 4E DA 20 4C 6D B6 DA 90 00 AA [16:35:34]RAPDU: 5F 4E DA 20 4C 6D B6 DA 90 00 [16:35:34]wFMCommunicate OK [16:35:34]SAM_PROTO_SignData done [16:35:34]FM_MakeSignedData done [16:35:34]CreateOFDProtocolMessage [16:35:34]wFMCommunicate request_size=4 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 11 00 00 [16:35:34]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 17 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 10 [16:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:35:34]wFMCommunicate OK [16:35:34]CreateOFDProtocolMessage done [16:35:34]OFDSenderStorePacket 92278 [16:35:34]StoreOFDPacket docnum=92278 [16:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 99 01 00 00 B7 3A 91 01 2E B4 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 D6 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 68 01 00 35 04 06 00 2E DF 0D A3 DF 91 5F 4E DA 20 4C 6D B6 DA [16:35:34]CheckFolder [16:35:34]dirname=/storage/ofd_packets [16:35:34]CheckFolder done [16:35:34]ProducePacketName [16:35:34]name=ofd_packets/00092278 [16:35:34]NVStorageSaveData ofd_packets/00092278 [16:35:34]File name is /storage/ofd_packets/00092278 [16:35:34]Write 439 bytes [16:35:34]NVStorageSaveData done [16:35:34]OFDSenderStorePacket done [16:35:34]KKMCreateOFDPacket done [16:35:34]NVStorageSaveData kkm_last_timestamp [16:35:34]File name is /storage/kkm_last_timestamp [16:35:34]Write 4 bytes [16:35:34]NVStorageSaveData done [16:35:34]ExternCall_PrintAddStr [16:35:34]wPrintStart [16:35:34]Write to MH i2c: 01 00 00 3A 06 40 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 07 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [16:35:34]RasterBufferAndPrint [16:35:34]line Счет N : (3)127209 [16:35:34]line ИНН: 02508201610067 [16:35:34]line Контрольно-Кассовый Чек [16:35:34]line ПРОДАЖА [16:35:34]line Товар: 48743587 [16:35:34]line Сигареты Winston XStyle Silver [16:35:34]line 1.000 * 144.00 [16:35:34]line = 144.00 [16:35:34]line НДС 12% НСП 1% [16:35:34]line > о реализуемом товаре [16:35:34]line Товар: 8710732217097 [16:35:34]line Зажигалка Cricket ПН пьезо [16:35:34]line 1.000 * 67.00 [16:35:34]line = 67.00 [16:35:34]line НДС 12% НСП 1% [16:35:34]line > о реализуемом товаре [16:35:34]line ИТОГО: 211.00 [16:35:34]line НСП 1% : 1.86 [16:35:34]line НДС 12% : 22.40 [16:35:34]line Наличными: 211.00 [16:35:34]line Безнал.: 0.00 [16:35:34]line Место: АЗС № 5 "Партнер Нефть" [16:35:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:35:34]line СНО: Общий режим [16:35:34]line Чек 86 13.09.2024 16:35 [16:35:34]line Смена: 505 ФФД: 1.0 [16:35:34]line ЗНМ: 03000000022 [16:35:34]line РНМ: 0000000000091423 [16:35:34]line Версия ККМ: 001 [16:35:34]line ФМ: 0000000000874692 [16:35:34]line ФД: 92278 [16:35:34]line ФПД: 51535541428113 [16:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T163534&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92278&fm=51535541428113&tin=02508201610067®Number=0000000000091423&sum=21100 [16:35:34]line 0 [16:35:34]OFD Sender: Processing packet 92278 [packets to send 63, broken 62] [16:35:34]ProducePacketName [16:35:34]name=ofd_packets/00092278 [16:35:34]OFD Sender: To server: pG, [16:35:34]CommunicateWithHost lk.salyk.kg:30040 [16:35:34]ConnectInit lk.salyk.kg [16:35:34]written 0, free lines is 4095 [16:35:34]Connected sock=10 [16:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 99 01 00 00 B7 3A 91 01 2E B4 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 D6 69 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 68 01 00 35 04 06 00 2E DF 0D A3 DF 91 5F 4E DA 20 4C 6D B6 DA [16:35:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F7 79 47 00 2F B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 68 01 00 F4 03 04 00 54 12 E4 66 B6 04 01 00 00 B4 B9 9C 8B 7C 1B C1 5F [16:35:35]CommunicateWithHost err = 0 [16:35:35]CheckOFDResponse [16:35:35]1017 (14) - 77093643461234 [16:35:35]1041 (16) - 0000000000874692 [16:35:35]1040 (4) - 92278 [16:35:35]1012 (4) - 13.09.2024 10:22 [16:35:35]1206 (1) - 0 [16:35:35]OFD Sender: Remove packet 92278 [16:35:35]ProducePacketName [16:35:35]name=ofd_packets/00092278 [16:35:35]NVStorageDeleteData [16:35:35]Write to MH i2c: 01 00 00 69 06 6F [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: 01 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: 01 07 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 BF 0C 41 [16:35:35]RasterBufferAndPrint [16:35:35]line [16:35:35]line [16:35:35]line [16:35:35]line [16:35:35]line [16:35:35]written 0, free lines is 3272 [16:35:35]MH_Cut [16:35:35]Write to MH i2c: D1 01 00 70 06 01 48 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: D1 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: D1 01 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: D1 01 00 70 06 00 47 [16:35:35]Write to MH i2c: 01 00 00 71 06 77 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]OFD Sender: No OFD packet to send [16:35:36]*** Cut start [16:35:36]*** Purtial cut [16:35:36]*** Stage 1: CUTSNS_PIN = 1 [16:35:38]Read from MH i2c: 01 [16:35:38]MH_I2C_Read... [16:35:38]*** Stop cut motor [16:35:38]*** Cut end [16:35:38]Read from MH i2c: 01 07 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 FF 0F 8C [16:35:38]process_action close_receipt done [16:35:38]requested_data is exist [16:35:38]produce_requested_data [16:35:38]requested_item fm.sn is exist - process it [16:35:38]wFMCommunicate request_size=4 [16:35:38]MH_SAM_APDU [16:35:38]CAPDU: 80 11 00 00 [16:35:38]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [16:35:38]Write i2c OK [16:35:38]MH_I2C_Read... [16:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:38]Read from MH i2c: E2 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 17 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 49 [16:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:35:38]wFMCommunicate OK [16:35:38]requested_item fd.num is exist - process it [16:35:38]SAM_PROTO_GetFieldsCounters [16:35:38]wFMCommunicate request_size=4 [16:35:38]MH_SAM_APDU [16:35:38]CAPDU: 80 13 00 00 [16:35:38]Write to MH i2c: E2 08 00 73 06 80 13 00 00 00 00 00 00 F5 [16:35:38]Write i2c OK [16:35:38]MH_I2C_Read... [16:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:38]Read from MH i2c: E2 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 62 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 62 00 73 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 76 68 01 00 0E 04 04 00 F9 01 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 EF [16: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 76 68 01 00 0E 04 04 00 F9 01 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 [16:35:38]wFMCommunicate OK [16:35:38]SAM_PROTO_GetFieldsCounters done [16:35:38]requested_item shift.num is exist - process it [16:35:38]requested_item shift.opened is exist - process it [16:35:38]req_shift_opened [16:35:38]FM_GetShiftState [16:35:38]SAM_PROTO_GetShiftState [16:35:38]wFMCommunicate request_size=4 [16:35:38]MH_SAM_APDU [16:35:38]CAPDU: 80 13 01 00 [16:35:38]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [16:35:38]Write i2c OK [16:35:38]MH_I2C_Read... [16:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:38]Read from MH i2c: E2 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 0E 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 83 [16:35:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:35:38]wFMCommunicate OK [16:35:38]SAM_PROTO_GetShiftState done [16:35:38]FM_GetShiftState done [16:35:38]req_shift_opened done [16:35:38]requested_item shift.open_date is exist - process it [16:35:38]req_shift_open_date [16:35:38]req_shift_open_date done [16:35:38]produce_requested_data done [16:35:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92278,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:35:38]process_action_free close_receipt [16:35:38]json_value_free [16:35:38]json_value_free done [16:35:38]process_json_proto returns [16:35:38]Send response to host [16:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92278,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:35:38]free response buf [16:35:38]execute_script done [16:35:38]execute_script returns [16:35:38]free content buf [16:35:38]Sock 9.Close socket [16:35:38]Sock 9.Thread stoped [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:30]accept exits with 7 [16:47:30]New connection [16:47:30]New thread 3067129188 created [16:47:30]Thread 3066985828 joined [16:47:30]Waiting for new connection... [16:47:30] Sock 7.Parse request [16:47:30]Sock 7.Check first char [16:47:30]Sock 7.First char is OK [16:47:30]request: POST /json_proto HTTP/1.0 [16:47:30]Method: POST [16:47:30]URL: /json_proto [16:47:30]Method is POST - this is cgi request [16:47:30]url: /json_proto [16:47:30]query_string will be loaded in cgi processing [16:47:30]execute_cgi json_proto POST (null) [16:47:30]execute_cgi path=json_proto method=POST [16:47:30]POST find Content-Length [16:47:30]Host: 172.17.57.71:8080 [16:47:30]Content-Length: 1658 [16:47:30]Content-Type: application/json [16:47:30] [16:47:30]POST finish read [16:47:30]Found Content-Length = 1658 [16:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127210", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:30]execute_script... [16:47: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 : (3)127210", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:30]POST & json_proto [16:47:30]process_json_proto [16:47:30]json parsed OK: [16:47:30]protocol is kg_v1.0 [16:47:30]action value=close_receipt [16:47:30]process_action close_receipt [16:47:30]cmd_close_receipt [16:47:30]MH_GetDate [16:47:30]Write to MH i2c: F0 00 00 75 06 6A [16:47:30]Write i2c OK [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: F0 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: F0 09 00 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: F0 09 00 75 06 00 A3 6C E4 66 33 3A A4 66 43 [16:47:30]GetLastDocTimeStamp 1726245334 [16:47:30]current date 1726246051 [16:47:30]FM_GetShiftState [16:47:30]SAM_PROTO_GetShiftState [16:47:30]wFMCommunicate request_size=4 [16:47:30]MH_SAM_APDU [16:47:30]CAPDU: 80 13 01 00 [16:47:30]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [16:47:30]Write i2c OK [16:47:30]MH_I2C_Read... [16:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:30]Read from MH i2c: E2 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: E2 0E 00 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 85 [16:47:30]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:47:30]wFMCommunicate OK [16:47:30]SAM_PROTO_GetShiftState done [16:47:30]FM_GetShiftState done [16:47:30]opened in 1726186930 [16:47:30]opened+sec_in_day 1726273330 [16:47:30]quantity*price = 15000 [16:47:30]sum+1 = 15001 [16:47:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8904103304060 Презерватив ITEX жев резинка 3 шт 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 660.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 0.00 Безнал.: 660.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 87 13.09.2024 16:47 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92279 ФПД: 196776447671940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T164731&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92279&fm=196776447671940&tin=02508201610067®Number=0000000000091423&sum=66000 0 [16:47:31]StoreToDocumentArchive [16:47:31]shift 505 fd 92279 [16:47:31]save to /storage/0505/doc_00092279 [16:47:31]save last doc name /storage/0505/doc_00092279 to /storage/kkm_last_doc_name [16:47:31]save OK [16:47:31]Clear old archive folders... [16:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=619 [16:47:31]tlvbuf is 010072C0 [16:47:31]SAM_PROTO_ClearQueue [16:47:31]wFMCommunicate request_size=4 [16:47:31]MH_SAM_APDU [16:47:31]CAPDU: 80 09 00 00 [16:47:31]Write to MH i2c: E2 08 00 83 06 80 09 00 00 00 00 00 00 FB [16:47:31]Write i2c OK [16:47:31]MH_I2C_Read... [16:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:31]Read from MH i2c: E2 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [16:47:31]RAPDU: 90 00 [16:47:31]wFMCommunicate OK [16:47:31]SAM_PROTO_ClearQueue done [16:47:31]KKMCreateOFDPacket [16:47:31]OFDProtocolAddRootSTLVToBuf [16:47:31]FM_MakeSignedData [16:47:31]FM_MakeSignedData [16:47:31]SAM_PROTO_SignData [16:47:31]wFMCommunicate request_size=4 [16:47:31]MH_SAM_APDU [16:47:31]CAPDU: 80 0D 01 02 [16:47:31]Write to MH i2c: E2 08 00 84 06 80 0D 01 02 00 00 00 00 03 [16:47:31]Write i2c OK [16:47:31]MH_I2C_Read... [16:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:31]Read from MH i2c: E2 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [16:47:31]RAPDU: 90 00 [16:47:31]wFMCommunicate OK [16:47:31]wFMCommunicate request_size=255 [16:47:31]MH_SAM_APDU [16:47:31]CAPDU: 80 0D 02 02 FA 03 00 6B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 [16:47:31]Write to MH i2c: E2 02 01 85 06 80 0D 02 02 FA 00 03 00 6B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 00 00 B5 [16:47:31]Write i2c OK [16:47:31]MH_I2C_Read... [16:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:31]Read from MH i2c: E2 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [16:47:31]RAPDU: 90 00 [16:47:31]wFMCommunicate OK [16:47:31]wFMCommunicate request_size=255 [16:47:31]MH_SAM_APDU [16:47:31]CAPDU: 80 0D 02 02 FA 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 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 [16:47:31]Write to MH i2c: E2 02 01 86 06 80 0D 02 02 FA 00 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 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 00 00 2D [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]wFMCommunicate request_size=128 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 02 02 7B F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A3 6C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 68 01 00 35 04 06 00 B2 F7 96 43 7E 84 [16:47:32]Write to MH i2c: E2 83 00 87 06 80 0D 02 02 7B 00 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A3 6C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 68 01 00 35 04 06 00 B2 F7 96 43 7E 84 00 00 8D [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 03 02 [16:47:32]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0B 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0B 00 88 06 00 EE 5A 65 E3 42 7D 28 D0 90 00 51 [16:47:32]RAPDU: EE 5A 65 E3 42 7D 28 D0 90 00 [16:47:32]wFMCommunicate OK [16:47:32]SAM_PROTO_SignData done [16:47:32]FM_MakeSignedData done [16:47:32]CreateOFDProtocolMessage [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 11 00 00 [16:47:32]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 60 [16:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:47:32]wFMCommunicate OK [16:47:32]CreateOFDProtocolMessage done [16:47:32]OFDSenderStorePacket 92279 [16:47:32]StoreOFDPacket docnum=92279 [16:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 7F 02 00 00 9A 86 77 02 21 05 5A 03 01 00 03 00 6B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 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 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A3 6C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 68 01 00 35 04 06 00 B2 F7 96 43 7E 84 EE 5A 65 E3 42 7D 28 D0 [16:47:32]CheckFolder [16:47:32]dirname=/storage/ofd_packets [16:47:32]CheckFolder done [16:47:32]ProducePacketName [16:47:32]name=ofd_packets/00092279 [16:47:32]NVStorageSaveData ofd_packets/00092279 [16:47:32]File name is /storage/ofd_packets/00092279 [16:47:32]Write 669 bytes [16:47:32]NVStorageSaveData done [16:47:32]OFDSenderStorePacket done [16:47:32]KKMCreateOFDPacket done [16:47:32]NVStorageSaveData kkm_last_timestamp [16:47:32]File name is /storage/kkm_last_timestamp [16:47:32]Write 4 bytes [16:47:32]NVStorageSaveData done [16:47:32]ExternCall_PrintAddStr [16:47:32]wPrintStart [16:47:32]Write to MH i2c: 01 00 00 8A 06 90 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 07 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [16:47:32]RasterBufferAndPrint [16:47:32]line Счет N : (3)127210 [16:47:32]line ИНН: 02508201610067 [16:47:32]line Контрольно-Кассовый Чек [16:47:32]line ПРОДАЖА [16:47:32]line Товар: 4640030091645 [16:47:32]line Сигареты ESSE Exchange M [16:47:32]line 1.000 * 150.00 [16:47:32]line = 150.00 [16:47:32]line НДС 12% НСП 1% [16:47:32]line > о реализуемом товаре [16:47:32]line Товар: 8904103304060 [16:47:32]line Презерватив ITEX жев резинка 3 шт [16:47:32]line 1.000 * 140.00 [16:47:32]line = 140.00 [16:47:32]line НДС 12% НСП 1% [16:47:32]line > о реализуемом товаре [16:47:32]line Товар: 90448300 [16:47:32]line Энерг напиток Red Bull 0,355л [16:47:32]line 1.000 * 265.00 [16:47:32]line = 265.00 [16:47:32]line НДС 12% НСП 1% [16:47:32]line > о реализуемом товаре [16:47:32]line Товар: 5449000054227 [16:47:32]line Напиток Кока-Кола 1л [16:47:32]line 1.000 * 105.00 [16:47:32]line = 105.00 [16:47:32]line НДС 12% НСП 1% [16:47:32]line > о реализуемом товаре [16:47:32]line ИТОГО: 660.00 [16:47:32]line НСП 1% : 5.84 [16:47:32]line НДС 12% : 70.09 [16:47:32]line Наличными: 0.00 [16:47:32]line Безнал.: 660.00 [16:47:32]line Место: АЗС № 5 "Партнер Нефть" [16:47:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:47:32]line СНО: Общий режим [16:47:32]line Чек 87 13.09.2024 16:47 [16:47:32]line Смена: 505 ФФД: 1.0 [16:47:32]line ЗНМ: 03000000022 [16:47:32]line РНМ: 0000000000091423 [16:47:32]line Версия ККМ: 001 [16:47:32]OFD Sender: Processing packet 92279 [packets to send 63, broken 62] [16:47:32]ProducePacketName [16:47:32]name=ofd_packets/00092279 [16:47:32]OFD Sender: To server: pG, [16:47:32]CommunicateWithHost lk.salyk.kg:30040 [16:47:32]ConnectInit lk.salyk.kg [16:47:32]line Платежная система: Бакай Банк [16:47:32]line ФМ: 0000000000874692 [16:47:32]line ФД: 92279 [16:47:32]line ФПД: 196776447671940 [16:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T164731&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92279&fm=196776447671940&tin=02508201610067®Number=0000000000091423&sum=66000 [16:47:32]line 0 [16:47:32]written 0, free lines is 4095 [16:47:32]Connected sock=10 [16:47:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 7F 02 00 00 9A 86 77 02 21 05 5A 03 01 00 03 00 6B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 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 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A3 6C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 68 01 00 35 04 06 00 B2 F7 96 43 7E 84 EE 5A 65 E3 42 7D 28 D0 [16:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 04 5B 47 00 24 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 68 01 00 F4 03 04 00 22 15 E4 66 B6 04 01 00 00 D2 BE 2F 21 21 CC BA 93 [16:47:33]CommunicateWithHost err = 0 [16:47:33]CheckOFDResponse [16:47:33]1017 (14) - 77093643461234 [16:47:33]1041 (16) - 0000000000874692 [16:47:33]1040 (4) - 92279 [16:47:33]1012 (4) - 13.09.2024 10:34 [16:47:33]1206 (1) - 0 [16:47:33]OFD Sender: Remove packet 92279 [16:47:33]ProducePacketName [16:47:33]name=ofd_packets/00092279 [16:47:33]NVStorageDeleteData [16:47:33]Write to MH i2c: 01 00 00 C7 06 CD [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 07 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 21 0C 01 [16:47:33]RasterBufferAndPrint [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]written 0, free lines is 3116 [16:47:33]MH_Cut [16:47:33]Write to MH i2c: D1 01 00 CE 06 01 A6 [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 01 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 01 00 CE 06 00 A5 [16:47:33]Write to MH i2c: 01 00 00 CF 06 D5 [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]OFD Sender: No OFD packet to send [16:47:34]*** Cut start [16:47:34]*** Purtial cut [16:47:34]*** Stage 1: CUTSNS_PIN = 1 [16:47:36]Read from MH i2c: 01 [16:47:36]MH_I2C_Read... [16:47:36]*** Stop cut motor [16:47:36]*** Cut end [16:47:36]Read from MH i2c: 01 07 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [16:47:36]process_action close_receipt done [16:47:36]requested_data is exist [16:47:36]produce_requested_data [16:47:36]requested_item fm.sn is exist - process it [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 11 00 00 [16:47:36]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:36]Read from MH i2c: E2 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 17 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A7 [16:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:47:36]wFMCommunicate OK [16:47:36]requested_item fd.num is exist - process it [16:47:36]SAM_PROTO_GetFieldsCounters [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 13 00 00 [16:47:36]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:36]Read from MH i2c: E2 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 62 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 62 00 D1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 77 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 77 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:36]wFMCommunicate OK [16:47:36]SAM_PROTO_GetFieldsCounters done [16:47:36]requested_item shift.num is exist - process it [16:47:36]requested_item shift.opened is exist - process it [16:47:36]req_shift_opened [16:47:36]FM_GetShiftState [16:47:36]SAM_PROTO_GetShiftState [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 13 01 00 [16:47:36]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:36]Read from MH i2c: E2 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 0E 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E1 [16:47:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:47:36]wFMCommunicate OK [16:47:36]SAM_PROTO_GetShiftState done [16:47:36]FM_GetShiftState done [16:47:36]req_shift_opened done [16:47:36]requested_item shift.open_date is exist - process it [16:47:36]req_shift_open_date [16:47:36]req_shift_open_date done [16:47:36]produce_requested_data done [16:47:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92279,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:47:36]process_action_free close_receipt [16:47:36]json_value_free [16:47:36]json_value_free done [16:47:36]process_json_proto returns [16:47:36]Send response to host [16:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92279,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:47:36]free response buf [16:47:36]execute_script done [16:47:36]execute_script returns [16:47:36]free content buf [16:47:36]Sock 7.Close socket [16:47:36]Sock 7.Thread stoped [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:25]accept exits with 9 [16:54:25]New connection [16:54:25]New thread 3066985828 created [16:54:25]Thread 3067129188 joined [16:54:25]Waiting for new connection... [16:54:25] Sock 9.Parse request [16:54:25]Sock 9.Check first char [16:54:25]Sock 9.First char is OK [16:54:25]request: POST /json_proto HTTP/1.0 [16:54:25]Method: POST [16:54:25]URL: /json_proto [16:54:25]Method is POST - this is cgi request [16:54:25]url: /json_proto [16:54:25]query_string will be loaded in cgi processing [16:54:25]execute_cgi json_proto POST (null) [16:54:25]execute_cgi path=json_proto method=POST [16:54:25]POST find Content-Length [16:54:25]Host: 172.17.57.71:8080 [16:54:25]Content-Length: 622 [16:54:25]Content-Type: application/json [16:54:25] [16:54:25]POST finish read [16:54:25]Found Content-Length = 622 [16:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127211", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:25]execute_script... [16:54: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 : (3)127211", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:25]POST & json_proto [16:54:25]process_json_proto [16:54:25]json parsed OK: [16:54:25]protocol is kg_v1.0 [16:54:25]action value=close_receipt [16:54:25]process_action close_receipt [16:54:25]cmd_close_receipt [16:54:25]MH_GetDate [16:54:25]Write to MH i2c: F0 00 00 D3 06 C8 [16:54:25]Write i2c OK [16:54:25]MH_I2C_Read... [16:54:25]Read from MH i2c: F0 [16:54:25]MH_I2C_Read... [16:54:25]Read from MH i2c: F0 09 00 [16:54:25]MH_I2C_Read... [16:54:25]Read from MH i2c: F0 09 00 D3 06 00 42 6E E4 66 33 3A A4 66 42 [16:54:25]GetLastDocTimeStamp 1726246051 [16:54:25]current date 1726246466 [16:54:25]FM_GetShiftState [16:54:25]SAM_PROTO_GetShiftState [16:54:25]wFMCommunicate request_size=4 [16:54:25]MH_SAM_APDU [16:54:25]CAPDU: 80 13 01 00 [16:54:25]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [16:54:25]Write i2c OK [16:54:25]MH_I2C_Read... [16:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:25]Read from MH i2c: E2 [16:54:25]MH_I2C_Read... [16:54:25]Read from MH i2c: E2 0E 00 [16:54:25]MH_I2C_Read... [16:54:25]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E3 [16:54:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:54:25]wFMCommunicate OK [16:54:25]SAM_PROTO_GetShiftState done [16:54:25]FM_GetShiftState done [16:54:25]opened in 1726186930 [16:54:25]opened+sec_in_day 1726273330 [16:54:25]quantity*price = 15000 [16:54:25]sum+1 = 15001 [16:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 88 13.09.2024 16:54 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92280 ФПД: 78191922137247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T165427&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92280&fm=78191922137247&tin=02508201610067®Number=0000000000091423&sum=15000 0 [16:54:26]StoreToDocumentArchive [16:54:26]shift 505 fd 92280 [16:54:26]save to /storage/0505/doc_00092280 [16:54:26]save last doc name /storage/0505/doc_00092280 to /storage/kkm_last_doc_name [16:54:26]save OK [16:54:26]Clear old archive folders... [16:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:54:26]tlvbuf is 0101B3A0 [16:54:26]SAM_PROTO_ClearQueue [16:54:26]wFMCommunicate request_size=4 [16:54:26]MH_SAM_APDU [16:54:26]CAPDU: 80 09 00 00 [16:54:26]Write to MH i2c: E2 08 00 E1 06 80 09 00 00 00 00 00 00 59 [16:54:26]Write i2c OK [16:54:26]MH_I2C_Read... [16:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:26]Read from MH i2c: E2 [16:54:26]MH_I2C_Read... [16:54:26]Read from MH i2c: E2 03 00 [16:54:26]MH_I2C_Read... [16:54:26]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [16:54:26]RAPDU: 90 00 [16:54:26]wFMCommunicate OK [16:54:26]SAM_PROTO_ClearQueue done [16:54:26]KKMCreateOFDPacket [16:54:26]OFDProtocolAddRootSTLVToBuf [16:54:26]FM_MakeSignedData [16:54:26]FM_MakeSignedData [16:54:26]SAM_PROTO_SignData [16:54:26]wFMCommunicate request_size=4 [16:54:26]MH_SAM_APDU [16:54:26]CAPDU: 80 0D 01 02 [16:54:26]Write to MH i2c: E2 08 00 E2 06 80 0D 01 02 00 00 00 00 61 [16:54:26]Write i2c OK [16:54:26]MH_I2C_Read... [16:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:26]Read from MH i2c: E2 [16:54:26]MH_I2C_Read... [16:54:26]Read from MH i2c: E2 03 00 [16:54:26]MH_I2C_Read... [16:54:26]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [16:54:26]RAPDU: 90 00 [16:54:26]wFMCommunicate OK [16:54:26]wFMCommunicate request_size=255 [16:54:26]MH_SAM_APDU [16:54:26]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 43 6E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [16:54:26]Write to MH i2c: E2 02 01 E3 06 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 43 6E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 45 [16:54:26]Write i2c OK [16:54:26]MH_I2C_Read... [16:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:27]Read from MH i2c: E2 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 03 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [16:54:27]RAPDU: 90 00 [16:54:27]wFMCommunicate OK [16:54:27]wFMCommunicate request_size=33 [16:54:27]MH_SAM_APDU [16:54:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 68 01 00 35 04 06 00 47 1D 79 BE 48 9F [16:54:27]Write to MH i2c: E2 24 00 E4 06 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 68 01 00 35 04 06 00 47 1D 79 BE 48 9F 00 00 5A [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:27]Read from MH i2c: E2 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 03 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [16:54:27]RAPDU: 90 00 [16:54:27]wFMCommunicate OK [16:54:27]wFMCommunicate request_size=4 [16:54:27]MH_SAM_APDU [16:54:27]CAPDU: 80 0D 03 02 [16:54:27]Write to MH i2c: E2 08 00 E5 06 80 0D 03 02 00 00 00 00 66 [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:27]Read from MH i2c: E2 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 0B 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 0B 00 E5 06 00 77 4A 85 68 8E B0 91 3C 90 00 20 [16:54:27]RAPDU: 77 4A 85 68 8E B0 91 3C 90 00 [16:54:27]wFMCommunicate OK [16:54:27]SAM_PROTO_SignData done [16:54:27]FM_MakeSignedData done [16:54:27]CreateOFDProtocolMessage [16:54:27]wFMCommunicate request_size=4 [16:54:27]MH_SAM_APDU [16:54:27]CAPDU: 80 11 00 00 [16:54:27]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:27]Read from MH i2c: E2 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 17 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BD [16:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:54:27]wFMCommunicate OK [16:54:27]CreateOFDProtocolMessage done [16:54:27]OFDSenderStorePacket 92280 [16:54:27]StoreOFDPacket docnum=92280 [16:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 A3 40 1E 01 F2 03 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 43 6E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 68 01 00 35 04 06 00 47 1D 79 BE 48 9F 77 4A 85 68 8E B0 91 3C [16:54:27]CheckFolder [16:54:27]dirname=/storage/ofd_packets [16:54:27]CheckFolder done [16:54:27]ProducePacketName [16:54:27]name=ofd_packets/00092280 [16:54:27]NVStorageSaveData ofd_packets/00092280 [16:54:27]File name is /storage/ofd_packets/00092280 [16:54:27]Write 324 bytes [16:54:27]NVStorageSaveData done [16:54:27]OFDSenderStorePacket done [16:54:27]KKMCreateOFDPacket done [16:54:27]NVStorageSaveData kkm_last_timestamp [16:54:27]File name is /storage/kkm_last_timestamp [16:54:27]Write 4 bytes [16:54:27]NVStorageSaveData done [16:54:27]ExternCall_PrintAddStr [16:54:27]wPrintStart [16:54:27]Write to MH i2c: 01 00 00 E7 06 ED [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [16:54:27]RasterBufferAndPrint [16:54:27]line Счет N : (3)127211 [16:54:27]line ИНН: 02508201610067 [16:54:27]line Контрольно-Кассовый Чек [16:54:27]line ПРОДАЖА [16:54:27]line Товар: 4640030091645 [16:54:27]line Сигареты ESSE Exchange M [16:54:27]line 1.000 * 150.00 [16:54:27]line = 150.00 [16:54:27]line НДС 12% НСП 1% [16:54:27]line > о реализуемом товаре [16:54:27]line ИТОГО: 150.00 [16:54:27]line НСП 1% : 1.33 [16:54:27]line НДС 12% : 15.93 [16:54:27]line Наличными: 150.00 [16:54:27]line Безнал.: 0.00 [16:54:27]line Место: АЗС № 5 "Партнер Нефть" [16:54:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:54:27]line СНО: Общий режим [16:54:27]line Чек 88 13.09.2024 16:54 [16:54:27]line Смена: 505 ФФД: 1.0 [16:54:27]line ЗНМ: 03000000022 [16:54:27]line РНМ: 0000000000091423 [16:54:27]line Версия ККМ: 001 [16:54:27]line ФМ: 0000000000874692 [16:54:27]line ФД: 92280 [16:54:27]line ФПД: 78191922137247 [16:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T165427&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92280&fm=78191922137247&tin=02508201610067®Number=0000000000091423&sum=15000 [16:54:27]line 0 [16:54:27]written 0, free lines is 4095 [16:54:27]OFD Sender: Processing packet 92280 [packets to send 63, broken 62] [16:54:27]ProducePacketName [16:54:27]name=ofd_packets/00092280 [16:54:27]OFD Sender: To server: pG, [16:54:27]CommunicateWithHost lk.salyk.kg:30040 [16:54:27]ConnectInit lk.salyk.kg [16:54:27]Connected sock=11 [16:54:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 A3 40 1E 01 F2 03 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 43 6E E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 68 01 00 35 04 06 00 47 1D 79 BE 48 9F 77 4A 85 68 8E B0 91 3C [16:54:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FE 4A 47 00 E9 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 68 01 00 F4 03 04 00 C0 16 E4 66 B6 04 01 00 00 DE AE D6 92 F1 EE 5A F9 [16:54:27]CommunicateWithHost err = 0 [16:54:27]CheckOFDResponse [16:54:27]1017 (14) - 77093643461234 [16:54:27]1041 (16) - 0000000000874692 [16:54:27]1040 (4) - 92280 [16:54:27]1012 (4) - 13.09.2024 10:41 [16:54:27]1206 (1) - 0 [16:54:27]OFD Sender: Remove packet 92280 [16:54:27]ProducePacketName [16:54:27]name=ofd_packets/00092280 [16:54:27]NVStorageDeleteData [16:54:27]Write to MH i2c: 01 00 00 0F 07 16 [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 21 0D 4B [16:54:27]RasterBufferAndPrint [16:54:27]line [16:54:27]line [16:54:27]line [16:54:27]line [16:54:27]line [16:54:27]written 0, free lines is 3366 [16:54:27]MH_Cut [16:54:27]Write to MH i2c: D1 01 00 16 07 01 EF [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D1 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D1 01 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D1 01 00 16 07 00 EE [16:54:27]Write to MH i2c: 01 00 00 17 07 1E [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:28]OFD Sender: No OFD packet to send [16:54:28]*** Cut start [16:54:28]*** Purtial cut [16:54:28]*** Stage 1: CUTSNS_PIN = 1 [16:54:30]Read from MH i2c: 01 [16:54:30]MH_I2C_Read... [16:54:30]*** Stop cut motor [16:54:30]*** Cut end [16:54:30]Read from MH i2c: 01 07 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 FF 0F 33 [16:54:30]process_action close_receipt done [16:54:30]requested_data is exist [16:54:30]produce_requested_data [16:54:30]requested_item fm.sn is exist - process it [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 11 00 00 [16:54:30]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 17 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 17 00 18 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [16:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:54:30]wFMCommunicate OK [16:54:30]requested_item fd.num is exist - process it [16:54:30]SAM_PROTO_GetFieldsCounters [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 13 00 00 [16:54:30]Write to MH i2c: E2 08 00 19 07 80 13 00 00 00 00 00 00 9C [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 62 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 62 00 19 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 78 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [16:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 78 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:30]wFMCommunicate OK [16:54:30]SAM_PROTO_GetFieldsCounters done [16:54:30]requested_item shift.num is exist - process it [16:54:30]requested_item shift.opened is exist - process it [16:54:30]req_shift_opened [16:54:30]FM_GetShiftState [16:54:30]SAM_PROTO_GetShiftState [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 13 01 00 [16:54:30]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2A [16:54:30]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:54:30]wFMCommunicate OK [16:54:30]SAM_PROTO_GetShiftState done [16:54:30]FM_GetShiftState done [16:54:30]req_shift_opened done [16:54:30]requested_item shift.open_date is exist - process it [16:54:30]req_shift_open_date [16:54:30]req_shift_open_date done [16:54:30]produce_requested_data done [16:54:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92280,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:54:30]process_action_free close_receipt [16:54:30]json_value_free [16:54:30]json_value_free done [16:54:30]process_json_proto returns [16:54:30]Send response to host [16:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92280,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:54:30]free response buf [16:54:30]execute_script done [16:54:30]execute_script returns [16:54:30]free content buf [16:54:30]Sock 9.Close socket [16:54:30]Sock 9.Thread stoped [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:17]accept exits with 7 [16:58:17]New connection [16:58:17]New thread 3067129188 created [16:58:17]Thread 3066985828 joined [16:58:17]Waiting for new connection... [16:58:17] Sock 7.Parse request [16:58:17]Sock 7.Check first char [16:58:17]Sock 7.First char is OK [16:58:17]request: POST /json_proto HTTP/1.0 [16:58:17]Method: POST [16:58:17]URL: /json_proto [16:58:17]Method is POST - this is cgi request [16:58:17]url: /json_proto [16:58:17]query_string will be loaded in cgi processing [16:58:17]execute_cgi json_proto POST (null) [16:58:17]execute_cgi path=json_proto method=POST [16:58:17]POST find Content-Length [16:58:17]Host: 172.17.57.71:8080 [16:58:17]Content-Length: 1125 [16:58:17]Content-Type: application/json [16:58:17] [16:58:17]POST finish read [16:58:17]Found Content-Length = 1125 [16:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127212", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:17]execute_script... [16:58: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 : (3)127212", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:17]POST & json_proto [16:58:17]process_json_proto [16:58:17]json parsed OK: [16:58:17]protocol is kg_v1.0 [16:58:17]action value=close_receipt [16:58:17]process_action close_receipt [16:58:17]cmd_close_receipt [16:58:17]MH_GetDate [16:58:17]Write to MH i2c: F0 00 00 1B 07 11 [16:58:17]Write i2c OK [16:58:17]MH_I2C_Read... [16:58:17]Read from MH i2c: F0 [16:58:17]MH_I2C_Read... [16:58:17]Read from MH i2c: F0 09 00 [16:58:17]MH_I2C_Read... [16:58:17]Read from MH i2c: F0 09 00 1B 07 00 2B 6F E4 66 33 3A A4 66 75 [16:58:17]GetLastDocTimeStamp 1726246467 [16:58:17]current date 1726246699 [16:58:17]FM_GetShiftState [16:58:17]SAM_PROTO_GetShiftState [16:58:17]wFMCommunicate request_size=4 [16:58:17]MH_SAM_APDU [16:58:17]CAPDU: 80 13 01 00 [16:58:17]Write to MH i2c: E2 08 00 1C 07 80 13 01 00 00 00 00 00 A0 [16:58:17]Write i2c OK [16:58:17]MH_I2C_Read... [16:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:17]Read from MH i2c: E2 [16:58:17]MH_I2C_Read... [16:58:17]Read from MH i2c: E2 0E 00 [16:58:17]MH_I2C_Read... [16:58:17]Read from MH i2c: E2 0E 00 1C 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2C [16:58:17]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:58:17]wFMCommunicate OK [16:58:17]SAM_PROTO_GetShiftState done [16:58:17]FM_GetShiftState done [16:58:17]opened in 1726186930 [16:58:17]opened+sec_in_day 1726273330 [16:58:17]quantity*price = 16500 [16:58:17]sum+1 = 16501 [16:58:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 224.00 НСП 1% : 1.98 НДС 12% : 23.78 Наличными: 0.00 Безнал.: 224.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 89 13.09.2024 16:58 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92281 ФПД: 247201345783710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T165819&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92281&fm=247201345783710&tin=02508201610067®Number=0000000000091423&sum=22400 0 [16:58:18]StoreToDocumentArchive [16:58:18]shift 505 fd 92281 [16:58:18]save to /storage/0505/doc_00092281 [16:58:18]save last doc name /storage/0505/doc_00092281 to /storage/kkm_last_doc_name [16:58:18]save OK [16:58:18]Clear old archive folders... [16:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=407 [16:58:18]tlvbuf is 0100CC20 [16:58:18]SAM_PROTO_ClearQueue [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 09 00 00 [16:58:18]Write to MH i2c: E2 08 00 29 07 80 09 00 00 00 00 00 00 A2 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]SAM_PROTO_ClearQueue done [16:58:18]KKMCreateOFDPacket [16:58:18]OFDProtocolAddRootSTLVToBuf [16:58:18]FM_MakeSignedData [16:58:18]FM_MakeSignedData [16:58:18]SAM_PROTO_SignData [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 01 02 [16:58:18]Write to MH i2c: E2 08 00 2A 07 80 0D 01 02 00 00 00 00 AA [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]wFMCommunicate request_size=255 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [16:58:18]Write to MH i2c: E2 02 01 2B 07 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 3F [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=166 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 02 02 A1 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2B 6F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 68 01 00 35 04 06 00 E0 D4 0C 67 47 9E [16:58:19]Write to MH i2c: E2 A9 00 2C 07 80 0D 02 02 A1 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2B 6F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 68 01 00 35 04 06 00 E0 D4 0C 67 47 9E 00 00 16 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 03 02 [16:58:19]Write to MH i2c: E2 08 00 2D 07 80 0D 03 02 00 00 00 00 AF [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 0B 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 0B 00 2D 07 00 4A 9E EF 75 8A 2F D5 C3 90 00 4D [16:58:19]RAPDU: 4A 9E EF 75 8A 2F D5 C3 90 00 [16:58:19]wFMCommunicate OK [16:58:19]SAM_PROTO_SignData done [16:58:19]FM_MakeSignedData done [16:58:19]CreateOFDProtocolMessage [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 11 00 00 [16:58:19]Write to MH i2c: E2 08 00 2E 07 80 11 00 00 00 00 00 00 AF [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 17 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 17 00 2E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 06 [16:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:58:19]wFMCommunicate OK [16:58:19]CreateOFDProtocolMessage done [16:58:19]OFDSenderStorePacket 92281 [16:58:19]StoreOFDPacket docnum=92281 [16:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 01 00 00 D3 8E A3 01 21 14 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2B 6F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 68 01 00 35 04 06 00 E0 D4 0C 67 47 9E 4A 9E EF 75 8A 2F D5 C3 [16:58:19]CheckFolder [16:58:19]dirname=/storage/ofd_packets [16:58:19]CheckFolder done [16:58:19]ProducePacketName [16:58:19]name=ofd_packets/00092281 [16:58:19]NVStorageSaveData ofd_packets/00092281 [16:58:19]File name is /storage/ofd_packets/00092281 [16:58:19]Write 457 bytes [16:58:19]NVStorageSaveData done [16:58:19]OFDSenderStorePacket done [16:58:19]KKMCreateOFDPacket done [16:58:19]NVStorageSaveData kkm_last_timestamp [16:58:19]File name is /storage/kkm_last_timestamp [16:58:19]Write 4 bytes [16:58:19]NVStorageSaveData done [16:58:19]ExternCall_PrintAddStr [16:58:19]wPrintStart [16:58:19]Write to MH i2c: 01 00 00 2F 07 36 [16:58:19]OFD Sender: Processing packet 92281 [packets to send 63, broken 62] [16:58:19]ProducePacketName [16:58:19]name=ofd_packets/00092281 [16:58:19]OFD Sender: To server: pG, [16:58:19]CommunicateWithHost lk.salyk.kg:30040 [16:58:19]ConnectInit lk.salyk.kg [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [16:58:19]RasterBufferAndPrint [16:58:19]line Счет N : (3)127212 [16:58:19]line ИНН: 02508201610067 [16:58:19]line Контрольно-Кассовый Чек [16:58:19]line ПРОДАЖА [16:58:19]line Товар: 4870001570903 [16:58:19]line Напиток DADA ябл,клубника ПЭТ 1л [16:58:19]line 1.000 * 165.00 [16:58:19]line = 165.00 [16:58:19]line НДС 12% НСП 1% [16:58:19]line > о реализуемом товаре [16:58:19]line Товар: 4607065001445 [16:58:19]line Шок батончик Snickers 50,5г [16:58:19]line 1.000 * 59.00 [16:58:19]line = 59.00 [16:58:19]line НДС 12% НСП 1% [16:58:19]line > о реализуемом товаре [16:58:19]line ИТОГО: 224.00 [16:58:19]line НСП 1% : 1.98 [16:58:19]line НДС 12% : 23.78 [16:58:19]line Наличными: 0.00 [16:58:19]line Безнал.: 224.00 [16:58:19]line Место: АЗС № 5 "Партнер Нефть" [16:58:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:58:19]line СНО: Общий режим [16:58:19]line Чек 89 13.09.2024 16:58 [16:58:19]line Смена: 505 ФФД: 1.0 [16:58:19]line ЗНМ: 03000000022 [16:58:19]line РНМ: 0000000000091423 [16:58:19]line Версия ККМ: 001 [16:58:19]line Платежная система: О! деньги [16:58:19]line ФМ: 0000000000874692 [16:58:19]line ФД: 92281 [16:58:19]line ФПД: 247201345783710 [16:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T165819&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92281&fm=247201345783710&tin=02508201610067®Number=0000000000091423&sum=22400 [16:58:19]line 0 [16:58:19]written 0, free lines is 4095 [16:58:19]Connected sock=10 [16:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 01 00 00 D3 8E A3 01 21 14 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2B 6F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 68 01 00 35 04 06 00 E0 D4 0C 67 47 9E 4A 9E EF 75 8A 2F D5 C3 [16:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7D F9 47 00 FF 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 68 01 00 F4 03 04 00 A9 17 E4 66 B6 04 01 00 00 80 70 CC BE F9 4E EA 1D [16:58:20]CommunicateWithHost err = 0 [16:58:20]CheckOFDResponse [16:58:20]1017 (14) - 77093643461234 [16:58:20]1041 (16) - 0000000000874692 [16:58:20]1040 (4) - 92281 [16:58:20]1012 (4) - 13.09.2024 10:44 [16:58:20]1206 (1) - 0 [16:58:20]OFD Sender: Remove packet 92281 [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00092281 [16:58:20]NVStorageDeleteData [16:58:20]Write to MH i2c: 01 00 00 60 07 67 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 B3 0C 2D [16:58:20]RasterBufferAndPrint [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]written 0, free lines is 3257 [16:58:20]MH_Cut [16:58:20]Write to MH i2c: D1 01 00 67 07 01 40 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 67 07 00 3F [16:58:20]Write to MH i2c: 01 00 00 68 07 6F [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]OFD Sender: No OFD packet to send [16:58:21]*** Cut start [16:58:21]*** Purtial cut [16:58:21]*** Stage 1: CUTSNS_PIN = 1 [16:58:23]Read from MH i2c: 01 [16:58:23]MH_I2C_Read... [16:58:23]*** Stop cut motor [16:58:23]*** Cut end [16:58:23]Read from MH i2c: 01 07 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [16:58:23]process_action close_receipt done [16:58:23]requested_data is exist [16:58:23]produce_requested_data [16:58:23]requested_item fm.sn is exist - process it [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 11 00 00 [16:58:23]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 41 [16:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:58:23]wFMCommunicate OK [16:58:23]requested_item fd.num is exist - process it [16:58:23]SAM_PROTO_GetFieldsCounters [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 13 00 00 [16:58:23]Write to MH i2c: E2 08 00 6A 07 80 13 00 00 00 00 00 00 ED [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 62 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 62 00 6A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 79 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [16:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 79 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_GetFieldsCounters done [16:58:23]requested_item shift.num is exist - process it [16:58:23]requested_item shift.opened is exist - process it [16:58:23]req_shift_opened [16:58:23]FM_GetShiftState [16:58:23]SAM_PROTO_GetShiftState [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 13 01 00 [16:58:23]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7B [16:58:23]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_GetShiftState done [16:58:23]FM_GetShiftState done [16:58:23]req_shift_opened done [16:58:23]requested_item shift.open_date is exist - process it [16:58:23]req_shift_open_date [16:58:23]req_shift_open_date done [16:58:23]produce_requested_data done [16:58:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92281,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [16:58:23]process_action_free close_receipt [16:58:23]json_value_free [16:58:23]json_value_free done [16:58:23]process_json_proto returns [16:58:23]Send response to host [16:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92281,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [16:58:23]free response buf [16:58:23]execute_script done [16:58:23]execute_script returns [16:58:23]free content buf [16:58:23]Sock 7.Close socket [16:58:23]Sock 7.Thread stoped [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:12]accept exits with 9 [17:12:12]New connection [17:12:12]New thread 3066985828 created [17:12:12]Thread 3067129188 joined [17:12:12]Waiting for new connection... [17:12:12] Sock 9.Parse request [17:12:12]Sock 9.Check first char [17:12:12]Sock 9.First char is OK [17:12:12]request: POST /json_proto HTTP/1.0 [17:12:12]Method: POST [17:12:12]URL: /json_proto [17:12:12]Method is POST - this is cgi request [17:12:12]url: /json_proto [17:12:12]query_string will be loaded in cgi processing [17:12:12]execute_cgi json_proto POST (null) [17:12:12]execute_cgi path=json_proto method=POST [17:12:12]POST find Content-Length [17:12:12]Host: 172.17.57.71:8080 [17:12:12]Content-Length: 2187 [17:12:12]Content-Type: application/json [17:12:12] [17:12:12]POST finish read [17:12:12]Found Content-Length = 2187 [17:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127213", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:12]execute_script... [17:12:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127213", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:12]POST & json_proto [17:12:12]process_json_proto [17:12:12]json parsed OK: [17:12:12]protocol is kg_v1.0 [17:12:12]action value=close_receipt [17:12:12]process_action close_receipt [17:12:12]cmd_close_receipt [17:12:12]MH_GetDate [17:12:12]Write to MH i2c: F0 00 00 6C 07 62 [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 09 00 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 09 00 6C 07 00 6E 72 E4 66 33 3A A4 66 0C [17:12:12]GetLastDocTimeStamp 1726246699 [17:12:12]current date 1726247534 [17:12:12]FM_GetShiftState [17:12:12]SAM_PROTO_GetShiftState [17:12:12]wFMCommunicate request_size=4 [17:12:12]MH_SAM_APDU [17:12:12]CAPDU: 80 13 01 00 [17:12:12]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7D [17:12:13]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetShiftState done [17:12:13]FM_GetShiftState done [17:12:13]opened in 1726186930 [17:12:13]opened+sec_in_day 1726273330 [17:12:13]quantity*price = 6500 [17:12:13]sum+1 = 6501 [17:12:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54492509 Напиток Кока-Кола 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521186 Чай холодный MAXI черный со вкусом клубн 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001154035 Напиток Lipton IceTea 0,5л перс 1.000 * 61.00 = 61.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017455554 Мармелад Бонди ассорт пак 70г 1.000 * 43.00 = 43.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 519.00 НСП 1% : 4.59 НДС 12% : 55.12 Наличными: 519.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 90 13.09.2024 17:12 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92282 ФПД: 103368791784378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T171214&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92282&fm=103368791784378&tin=02508201610067®Number=0000000000091423&sum=51900 0 [17:12:14]StoreToDocumentArchive [17:12:14]shift 505 fd 92282 [17:12:14]save to /storage/0505/doc_00092282 [17:12:14]save last doc name /storage/0505/doc_00092282 to /storage/kkm_last_doc_name [17:12:14]save OK [17:12:14]Clear old archive folders... [17:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=895 [17:12:14]tlvbuf is 01034EF0 [17:12:14]SAM_PROTO_ClearQueue [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 09 00 00 [17:12:14]Write to MH i2c: E2 08 00 7A 07 80 09 00 00 00 00 00 00 F3 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [17:12:14]RAPDU: 90 00 [17:12:14]wFMCommunicate OK [17:12:14]SAM_PROTO_ClearQueue done [17:12:14]KKMCreateOFDPacket [17:12:14]OFDProtocolAddRootSTLVToBuf [17:12:14]FM_MakeSignedData [17:12:14]FM_MakeSignedData [17:12:14]SAM_PROTO_SignData [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 0D 01 02 [17:12:14]Write to MH i2c: E2 08 00 7B 07 80 0D 01 02 00 00 00 00 FB [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [17:12:14]RAPDU: 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=255 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 0D 02 02 FA 03 00 7F 03 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 [17:12:14]Write to MH i2c: E2 02 01 7C 07 80 0D 02 02 FA 00 03 00 7F 03 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 00 4C [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [17:12:14]RAPDU: 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=255 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 0D 02 02 FA 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A [17:12:14]Write to MH i2c: E2 02 01 7D 07 80 0D 02 02 FA 00 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 00 00 FD [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=255 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 02 02 FA 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 [17:12:15]Write to MH i2c: E2 02 01 7E 07 80 0D 02 02 FA 00 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 00 00 3C [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=154 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6E 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 68 01 00 35 04 06 00 5E 03 6C 1D 7B BA [17:12:15]Write to MH i2c: E2 9D 00 7F 07 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6E 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 68 01 00 35 04 06 00 5E 03 6C 1D 7B BA 00 00 CE [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 03 02 [17:12:15]Write to MH i2c: E2 08 00 80 07 80 0D 03 02 00 00 00 00 02 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0B 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0B 00 80 07 00 FA 74 20 6B EA 30 D6 52 90 00 3E [17:12:15]RAPDU: FA 74 20 6B EA 30 D6 52 90 00 [17:12:15]wFMCommunicate OK [17:12:15]SAM_PROTO_SignData done [17:12:15]FM_MakeSignedData done [17:12:15]CreateOFDProtocolMessage [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 11 00 00 [17:12:15]Write to MH i2c: E2 08 00 81 07 80 11 00 00 00 00 00 00 02 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 17 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 17 00 81 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [17:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:12:15]wFMCommunicate OK [17:12:15]CreateOFDProtocolMessage done [17:12:15]OFDSenderStorePacket 92282 [17:12:15]StoreOFDPacket docnum=92282 [17:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 93 03 00 00 B4 0E 8B 03 83 B1 5A 03 01 00 03 00 7F 03 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6E 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 68 01 00 35 04 06 00 5E 03 6C 1D 7B BA FA 74 20 6B EA 30 D6 52 [17:12:15]CheckFolder [17:12:15]dirname=/storage/ofd_packets [17:12:15]CheckFolder done [17:12:15]ProducePacketName [17:12:15]name=ofd_packets/00092282 [17:12:15]NVStorageSaveData ofd_packets/00092282 [17:12:15]File name is /storage/ofd_packets/00092282 [17:12:15]Write 945 bytes [17:12:15]NVStorageSaveData done [17:12:15]OFDSenderStorePacket done [17:12:16]KKMCreateOFDPacket done [17:12:16]NVStorageSaveData kkm_last_timestamp [17:12:16]File name is /storage/kkm_last_timestamp [17:12:16]Write 4 bytes [17:12:16]NVStorageSaveData done [17:12:16]ExternCall_PrintAddStr [17:12:16]wPrintStart [17:12:16]Write to MH i2c: 01 00 00 82 07 89 [17:12:16]OFD Sender: Processing packet 92282 [packets to send 63, broken 62] [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00092282 [17:12:16]OFD Sender: To server: pG, [17:12:16]CommunicateWithHost lk.salyk.kg:30040 [17:12:16]ConnectInit lk.salyk.kg [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [17:12:16]RasterBufferAndPrint [17:12:16]line Счет N : (3)127213 [17:12:16]line ИНН: 02508201610067 [17:12:16]line Контрольно-Кассовый Чек [17:12:16]line ПРОДАЖА [17:12:16]line Товар: 4870001571535 [17:12:16]line Вода ASU пит н.газ персик ПЭТ 0,5л [17:12:16]line 1.000 * 65.00 [17:12:16]line = 65.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line Товар: 4011100977952 [17:12:16]line Шок Батончик Твикс 55г [17:12:16]line 2.000 * 60.00 [17:12:16]line = 120.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line Товар: 54492509 [17:12:16]line Напиток Кока-Кола 0,25л [17:12:16]line 1.000 * 90.00 [17:12:16]line = 90.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line Товар: 4870202521186 [17:12:16]line Чай холодный MAXI черный со вкусом клубн [17:12:16]line 2.000 * 70.00 [17:12:16]line = 140.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line Товар: 4870001154035 [17:12:16]line Напиток Lipton IceTea 0,5л перс [17:12:16]line 1.000 * 61.00 [17:12:16]line = 61.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line Товар: 4620017455554 [17:12:16]line Мармелад Бонди ассорт пак 70г [17:12:16]line 1.000 * 43.00 [17:12:16]line = 43.00 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line ИТОГО: 519.00 [17:12:16]line НСП 1% : 4.59 [17:12:16]line НДС 12% : 55.12 [17:12:16]line Наличными: 519.00 [17:12:16]line Безнал.: 0.00 [17:12:16]line Место: АЗС № 5 "Партнер Нефть" [17:12:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:12:16]line СНО: Общий режим [17:12:16]line Чек 90 13.09.2024 17:12 [17:12:16]line Смена: 505 ФФД: 1.0 [17:12:16]line ЗНМ: 03000000022 [17:12:16]line РНМ: 0000000000091423 [17:12:16]line Версия ККМ: 001 [17:12:16]line ФМ: 0000000000874692 [17:12:16]line ФД: 92282 [17:12:16]line ФПД: 103368791784378 [17:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T171214&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92282&fm=103368791784378&tin=02508201610067®Number=0000000000091423&sum=51900 [17:12:16]line 0 [17:12:16]written 0, free lines is 4095 [17:12:16]Connected sock=7 [17:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 93 03 00 00 B4 0E 8B 03 83 B1 5A 03 01 00 03 00 7F 03 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6E 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 68 01 00 35 04 06 00 5E 03 6C 1D 7B BA FA 74 20 6B EA 30 D6 52 [17:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7A FD 47 00 FE 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 34 36 39 32 10 04 04 00 7A 68 01 00 F4 03 04 00 ED 1A E4 66 B6 04 01 00 00 59 95 E4 7A 45 E1 BE 34 [17:12:16]CommunicateWithHost err = 0 [17:12:16]CheckOFDResponse [17:12:16]1017 (14) - 77093643461234 [17:12:16]1041 (16) - 0000000000874692 [17:12:16]1040 (4) - 92282 [17:12:16]1012 (4) - 13.09.2024 10:58 [17:12:16]1206 (1) - 0 [17:12:16]OFD Sender: Remove packet 92282 [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00092282 [17:12:16]NVStorageDeleteData [17:12:16]Write to MH i2c: 01 00 00 CC 07 D3 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 60 0B 45 [17:12:16]RasterBufferAndPrint [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]written 0, free lines is 2924 [17:12:16]MH_Cut [17:12:16]Write to MH i2c: D1 01 00 D3 07 01 AC [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 D3 07 00 AB [17:12:16]Write to MH i2c: 01 00 00 D4 07 DB [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]OFD Sender: No OFD packet to send [17:12:17]*** Cut start [17:12:17]*** Purtial cut [17:12:17]*** Stage 1: CUTSNS_PIN = 1 [17:12:19]Read from MH i2c: 01 [17:12:19]MH_I2C_Read... [17:12:19]*** Stop cut motor [17:12:19]*** Cut end [17:12:19]Read from MH i2c: 01 07 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [17:12:19]process_action close_receipt done [17:12:19]requested_data is exist [17:12:19]produce_requested_data [17:12:19]requested_item fm.sn is exist - process it [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 11 00 00 [17:12:19]Write to MH i2c: E2 08 00 D5 07 80 11 00 00 00 00 00 00 56 [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 17 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 17 00 D5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AD [17:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:12:19]wFMCommunicate OK [17:12:19]requested_item fd.num is exist - process it [17:12:19]SAM_PROTO_GetFieldsCounters [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 13 00 00 [17:12:19]Write to MH i2c: E2 08 00 D6 07 80 13 00 00 00 00 00 00 59 [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 D6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:12:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:20]wFMCommunicate OK [17:12:20]SAM_PROTO_GetFieldsCounters done [17:12:20]requested_item shift.num is exist - process it [17:12:20]requested_item shift.opened is exist - process it [17:12:20]req_shift_opened [17:12:20]FM_GetShiftState [17:12:20]SAM_PROTO_GetShiftState [17:12:20]wFMCommunicate request_size=4 [17:12:20]MH_SAM_APDU [17:12:20]CAPDU: 80 13 01 00 [17:12:20]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:20]Read from MH i2c: E2 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 0E 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E7 [17:12:20]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:12:20]wFMCommunicate OK [17:12:20]SAM_PROTO_GetShiftState done [17:12:20]FM_GetShiftState done [17:12:20]req_shift_opened done [17:12:20]requested_item shift.open_date is exist - process it [17:12:20]req_shift_open_date [17:12:20]req_shift_open_date done [17:12:20]produce_requested_data done [17:12:20]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92282,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:12:20]process_action_free close_receipt [17:12:20]json_value_free [17:12:20]json_value_free done [17:12:20]process_json_proto returns [17:12:20]Send response to host [17:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92282,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:12:20]free response buf [17:12:20]execute_script done [17:12:20]execute_script returns [17:12:20]free content buf [17:12:20]Sock 9.Close socket [17:12:20]Sock 9.Thread stoped [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]accept exits with 10 [17:13:46]New connection [17:13:46]New thread 3067129188 created [17:13:46]Thread 3066985828 joined [17:13:46]Waiting for new connection... [17:13:46] Sock 10.Parse request [17:13:46]Sock 10.Check first char [17:13:46]Sock 10.First char is OK [17:13:46]request: POST /json_proto HTTP/1.0 [17:13:46]Method: POST [17:13:46]URL: /json_proto [17:13:46]Method is POST - this is cgi request [17:13:46]url: /json_proto [17:13:46]query_string will be loaded in cgi processing [17:13:46]execute_cgi json_proto POST (null) [17:13:46]execute_cgi path=json_proto method=POST [17:13:46]POST find Content-Length [17:13:46]Host: 172.17.57.71:8080 [17:13:46]Content-Length: 651 [17:13:46]Content-Type: application/json [17:13:46] [17:13:46]POST finish read [17:13:46]Found Content-Length = 651 [17:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127214", "tax_sys" : 0, "items" : [ { "code": "87345155", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 fresh cola \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:46]execute_script... [17:13: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 : (3)127214", "tax_sys" : 0, "items" : [ { "code": "87345155", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 fresh cola \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:46]POST & json_proto [17:13:46]process_json_proto [17:13:46]json parsed OK: [17:13:46]protocol is kg_v1.0 [17:13:46]action value=close_receipt [17:13:46]process_action close_receipt [17:13:46]cmd_close_receipt [17:13:46]MH_GetDate [17:13:46]Write to MH i2c: F0 00 00 D8 07 CE [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 D8 07 00 CB 72 E4 66 33 3A A4 66 D5 [17:13:46]GetLastDocTimeStamp 1726247534 [17:13:46]current date 1726247627 [17:13:46]FM_GetShiftState [17:13:46]SAM_PROTO_GetShiftState [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 13 01 00 [17:13:46]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E9 [17:13:46]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_GetShiftState done [17:13:46]FM_GetShiftState done [17:13:46]opened in 1726186930 [17:13:46]opened+sec_in_day 1726273330 [17:13:46]quantity*price = 7500 [17:13:46]sum+1 = 7501 [17:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 91 13.09.2024 17:13 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92283 ФПД: 92581013681791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T171347&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92283&fm=92581013681791&tin=02508201610067®Number=0000000000091423&sum=7500 0 [17:13:47]StoreToDocumentArchive [17:13:47]shift 505 fd 92283 [17:13:47]save to /storage/0505/doc_00092283 [17:13:47]save last doc name /storage/0505/doc_00092283 to /storage/kkm_last_doc_name [17:13:47]save OK [17:13:47]Clear old archive folders... [17:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=286 [17:13:47]tlvbuf is 00FF2B70 [17:13:47]SAM_PROTO_ClearQueue [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 09 00 00 [17:13:47]Write to MH i2c: E2 08 00 E6 07 80 09 00 00 00 00 00 00 5F [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]SAM_PROTO_ClearQueue done [17:13:47]KKMCreateOFDPacket [17:13:47]OFDProtocolAddRootSTLVToBuf [17:13:47]FM_MakeSignedData [17:13:47]FM_MakeSignedData [17:13:47]SAM_PROTO_SignData [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 01 02 [17:13:47]Write to MH i2c: E2 08 00 E7 07 80 0D 01 02 00 00 00 00 67 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=255 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 CB 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 [17:13:47]Write to MH i2c: E2 02 01 E8 07 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 CB 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 00 00 94 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=45 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 02 02 28 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 68 01 00 35 04 06 00 54 33 B2 6E F6 7F [17:13:47]Write to MH i2c: E2 30 00 E9 07 80 0D 02 02 28 00 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 68 01 00 35 04 06 00 54 33 B2 6E F6 7F 00 00 BF [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 03 02 [17:13:47]Write to MH i2c: E2 08 00 EA 07 80 0D 03 02 00 00 00 00 6C [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 0B 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 0B 00 EA 07 00 2C 2F B7 5A 99 B2 0E 7D 90 00 AF [17:13:47]RAPDU: 2C 2F B7 5A 99 B2 0E 7D 90 00 [17:13:47]wFMCommunicate OK [17:13:47]SAM_PROTO_SignData done [17:13:47]FM_MakeSignedData done [17:13:47]CreateOFDProtocolMessage [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 11 00 00 [17:13:47]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 17 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C3 [17:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:13:47]wFMCommunicate OK [17:13:47]CreateOFDProtocolMessage done [17:13:47]OFDSenderStorePacket 92283 [17:13:47]StoreOFDPacket docnum=92283 [17:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 AF 83 2A 01 0B B0 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 CB 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 68 01 00 35 04 06 00 54 33 B2 6E F6 7F 2C 2F B7 5A 99 B2 0E 7D [17:13:47]CheckFolder [17:13:47]dirname=/storage/ofd_packets [17:13:47]CheckFolder done [17:13:47]ProducePacketName [17:13:47]name=ofd_packets/00092283 [17:13:47]NVStorageSaveData ofd_packets/00092283 [17:13:47]File name is /storage/ofd_packets/00092283 [17:13:47]Write 336 bytes [17:13:47]NVStorageSaveData done [17:13:47]OFDSenderStorePacket done [17:13:47]KKMCreateOFDPacket done [17:13:47]NVStorageSaveData kkm_last_timestamp [17:13:47]File name is /storage/kkm_last_timestamp [17:13:47]Write 4 bytes [17:13:47]NVStorageSaveData done [17:13:47]ExternCall_PrintAddStr [17:13:47]wPrintStart [17:13:47]Write to MH i2c: 01 00 00 EC 07 F3 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 07 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 FF 0F 08 [17:13:47]RasterBufferAndPrint [17:13:47]line Счет N : (3)127214 [17:13:47]line ИНН: 02508201610067 [17:13:47]line Контрольно-Кассовый Чек [17:13:47]line ПРОДАЖА [17:13:47]line Товар: 87345155 [17:13:47]line Драже mentos жев fresh cola ролл 37г [17:13:47]line 1.000 * 75.00 [17:13:47]line = 75.00 [17:13:47]line НДС 12% НСП 1% [17:13:47]line > о реализуемом товаре [17:13:47]line ИТОГО: 75.00 [17:13:47]line НСП 1% : 0.66 [17:13:47]line НДС 12% : 7.96 [17:13:47]line Наличными: 75.00 [17:13:47]line Безнал.: 0.00 [17:13:47]line Место: АЗС № 5 "Партнер Нефть" [17:13:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:13:48]line СНО: Общий режим [17:13:48]line Чек 91 13.09.2024 17:13 [17:13:48]line Смена: 505 ФФД: 1.0 [17:13:48]line ЗНМ: 03000000022 [17:13:48]line РНМ: 0000000000091423 [17:13:48]line Версия ККМ: 001 [17:13:48]line ФМ: 0000000000874692 [17:13:48]line ФД: 92283 [17:13:48]line ФПД: 92581013681791 [17:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T171347&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92283&fm=92581013681791&tin=02508201610067®Number=0000000000091423&sum=7500 [17:13:48]line 0 [17:13:48]OFD Sender: Processing packet 92283 [packets to send 63, broken 62] [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00092283 [17:13:48]OFD Sender: To server: pG, [17:13:48]CommunicateWithHost lk.salyk.kg:30040 [17:13:48]ConnectInit lk.salyk.kg [17:13:48]written 0, free lines is 4095 [17:13:48]Connected sock=9 [17:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 AF 83 2A 01 0B B0 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 08 00 38 37 33 34 35 31 35 35 06 04 31 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 66 72 65 73 68 20 63 6F 6C 61 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 CB 72 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 68 01 00 35 04 06 00 54 33 B2 6E F6 7F 2C 2F B7 5A 99 B2 0E 7D [17:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B8 C3 47 00 F7 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 34 36 39 32 10 04 04 00 7B 68 01 00 F4 03 04 00 49 1B E4 66 B6 04 01 00 00 19 CA E9 11 00 31 4D 7A [17:13:48]CommunicateWithHost err = 0 [17:13:48]CheckOFDResponse [17:13:48]1017 (14) - 77093643461234 [17:13:48]1041 (16) - 0000000000874692 [17:13:48]1040 (4) - 92283 [17:13:48]1012 (4) - 13.09.2024 11:00 [17:13:48]1206 (1) - 0 [17:13:48]OFD Sender: Remove packet 92283 [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00092283 [17:13:48]NVStorageDeleteData [17:13:48]Write to MH i2c: 01 00 00 15 08 1D [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FA 0C 2A [17:13:48]RasterBufferAndPrint [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]written 0, free lines is 3329 [17:13:48]MH_Cut [17:13:48]Write to MH i2c: D1 01 00 1C 08 01 F6 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 1C 08 00 F5 [17:13:48]Write to MH i2c: 01 00 00 1D 08 25 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:49]OFD Sender: No OFD packet to send [17:13:49]*** Cut start [17:13:49]*** Purtial cut [17:13:49]*** Stage 1: CUTSNS_PIN = 1 [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]*** Stop cut motor [17:13:51]*** Cut end [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 1D 08 00 00 00 00 00 FF 0F 3A [17:13:51]process_action close_receipt done [17:13:51]requested_data is exist [17:13:51]produce_requested_data [17:13:51]requested_item fm.sn is exist - process it [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 1E 08 80 11 00 00 00 00 00 00 A0 [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 1E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F7 [17:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:13:51]wFMCommunicate OK [17:13:51]requested_item fd.num is exist - process it [17:13:51]SAM_PROTO_GetFieldsCounters [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 00 00 [17:13:51]Write to MH i2c: E2 08 00 1F 08 80 13 00 00 00 00 00 00 A3 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 62 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 62 00 1F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [17:13:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_GetFieldsCounters done [17:13:51]requested_item shift.num is exist - process it [17:13:51]requested_item shift.opened is exist - process it [17:13:51]req_shift_opened [17:13:51]FM_GetShiftState [17:13:51]SAM_PROTO_GetShiftState [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 01 00 [17:13:51]Write to MH i2c: E2 08 00 20 08 80 13 01 00 00 00 00 00 A5 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 20 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 31 [17:13:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_GetShiftState done [17:13:51]FM_GetShiftState done [17:13:51]req_shift_opened done [17:13:51]requested_item shift.open_date is exist - process it [17:13:51]req_shift_open_date [17:13:51]req_shift_open_date done [17:13:51]produce_requested_data done [17:13:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92283,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:13:51]process_action_free close_receipt [17:13:51]json_value_free [17:13:51]json_value_free done [17:13:51]process_json_proto returns [17:13:51]Send response to host [17:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92283,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:13:51]free response buf [17:13:51]execute_script done [17:13:51]execute_script returns [17:13:51]free content buf [17:13:51]Sock 10.Close socket [17:13:51]Sock 10.Thread stoped [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:10]accept exits with 7 [17:24:10]New connection [17:24:10]New thread 3066985828 created [17:24:10]Thread 3067129188 joined [17:24:10]Waiting for new connection... [17:24:10] Sock 7.Parse request [17:24:10]Sock 7.Check first char [17:24:10]Sock 7.First char is OK [17:24:10]request: POST /json_proto HTTP/1.0 [17:24:10]Method: POST [17:24:10]URL: /json_proto [17:24:10]Method is POST - this is cgi request [17:24:10]url: /json_proto [17:24:10]query_string will be loaded in cgi processing [17:24:10]execute_cgi json_proto POST (null) [17:24:10]execute_cgi path=json_proto method=POST [17:24:10]POST find Content-Length [17:24:10]Host: 172.17.57.71:8080 [17:24:10]Content-Length: 682 [17:24:10]Content-Type: application/json [17:24:10] [17:24:10]POST finish read [17:24:10]Found Content-Length = 682 [17:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646977", "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:10]execute_script... [17:24: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)646977", "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:10]POST & json_proto [17:24:10]process_json_proto [17:24:10]json parsed OK: [17:24:10]protocol is kg_v1.0 [17:24:10]action value=close_receipt [17:24:10]process_action close_receipt [17:24:10]cmd_close_receipt [17:24:10]MH_GetDate [17:24:10]Write to MH i2c: F0 00 00 21 08 18 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 09 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 09 00 21 08 00 3C 75 E4 66 33 3A A4 66 93 [17:24:10]GetLastDocTimeStamp 1726247627 [17:24:10]current date 1726248252 [17:24:10]FM_GetShiftState [17:24:10]SAM_PROTO_GetShiftState [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 13 01 00 [17:24:10]Write to MH i2c: E2 08 00 22 08 80 13 01 00 00 00 00 00 A7 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0E 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0E 00 22 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 33 [17:24:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:24:10]wFMCommunicate OK [17:24:10]SAM_PROTO_GetShiftState done [17:24:10]FM_GetShiftState done [17:24:10]opened in 1726186930 [17:24:10]opened+sec_in_day 1726273330 [17:24:10]quantity*price = 100015 [17:24:10]sum+1 = 100017 [17:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 92 13.09.2024 17:24 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92284 ФПД: 187733661516944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172412&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92284&fm=187733661516944&tin=02508201610067®Number=0000000000091423&sum=100000 [17:24:11]StoreToDocumentArchive [17:24:11]shift 505 fd 92284 [17:24:11]save to /storage/0505/doc_00092284 [17:24:11]save last doc name /storage/0505/doc_00092284 to /storage/kkm_last_doc_name [17:24:11]save OK [17:24:11]Clear old archive folders... [17:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:11]tlvbuf is B6F80300 [17:24:11]SAM_PROTO_ClearQueue [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 09 00 00 [17:24:11]Write to MH i2c: E2 08 00 2F 08 80 09 00 00 00 00 00 00 A9 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_ClearQueue done [17:24:12]KKMCreateOFDPacket [17:24:12]OFDProtocolAddRootSTLVToBuf [17:24:12]FM_MakeSignedData [17:24:12]FM_MakeSignedData [17:24:12]SAM_PROTO_SignData [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 01 02 [17:24:12]Write to MH i2c: E2 08 00 30 08 80 0D 01 02 00 00 00 00 B1 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=255 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3C 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 68 01 00 35 04 06 00 AA [17:24:12]Write to MH i2c: E2 02 01 31 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3C 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 68 01 00 35 04 06 00 AA 00 00 18 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=10 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 05 BE 26 35 04 90 [17:24:12]Write to MH i2c: E2 0D 00 32 08 80 0D 02 02 05 00 BE 26 35 04 90 00 00 6B [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 03 02 [17:24:12]Write to MH i2c: E2 08 00 33 08 80 0D 03 02 00 00 00 00 B6 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 33 08 00 37 38 AC DF 83 CD 80 1E 90 00 9F [17:24:12]RAPDU: 37 38 AC DF 83 CD 80 1E 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_SignData done [17:24:12]FM_MakeSignedData done [17:24:12]CreateOFDProtocolMessage [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 11 00 00 [17:24:12]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [17:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:24:12]wFMCommunicate OK [17:24:12]CreateOFDProtocolMessage done [17:24:12]OFDSenderStorePacket 92284 [17:24:12]StoreOFDPacket docnum=92284 [17:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 14 BE 07 01 B3 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 5C 00 00 00 F4 03 04 00 3C 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 68 01 00 35 04 06 00 AA BE 26 35 04 90 37 38 AC DF 83 CD 80 1E [17:24:12]CheckFolder [17:24:12]dirname=/storage/ofd_packets [17:24:12]CheckFolder done [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00092284 [17:24:12]NVStorageSaveData ofd_packets/00092284 [17:24:12]File name is /storage/ofd_packets/00092284 [17:24:12]Write 301 bytes [17:24:12]NVStorageSaveData done [17:24:12]OFDSenderStorePacket done [17:24:12]KKMCreateOFDPacket done [17:24:12]NVStorageSaveData kkm_last_timestamp [17:24:12]File name is /storage/kkm_last_timestamp [17:24:12]Write 4 bytes [17:24:12]NVStorageSaveData done [17:24:12]ExternCall_PrintAddStr [17:24:12]wPrintStart [17:24:12]Write to MH i2c: 01 00 00 35 08 3D [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [17:24:12]RasterBufferAndPrint [17:24:12]line Счет N : (1)646977 [17:24:12]line ИНН: 02508201610067 [17:24:12]line Контрольно-Кассовый Чек [17:24:12]line ПРОДАЖА [17:24:12]line ТРК (МРК, ГНК) : 43 [17:24:12]line Товар: 2710124130 [17:24:12]line Аи-92-К-5 [17:24:12]line 14.950 * 66.90 [17:24:12]line = 1000.16 [17:24:12]line НДС 12% НСП 1% [17:24:12]line > о реализуемом товаре [17:24:12]line ОКРУГЛЕНИЕ: -0.16 [17:24:12]line ИТОГО: 1000.00 [17:24:12]line Внесено: 1000.00 [17:24:12]line СДАЧА: 0.00 [17:24:12]line НСП 1% : 8.85 [17:24:12]line НДС 12% : 106.21 [17:24:12]line Наличными: 1000.00 [17:24:12]line Безнал.: 0.00 [17:24:12]line Место: АЗС № 5 "Партнер Нефть" [17:24:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:24:12]line СНО: Общий режим [17:24:12]line Чек 92 13.09.2024 17:24 [17:24:12]line Смена: 505 ФФД: 1.0 [17:24:12]line ЗНМ: 03000000022 [17:24:12]line РНМ: 0000000000091423 [17:24:12]line Версия ККМ: 001 [17:24:12]line ФМ: 0000000000874692 [17:24:12]line ФД: 92284 [17:24:12]line ФПД: 187733661516944 [17:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172412&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92284&fm=187733661516944&tin=02508201610067®Number=0000000000091423&sum=100000 [17:24:12]OFD Sender: Processing packet 92284 [packets to send 63, broken 62] [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00092284 [17:24:12]OFD Sender: To server: pG, [17:24:12]CommunicateWithHost lk.salyk.kg:30040 [17:24:12]ConnectInit lk.salyk.kg [17:24:12]written 0, free lines is 4095 [17:24:13]Connected sock=10 [17:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 14 BE 07 01 B3 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 5C 00 00 00 F4 03 04 00 3C 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 68 01 00 35 04 06 00 AA BE 26 35 04 90 37 38 AC DF 83 CD 80 1E [17:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 73 6B 47 00 0A 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 34 36 39 32 10 04 04 00 7C 68 01 00 F4 03 04 00 BA 1D E4 66 B6 04 01 00 00 CB F2 24 60 F5 0C 97 4C [17:24:13]CommunicateWithHost err = 0 [17:24:13]CheckOFDResponse [17:24:13]1017 (14) - 77093643461234 [17:24:13]1041 (16) - 0000000000874692 [17:24:13]1040 (4) - 92284 [17:24:13]1012 (4) - 13.09.2024 11:10 [17:24:13]1206 (1) - 0 [17:24:13]OFD Sender: Remove packet 92284 [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00092284 [17:24:13]NVStorageDeleteData [17:24:13]Write to MH i2c: 01 00 00 60 08 68 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 F5 0C 70 [17:24:13]RasterBufferAndPrint [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]written 0, free lines is 3323 [17:24:13]MH_Cut [17:24:13]Write to MH i2c: D1 01 00 67 08 01 41 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 67 08 00 40 [17:24:13]Write to MH i2c: 01 00 00 68 08 70 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]OFD Sender: No OFD packet to send [17:24:13]*** Cut start [17:24:13]*** Purtial cut [17:24:13]*** Stage 1: CUTSNS_PIN = 1 [17:24:16]Read from MH i2c: 01 [17:24:16]MH_I2C_Read... [17:24:16]*** Stop cut motor [17:24:16]*** Cut end [17:24:16]Read from MH i2c: 01 07 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [17:24:16]process_action close_receipt done [17:24:16]requested_data is exist [17:24:16]produce_requested_data [17:24:16]requested_item fm.sn is exist - process it [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 11 00 00 [17:24:16]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 17 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 42 [17:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:24:16]wFMCommunicate OK [17:24:16]requested_item fd.num is exist - process it [17:24:16]SAM_PROTO_GetFieldsCounters [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 13 00 00 [17:24:16]Write to MH i2c: E2 08 00 6A 08 80 13 00 00 00 00 00 00 EE [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 62 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 62 00 6A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [17:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:16]wFMCommunicate OK [17:24:16]SAM_PROTO_GetFieldsCounters done [17:24:16]requested_item shift.num is exist - process it [17:24:16]requested_item shift.opened is exist - process it [17:24:16]req_shift_opened [17:24:16]FM_GetShiftState [17:24:16]SAM_PROTO_GetShiftState [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 13 01 00 [17:24:16]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 0E 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7C [17:24:16]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:24:16]wFMCommunicate OK [17:24:16]SAM_PROTO_GetShiftState done [17:24:16]FM_GetShiftState done [17:24:16]req_shift_opened done [17:24:16]requested_item shift.open_date is exist - process it [17:24:16]req_shift_open_date [17:24:16]req_shift_open_date done [17:24:16]produce_requested_data done [17:24:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92284,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:24:16]process_action_free close_receipt [17:24:16]json_value_free [17:24:16]json_value_free done [17:24:16]process_json_proto returns [17:24:16]Send response to host [17:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92284,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:24:16]free response buf [17:24:16]execute_script done [17:24:16]execute_script returns [17:24:16]free content buf [17:24:16]Sock 7.Close socket [17:24:16]Sock 7.Thread stoped [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]accept exits with 9 [17:24:58]New connection [17:24:58]New thread 3067129188 created [17:24:58]Thread 3066985828 joined [17:24:58]Waiting for new connection... [17:24:58] Sock 9.Parse request [17:24:58]Sock 9.Check first char [17:24:58]Sock 9.First char is OK [17:24:58]request: POST /json_proto HTTP/1.0 [17:24:58]Method: POST [17:24:58]URL: /json_proto [17:24:58]Method is POST - this is cgi request [17:24:58]url: /json_proto [17:24:58]query_string will be loaded in cgi processing [17:24:58]execute_cgi json_proto POST (null) [17:24:58]execute_cgi path=json_proto method=POST [17:24:58]POST find Content-Length [17:24:58]Host: 172.17.57.71:8080 [17:24:58]Content-Length: 215 [17:24:58]Content-Type: application/json [17:24:58] [17:24:58]POST finish read [17:24:58]Found Content-Length = 215 [17:24:58]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" ] } } [17:24:58]execute_script... [17:24:58]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" ] } } [17:24:58]POST & json_proto [17:24:58]process_json_proto [17:24:58]json parsed OK: [17:24:58]protocol is kg_v1.0 [17:24:58]action value=get_value [17:24:58]process_action get_value [17:24:58]cmd_get_value [17:24:58]process_action get_value done [17:24:58]requested_data is exist [17:24:58]produce_requested_data [17:24:58]requested_item kkm.sn is exist - process it [17:24:58]requested_item kkm.ver is exist - process it [17:24:58]requested_item fm.sn is exist - process it [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 11 00 00 [17:24:58]Write to MH i2c: E2 08 00 6C 08 80 11 00 00 00 00 00 00 EE [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 17 00 [17:24:58]MH_I2C_Read... [17:24:58]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 34 36 39 32 90 00 45 [17:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:24:58]wFMCommunicate OK [17:24:58]requested_item fd.num is exist - process it [17:24:58]SAM_PROTO_GetFieldsCounters [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 13 00 00 [17:24:58]Write to MH i2c: E2 08 00 6D 08 80 13 00 00 00 00 00 00 F1 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]OFD Sender: No OFD packet to send [17:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 62 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 62 00 6D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_GetFieldsCounters done [17:24:58]requested_item shift.num is exist - process it [17:24:58]requested_item shift.opened is exist - process it [17:24:58]req_shift_opened [17:24:58]FM_GetShiftState [17:24:58]SAM_PROTO_GetShiftState [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 13 01 00 [17:24:58]Write to MH i2c: E2 08 00 6E 08 80 13 01 00 00 00 00 00 F3 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 6E 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7F [17:24:58]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_GetShiftState done [17:24:58]FM_GetShiftState done [17:24:58]req_shift_opened done [17:24:58]requested_item shift.open_date is exist - process it [17:24:58]req_shift_open_date [17:24:58]req_shift_open_date done [17:24:58]produce_requested_data done [17:24:58]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92284,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:24:58]process_action_free get_value [17:24:58]json_value_free [17:24:58]json_value_free done [17:24:58]process_json_proto returns [17:24:58]Send response to host [17:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92284,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:24:58]free response buf [17:24:58]execute_script done [17:24:58]execute_script returns [17:24:58]free content buf [17:24:58]Sock 9.Close socket [17:24:58]Sock 9.Thread stoped [17:24:58]accept exits with 7 [17:24:58]New connection [17:24:58]New thread 3066985828 created [17:24:58]Thread 3067129188 joined [17:24:58]Waiting for new connection... [17:24:58] Sock 7.Parse request [17:24:58]Sock 7.Check first char [17:24:58]Sock 7.First char is OK [17:24:58]request: POST /json_proto HTTP/1.0 [17:24:58]Method: POST [17:24:58]URL: /json_proto [17:24:58]Method is POST - this is cgi request [17:24:58]url: /json_proto [17:24:58]query_string will be loaded in cgi processing [17:24:58]execute_cgi json_proto POST (null) [17:24:58]execute_cgi path=json_proto method=POST [17:24:58]POST find Content-Length [17:24:58]Host: 172.17.57.71:8080 [17:24:58]Content-Length: 331 [17:24:58]Content-Type: application/json [17:24:58] [17:24:58]POST finish read [17:24:58]Found Content-Length = 331 [17:24:58]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" ] } } [17:24:58]execute_script... [17:24:59]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" ] } } [17:24:59]POST & json_proto [17:24:59]process_json_proto [17:24:59]json parsed OK: [17:24:59]protocol is kg_v1.0 [17:24:59]action value=get_value [17:24:59]process_action get_value [17:24:59]cmd_get_value [17:24:59]process_action get_value done [17:24:59]requested_data is exist [17:24:59]produce_requested_data [17:24:59]requested_item fm.sale.total is exist - process it [17:24:59]SAM_PROTO_GetFMData [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 13 03 00 [17:24:59]Write to MH i2c: E2 08 00 6F 08 80 13 03 00 00 00 00 00 F6 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 FD 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 FD 00 6F 08 00 C5 04 85 04 C1 04 6E 04 04 00 8A 64 01 00 69 04 A1 00 6F 04 04 00 3D 61 01 00 B1 04 04 00 F8 67 62 B2 70 04 04 00 50 18 0F 83 72 04 04 00 A8 4F 53 2F 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 0D DC F1 12 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 45 01 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4D 03 00 00 B1 04 04 00 A0 E5 75 04 70 04 04 00 E8 61 3E 04 72 04 03 00 B8 83 37 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 30 48 79 EF 03 09 90 00 8F [17:24:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8A 64 01 00 69 04 A1 00 6F 04 04 00 3D 61 01 00 B1 04 04 00 F8 67 62 B2 70 04 04 00 50 18 0F 83 72 04 04 00 A8 4F 53 2F 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 0D DC F1 12 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 45 01 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4D 03 00 00 B1 04 04 00 A0 E5 75 04 70 04 04 00 E8 61 3E 04 72 04 03 00 B8 83 37 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 30 48 79 EF 03 09 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 17 00 00 [17:24:59]Write to MH i2c: E2 08 00 70 08 80 17 00 00 00 00 00 00 F8 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 FD 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 FD 00 70 08 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 03 1B 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 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 D6 [17:24: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 03 1B 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 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 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 17 00 00 [17:24:59]Write to MH i2c: E2 08 00 71 08 80 17 00 00 00 00 00 00 F9 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 FD 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 FD 00 71 08 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 0B [17:25: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 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 17 00 00 [17:25:00]Write to MH i2c: E2 08 00 72 08 80 17 00 00 00 00 00 00 FA [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 FD 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 FD 00 72 08 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 86 [17:25: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 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 17 00 00 [17:25:00]Write to MH i2c: E2 08 00 73 08 80 17 00 00 00 00 00 00 FB [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 E2 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 E2 00 73 08 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:25:00]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:25:00]wFMCommunicate OK [17:25:00]SAM_PROTO_GetFMData done [17:25:00]requested_item fm.sale_refund.total is exist - process it [17:25:00]requested_item fm.buy.total is exist - process it [17:25:00]requested_item shift.sale.total is exist - process it [17:25:00]SAM_PROTO_GetShiftData [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 13 02 00 [17:25:00]Write to MH i2c: E2 08 00 74 08 80 13 02 00 00 00 00 00 FA [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 74 08 00 B5 04 AA 04 B1 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 D5 C4 26 70 04 03 00 C8 B6 1C 72 04 03 00 0D 0E 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C 1E 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 40 1F 70 04 02 00 40 1F 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 52 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 87 [17:25:01]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 D5 C4 26 70 04 03 00 C8 B6 1C 72 04 03 00 0D 0E 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C 1E 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 40 1F 70 04 02 00 40 1F 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 52 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:25:01]wFMCommunicate OK [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 17 00 00 [17:25:01]Write to MH i2c: E2 08 00 75 08 80 17 00 00 00 00 00 00 FD [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 75 08 00 F6 03 01 00 01 F7 03 01 00 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [17:25:01]RAPDU: F6 03 01 00 01 F7 03 01 00 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:25:01]wFMCommunicate OK [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 17 00 00 [17:25:01]Write to MH i2c: E2 08 00 76 08 80 17 00 00 00 00 00 00 FE [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 76 08 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BB [17:25:01]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:25:01]wFMCommunicate OK [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 17 00 00 [17:25:01]Write to MH i2c: E2 08 00 77 08 80 17 00 00 00 00 00 00 FF [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:01]Read from MH i2c: E2 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: E2 FD 00 77 08 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 90 00 77 [17:25:01]RAPDU: 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 90 00 [17:25:02]wFMCommunicate OK [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 17 00 00 [17:25:02]Write to MH i2c: E2 08 00 78 08 80 17 00 00 00 00 00 00 00 [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 D2 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 D2 00 78 08 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [17:25:02]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:25:02]wFMCommunicate OK [17:25:02]SAM_PROTO_GetShiftData done [17:25:02]requested_item shift.sale.total_cash is exist - process it [17:25:02]requested_item shift.sale_refund.total is exist - process it [17:25:02]requested_item shift.sale_refund.total_cash is exist - process it [17:25:02]requested_item shift.buy.total is exist - process it [17:25:02]requested_item shift.buy.total_cash is exist - process it [17:25:02]produce_requested_data done [17:25:02]produce_requested_data return {"fm.sale.total":29927935.92,"fm.sale_refund.total":748353.60,"fm.buy.total":0.00,"shift.sale.total":25407.57,"shift.sale.total_cash":18818.00,"shift.sale_refund.total":80.00,"shift.sale_refund.total_cash":80.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:25:02]process_action_free get_value [17:25:02]json_value_free [17:25:02]json_value_free done [17:25:02]process_json_proto returns [17:25:02]Send response to host [17:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29927935.92,"fm.sale_refund.total":748353.60,"fm.buy.total":0.00,"shift.sale.total":25407.57,"shift.sale.total_cash":18818.00,"shift.sale_refund.total":80.00,"shift.sale_refund.total_cash":80.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:25:02]free response buf [17:25:02]execute_script done [17:25:02]execute_script returns [17:25:02]free content buf [17:25:02]Sock 7.Close socket [17:25:02]Sock 7.Thread stoped [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]accept exits with 9 [17:27:08]New connection [17:27:08]New thread 3067129188 created [17:27:08]Thread 3066985828 joined [17:27:08]Waiting for new connection... [17:27:08] Sock 9.Parse request [17:27:08]Sock 9.Check first char [17:27:08]Sock 9.First char is OK [17:27:08]request: POST /json_proto HTTP/1.0 [17:27:08]Method: POST [17:27:08]URL: /json_proto [17:27:08]Method is POST - this is cgi request [17:27:08]url: /json_proto [17:27:08]query_string will be loaded in cgi processing [17:27:08]execute_cgi json_proto POST (null) [17:27:08]execute_cgi path=json_proto method=POST [17:27:08]POST find Content-Length [17:27:08]Host: 172.17.57.71:8080 [17:27:08]Content-Length: 624 [17:27:08]Content-Type: application/json [17:27:08] [17:27:08]POST finish read [17:27:08]Found Content-Length = 624 [17:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127215", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:08]execute_script... [17:27:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127215", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:08]POST & json_proto [17:27:08]process_json_proto [17:27:08]json parsed OK: [17:27:08]protocol is kg_v1.0 [17:27:08]action value=close_receipt [17:27:08]process_action close_receipt [17:27:08]cmd_close_receipt [17:27:08]MH_GetDate [17:27:08]Write to MH i2c: F0 00 00 79 08 70 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: F0 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: F0 09 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: F0 09 00 79 08 00 ED 75 E4 66 33 3A A4 66 9C [17:27:08]GetLastDocTimeStamp 1726248252 [17:27:08]current date 1726248429 [17:27:08]FM_GetShiftState [17:27:08]SAM_PROTO_GetShiftState [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 01 00 [17:27:08]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8B [17:27:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetShiftState done [17:27:08]FM_GetShiftState done [17:27:08]opened in 1726186930 [17:27:08]opened+sec_in_day 1726273330 [17:27:08]quantity*price = 14700 [17:27:08]sum+1 = 14701 [17:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 93 13.09.2024 17:27 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92285 ФПД: 216624928013816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172710&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92285&fm=216624928013816&tin=02508201610067®Number=0000000000091423&sum=14700 0 [17:27:09]StoreToDocumentArchive [17:27:09]shift 505 fd 92285 [17:27:09]save to /storage/0505/doc_00092285 [17:27:09]save last doc name /storage/0505/doc_00092285 to /storage/kkm_last_doc_name [17:27:09]save OK [17:27:09]Clear old archive folders... [17:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:27:09]tlvbuf is 010162D0 [17:27:09]SAM_PROTO_ClearQueue [17:27:09]wFMCommunicate request_size=4 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 09 00 00 [17:27:09]Write to MH i2c: E2 08 00 87 08 80 09 00 00 00 00 00 00 01 [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [17:27:09]RAPDU: 90 00 [17:27:09]wFMCommunicate OK [17:27:09]SAM_PROTO_ClearQueue done [17:27:09]KKMCreateOFDPacket [17:27:09]OFDProtocolAddRootSTLVToBuf [17:27:09]FM_MakeSignedData [17:27:09]FM_MakeSignedData [17:27:09]SAM_PROTO_SignData [17:27:09]wFMCommunicate request_size=4 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 0D 01 02 [17:27:09]Write to MH i2c: E2 08 00 88 08 80 0D 01 02 00 00 00 00 09 [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [17:27:09]RAPDU: 90 00 [17:27:09]wFMCommunicate OK [17:27:09]wFMCommunicate request_size=255 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EE 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [17:27:09]Write to MH i2c: E2 02 01 89 08 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EE 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 CD [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [17:27:09]RAPDU: 90 00 [17:27:09]wFMCommunicate OK [17:27:09]wFMCommunicate request_size=35 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 68 01 00 35 04 06 00 C5 04 EB E2 3D F8 [17:27:09]Write to MH i2c: E2 26 00 8A 08 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 68 01 00 35 04 06 00 C5 04 EB E2 3D F8 00 00 B4 [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:10]Read from MH i2c: E2 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 03 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [17:27:10]RAPDU: 90 00 [17:27:10]wFMCommunicate OK [17:27:10]wFMCommunicate request_size=4 [17:27:10]MH_SAM_APDU [17:27:10]CAPDU: 80 0D 03 02 [17:27:10]Write to MH i2c: E2 08 00 8B 08 80 0D 03 02 00 00 00 00 0E [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:10]Read from MH i2c: E2 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 0B 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 0B 00 8B 08 00 6A 7F 21 2B 53 38 87 EF 90 00 45 [17:27:10]RAPDU: 6A 7F 21 2B 53 38 87 EF 90 00 [17:27:10]wFMCommunicate OK [17:27:10]SAM_PROTO_SignData done [17:27:10]FM_MakeSignedData done [17:27:10]CreateOFDProtocolMessage [17:27:10]wFMCommunicate request_size=4 [17:27:10]MH_SAM_APDU [17:27:10]CAPDU: 80 11 00 00 [17:27:10]Write to MH i2c: E2 08 00 8C 08 80 11 00 00 00 00 00 00 0E [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:10]Read from MH i2c: E2 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 17 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: E2 17 00 8C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [17:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:27:10]wFMCommunicate OK [17:27:10]CreateOFDProtocolMessage done [17:27:10]OFDSenderStorePacket 92285 [17:27:10]StoreOFDPacket docnum=92285 [17:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 F1 EF 20 01 5C 2F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EE 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 68 01 00 35 04 06 00 C5 04 EB E2 3D F8 6A 7F 21 2B 53 38 87 EF [17:27:10]CheckFolder [17:27:10]dirname=/storage/ofd_packets [17:27:10]CheckFolder done [17:27:10]ProducePacketName [17:27:10]name=ofd_packets/00092285 [17:27:10]NVStorageSaveData ofd_packets/00092285 [17:27:10]File name is /storage/ofd_packets/00092285 [17:27:10]Write 326 bytes [17:27:10]NVStorageSaveData done [17:27:10]OFDSenderStorePacket done [17:27:10]KKMCreateOFDPacket done [17:27:10]NVStorageSaveData kkm_last_timestamp [17:27:10]File name is /storage/kkm_last_timestamp [17:27:10]Write 4 bytes [17:27:10]NVStorageSaveData done [17:27:10]ExternCall_PrintAddStr [17:27:10]wPrintStart [17:27:10]Write to MH i2c: 01 00 00 8D 08 95 [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 07 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 FF 0F AA [17:27:10]RasterBufferAndPrint [17:27:10]line Счет N : (3)127215 [17:27:10]line ИНН: 02508201610067 [17:27:10]line Контрольно-Кассовый Чек [17:27:10]line ПРОДАЖА [17:27:10]line Товар: 48744683 [17:27:10]line Сигареты Winston XStyle Caster+ [17:27:10]line 1.000 * 147.00 [17:27:10]line = 147.00 [17:27:10]line НДС 12% НСП 1% [17:27:10]line > о реализуемом товаре [17:27:10]line ИТОГО: 147.00 [17:27:10]line НСП 1% : 1.30 [17:27:10]line НДС 12% : 15.61 [17:27:10]line Наличными: 147.00 [17:27:10]line Безнал.: 0.00 [17:27:10]line Место: АЗС № 5 "Партнер Нефть" [17:27:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:27:10]line СНО: Общий режим [17:27:10]line Чек 93 13.09.2024 17:27 [17:27:10]line Смена: 505 ФФД: 1.0 [17:27:10]line ЗНМ: 03000000022 [17:27:10]line РНМ: 0000000000091423 [17:27:10]line Версия ККМ: 001 [17:27:10]line ФМ: 0000000000874692 [17:27:10]line ФД: 92285 [17:27:10]line ФПД: 216624928013816 [17:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172710&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92285&fm=216624928013816&tin=02508201610067®Number=0000000000091423&sum=14700 [17:27:10]line 0 [17:27:10]OFD Sender: Processing packet 92285 [packets to send 63, broken 62] [17:27:10]ProducePacketName [17:27:10]name=ofd_packets/00092285 [17:27:10]OFD Sender: To server: pG, [17:27:10]CommunicateWithHost lk.salyk.kg:30040 [17:27:10]ConnectInit lk.salyk.kg [17:27:10]written 0, free lines is 4095 [17:27:10]Connected sock=10 [17:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 F1 EF 20 01 5C 2F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 EE 75 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 68 01 00 35 04 06 00 C5 04 EB E2 3D F8 6A 7F 21 2B 53 38 87 EF [17:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B4 5C 47 00 E8 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 34 36 39 32 10 04 04 00 7D 68 01 00 F4 03 04 00 6C 1E E4 66 B6 04 01 00 00 F8 A3 5D 1D B7 AE C1 1F [17:27:10]CommunicateWithHost err = 0 [17:27:10]CheckOFDResponse [17:27:10]1017 (14) - 77093643461234 [17:27:10]1041 (16) - 0000000000874692 [17:27:10]1040 (4) - 92285 [17:27:10]1012 (4) - 13.09.2024 11:13 [17:27:10]1206 (1) - 0 [17:27:10]OFD Sender: Remove packet 92285 [17:27:10]ProducePacketName [17:27:10]name=ofd_packets/00092285 [17:27:10]NVStorageDeleteData [17:27:10]Write to MH i2c: 01 00 00 B6 08 BE [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 07 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: 01 07 00 B6 08 00 00 00 00 00 14 0D E6 [17:27:10]RasterBufferAndPrint [17:27:10]line [17:27:10]line [17:27:10]line [17:27:10]line [17:27:10]line [17:27:10]written 0, free lines is 3356 [17:27:10]MH_Cut [17:27:10]Write to MH i2c: D1 01 00 BD 08 01 97 [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: D1 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: D1 01 00 [17:27:10]MH_I2C_Read... [17:27:10]Read from MH i2c: D1 01 00 BD 08 00 96 [17:27:10]Write to MH i2c: 01 00 00 BE 08 C6 [17:27:10]Write i2c OK [17:27:10]MH_I2C_Read... [17:27:11]OFD Sender: No OFD packet to send [17:27:11]*** Cut start [17:27:11]*** Purtial cut [17:27:11]*** Stage 1: CUTSNS_PIN = 1 [17:27:13]Read from MH i2c: 01 [17:27:13]MH_I2C_Read... [17:27:13]*** Stop cut motor [17:27:13]*** Cut end [17:27:13]Read from MH i2c: 01 07 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 FF 0F DB [17:27:13]process_action close_receipt done [17:27:13]requested_data is exist [17:27:13]produce_requested_data [17:27:13]requested_item fm.sn is exist - process it [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 11 00 00 [17:27:13]Write to MH i2c: E2 08 00 BF 08 80 11 00 00 00 00 00 00 41 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 BF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 98 [17:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:27:13]wFMCommunicate OK [17:27:13]requested_item fd.num is exist - process it [17:27:13]SAM_PROTO_GetFieldsCounters [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 13 00 00 [17:27:13]Write to MH i2c: E2 08 00 C0 08 80 13 00 00 00 00 00 00 44 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 62 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 62 00 C0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [17:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_GetFieldsCounters done [17:27:13]requested_item shift.num is exist - process it [17:27:13]requested_item shift.opened is exist - process it [17:27:13]req_shift_opened [17:27:13]FM_GetShiftState [17:27:13]SAM_PROTO_GetShiftState [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 13 01 00 [17:27:13]Write to MH i2c: E2 08 00 C1 08 80 13 01 00 00 00 00 00 46 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0E 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0E 00 C1 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D2 [17:27:13]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_GetShiftState done [17:27:13]FM_GetShiftState done [17:27:13]req_shift_opened done [17:27:13]requested_item shift.open_date is exist - process it [17:27:13]req_shift_open_date [17:27:13]req_shift_open_date done [17:27:13]produce_requested_data done [17:27:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92285,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:27:13]process_action_free close_receipt [17:27:13]json_value_free [17:27:13]json_value_free done [17:27:13]process_json_proto returns [17:27:13]Send response to host [17:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92285,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:27:13]free response buf [17:27:13]execute_script done [17:27:13]execute_script returns [17:27:13]free content buf [17:27:13]Sock 9.Close socket [17:27:13]Sock 9.Thread stoped [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:35]accept exits with 7 [17:27:35]New connection [17:27:35]New thread 3066985828 created [17:27:35]Thread 3067129188 joined [17:27:35]Waiting for new connection... [17:27:35] Sock 7.Parse request [17:27:35]Sock 7.Check first char [17:27:35]Sock 7.First char is OK [17:27:35]request: POST /json_proto HTTP/1.0 [17:27:35]Method: POST [17:27:35]URL: /json_proto [17:27:35]Method is POST - this is cgi request [17:27:35]url: /json_proto [17:27:35]query_string will be loaded in cgi processing [17:27:35]execute_cgi json_proto POST (null) [17:27:35]execute_cgi path=json_proto method=POST [17:27:35]POST find Content-Length [17:27:35]Host: 172.17.57.71:8080 [17:27:35]Content-Length: 790 [17:27:35]Content-Type: application/json [17:27:35] [17:27:35]POST finish read [17:27:35]Found Content-Length = 790 [17:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)646978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A65979", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:35]execute_script... [17:27: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)646978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A65979", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:35]POST & json_proto [17:27:35]process_json_proto [17:27:35]json parsed OK: [17:27:35]protocol is kg_v1.0 [17:27:35]action value=close_receipt [17:27:35]process_action close_receipt [17:27:35]cmd_close_receipt [17:27:35]MH_GetDate [17:27:35]Write to MH i2c: F0 00 00 C2 08 B9 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 C2 08 00 08 76 E4 66 33 3A A4 66 01 [17:27:35]GetLastDocTimeStamp 1726248430 [17:27:35]current date 1726248456 [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D4 [17:27:35]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]opened in 1726186930 [17:27:35]opened+sec_in_day 1726273330 [17:27:35]quantity*price = 0 [17:27:35]sum+1 = 1 [17:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 94 13.09.2024 17:27 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Талоны: Топливная Карта 65979 ФМ: 0000000000874692 ФД: 92286 ФПД: 211911429125382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92286&fm=211911429125382&tin=02508201610067®Number=0000000000091423&sum=0 [17:27:36]StoreToDocumentArchive [17:27:36]shift 505 fd 92286 [17:27:36]save to /storage/0505/doc_00092286 [17:27:36]save last doc name /storage/0505/doc_00092286 to /storage/kkm_last_doc_name [17:27:36]save OK [17:27:36]Clear old archive folders... [17:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:36]tlvbuf is 01015F00 [17:27:36]SAM_PROTO_ClearQueue [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 09 00 00 [17:27:36]Write to MH i2c: E2 08 00 D0 08 80 09 00 00 00 00 00 00 4A [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]SAM_PROTO_ClearQueue done [17:27:36]KKMCreateOFDPacket [17:27:36]OFDProtocolAddRootSTLVToBuf [17:27:36]FM_MakeSignedData [17:27:36]FM_MakeSignedData [17:27:36]SAM_PROTO_SignData [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 01 02 [17:27:36]Write to MH i2c: E2 08 00 D1 08 80 0D 01 02 00 00 00 00 52 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=255 [17:27:36]MH_SAM_APDU [17:27: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 08 76 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 68 01 00 35 04 06 00 C0 BB 79 74 [17:27:36]Write to MH i2c: E2 02 01 D2 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 08 76 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 68 01 00 35 04 06 00 C0 BB 79 74 00 00 43 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=7 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 02 02 02 F5 06 [17:27:36]Write to MH i2c: E2 0A 00 D3 08 80 0D 02 02 02 00 F5 06 00 00 54 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 03 02 [17:27:36]Write to MH i2c: E2 08 00 D4 08 80 0D 03 02 00 00 00 00 57 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 0B 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 0B 00 D4 08 00 D8 1F 74 CC 03 0E 27 A3 90 00 6A [17:27:36]RAPDU: D8 1F 74 CC 03 0E 27 A3 90 00 [17:27:36]wFMCommunicate OK [17:27:36]SAM_PROTO_SignData done [17:27:36]FM_MakeSignedData done [17:27:36]CreateOFDProtocolMessage [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 11 00 00 [17:27:36]Write to MH i2c: E2 08 00 D5 08 80 11 00 00 00 00 00 00 57 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 17 00 [17:27:36]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 17 00 D5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [17:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:27:37]wFMCommunicate OK [17:27:37]CreateOFDProtocolMessage done [17:27:37]OFDSenderStorePacket 92286 [17:27:37]StoreOFDPacket docnum=92286 [17:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 03 1B 04 01 E7 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 76 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 68 01 00 35 04 06 00 C0 BB 79 74 F5 06 D8 1F 74 CC 03 0E 27 A3 [17:27:37]CheckFolder [17:27:37]dirname=/storage/ofd_packets [17:27:37]CheckFolder done [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00092286 [17:27:37]NVStorageSaveData ofd_packets/00092286 [17:27:37]File name is /storage/ofd_packets/00092286 [17:27:37]Write 298 bytes [17:27:37]NVStorageSaveData done [17:27:37]OFDSenderStorePacket done [17:27:37]KKMCreateOFDPacket done [17:27:37]NVStorageSaveData kkm_last_timestamp [17:27:37]File name is /storage/kkm_last_timestamp [17:27:37]Write 4 bytes [17:27:37]NVStorageSaveData done [17:27:37]ExternCall_PrintAddStr [17:27:37]wPrintStart [17:27:37]Write to MH i2c: 01 00 00 D6 08 DE [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 FF 0F F3 [17:27:37]RasterBufferAndPrint [17:27:37]line Счет N : (1)646978 [17:27:37]line ИНН: 02508201610067 [17:27:37]line Контрольно-Кассовый Чек [17:27:37]line ПРОДАЖА [17:27:37]line ТРК (МРК, ГНК) : 54 [17:27:37]line Товар: 2710194210 [17:27:37]line ДТ-К-5 [17:27:37]line 100.000 * 0.00 [17:27:37]line = 0.00 [17:27:37]line НДС 12% НСП 1% [17:27:37]line > о реализуемом товаре [17:27:37]line ИТОГО: 0.00 [17:27:37]line НСП 1% : 0.00 [17:27:37]line НДС 12% : 0.00 [17:27:37]line Наличными: 0.00 [17:27:37]line Безнал.: 0.00 [17:27:37]line Место: АЗС № 5 "Партнер Нефть" [17:27:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:27:37]line СНО: Общий режим [17:27:37]line Чек 94 13.09.2024 17:27 [17:27:37]line Смена: 505 ФФД: 1.0 [17:27:37]line ЗНМ: 03000000022 [17:27:37]line РНМ: 0000000000091423 [17:27:37]line Версия ККМ: 001 [17:27:37]line Талоны: Топливная Карта [17:27:37]line 65979 [17:27:37]line ФМ: 0000000000874692 [17:27:37]line ФД: 92286 [17:27:37]line ФПД: 211911429125382 [17:27:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T172736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92286&fm=211911429125382&tin=02508201610067®Number=0000000000091423&sum=0 [17:27:37]OFD Sender: Processing packet 92286 [packets to send 63, broken 62] [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00092286 [17:27:37]OFD Sender: To server: pG, [17:27:37]CommunicateWithHost lk.salyk.kg:30040 [17:27:37]ConnectInit lk.salyk.kg [17:27:37]written 0, free lines is 4095 [17:27:37]Connected sock=10 [17:27:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 03 1B 04 01 E7 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 76 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 68 01 00 35 04 06 00 C0 BB 79 74 F5 06 D8 1F 74 CC 03 0E 27 A3 [17:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 47 71 47 00 4A FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 68 01 00 F4 03 04 00 86 1E E4 66 B6 04 01 00 00 58 17 83 CE 4B 08 92 81 [17:27:37]CommunicateWithHost err = 0 [17:27:37]CheckOFDResponse [17:27:37]1017 (14) - 77093643461234 [17:27:37]1041 (16) - 0000000000874692 [17:27:37]1040 (4) - 92286 [17:27:37]1012 (4) - 13.09.2024 11:14 [17:27:37]1206 (1) - 0 [17:27:37]OFD Sender: Remove packet 92286 [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00092286 [17:27:37]NVStorageDeleteData [17:27:37]Write to MH i2c: 01 00 00 00 09 09 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 02 0D 1F [17:27:37]RasterBufferAndPrint [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]written 0, free lines is 3336 [17:27:37]MH_Cut [17:27:37]Write to MH i2c: D1 01 00 07 09 01 E2 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 01 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 01 00 07 09 00 E1 [17:27:37]Write to MH i2c: 01 00 00 08 09 11 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:38]OFD Sender: No OFD packet to send [17:27:38]*** Cut start [17:27:38]*** Purtial cut [17:27:38]*** Stage 1: CUTSNS_PIN = 1 [17:27:40]Read from MH i2c: 01 [17:27:40]MH_I2C_Read... [17:27:40]*** Stop cut motor [17:27:40]*** Cut end [17:27:40]Read from MH i2c: 01 07 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [17:27:40]process_action close_receipt done [17:27:40]requested_data is exist [17:27:40]produce_requested_data [17:27:40]requested_item fm.sn is exist - process it [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 11 00 00 [17:27:40]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 17 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 17 00 09 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E3 [17:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:27:40]wFMCommunicate OK [17:27:40]requested_item fd.num is exist - process it [17:27:40]SAM_PROTO_GetFieldsCounters [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 13 00 00 [17:27:40]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 62 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 62 00 0A 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:40]wFMCommunicate OK [17:27:40]SAM_PROTO_GetFieldsCounters done [17:27:40]requested_item shift.num is exist - process it [17:27:40]requested_item shift.opened is exist - process it [17:27:40]req_shift_opened [17:27:40]FM_GetShiftState [17:27:40]SAM_PROTO_GetShiftState [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 13 01 00 [17:27:40]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 0E 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1D [17:27:40]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:27:40]wFMCommunicate OK [17:27:40]SAM_PROTO_GetShiftState done [17:27:40]FM_GetShiftState done [17:27:40]req_shift_opened done [17:27:40]requested_item shift.open_date is exist - process it [17:27:40]req_shift_open_date [17:27:40]req_shift_open_date done [17:27:40]produce_requested_data done [17:27:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92286,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:27:40]process_action_free close_receipt [17:27:40]json_value_free [17:27:40]json_value_free done [17:27:40]process_json_proto returns [17:27:40]Send response to host [17:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92286,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:27:40]free response buf [17:27:40]execute_script done [17:27:40]execute_script returns [17:27:40]free content buf [17:27:40]Sock 7.Close socket [17:27:40]Sock 7.Thread stoped [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:11]accept exits with 9 [17:38:11]New connection [17:38:11]New thread 3067129188 created [17:38:11]Thread 3066985828 joined [17:38:11]Waiting for new connection... [17:38:11] Sock 9.Parse request [17:38:11]Sock 9.Check first char [17:38:11]Sock 9.First char is OK [17:38:11]request: POST /json_proto HTTP/1.0 [17:38:11]Method: POST [17:38:11]URL: /json_proto [17:38:11]Method is POST - this is cgi request [17:38:11]url: /json_proto [17:38:11]query_string will be loaded in cgi processing [17:38:11]execute_cgi json_proto POST (null) [17:38:11]execute_cgi path=json_proto method=POST [17:38:11]POST find Content-Length [17:38:11]Host: 172.17.57.71:8080 [17:38:11]Content-Length: 1330 [17:38:11]Content-Type: application/json [17:38:11] [17:38:11]POST finish read [17:38:11]Found Content-Length = 1330 [17:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127216", "tax_sys" : 0, "items" : [ { "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:11]execute_script... [17:38: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 : (3)127216", "tax_sys" : 0, "items" : [ { "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:11]POST & json_proto [17:38:11]process_json_proto [17:38:11]json parsed OK: [17:38:11]protocol is kg_v1.0 [17:38:11]action value=close_receipt [17:38:11]process_action close_receipt [17:38:11]cmd_close_receipt [17:38:11]MH_GetDate [17:38:11]Write to MH i2c: F0 00 00 0C 09 04 [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: F0 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: F0 09 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: F0 09 00 0C 09 00 85 78 E4 66 33 3A A4 66 CB [17:38:11]GetLastDocTimeStamp 1726248456 [17:38:11]current date 1726249093 [17:38:11]FM_GetShiftState [17:38:11]SAM_PROTO_GetShiftState [17:38:11]wFMCommunicate request_size=4 [17:38:11]MH_SAM_APDU [17:38:11]CAPDU: 80 13 01 00 [17:38:11]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1F [17:38:11]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:38:11]wFMCommunicate OK [17:38:11]SAM_PROTO_GetShiftState done [17:38:11]FM_GetShiftState done [17:38:11]opened in 1726186930 [17:38:11]opened+sec_in_day 1726273330 [17:38:11]quantity*price = 14100 [17:38:11]sum+1 = 14101 [17:38:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870216764968 Нагр.Таб.Палоч. HEETS Torquoise Selectio 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 392.00 НСП 1% : 3.47 НДС 12% : 41.62 Наличными: 0.00 Безнал.: 392.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 95 13.09.2024 17:38 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92287 ФПД: 108777051994240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T173813&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92287&fm=108777051994240&tin=02508201610067®Number=0000000000091423&sum=39200 0 [17:38:12]StoreToDocumentArchive [17:38:12]shift 505 fd 92287 [17:38:12]save to /storage/0505/doc_00092287 [17:38:12]save last doc name /storage/0505/doc_00092287 to /storage/kkm_last_doc_name [17:38:12]save OK [17:38:12]Clear old archive folders... [17:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=505 [17:38:12]tlvbuf is 0101EAE0 [17:38:12]SAM_PROTO_ClearQueue [17:38:12]wFMCommunicate request_size=4 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 09 00 00 [17:38:12]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [17:38:12]Write i2c OK [17:38:12]MH_I2C_Read... [17:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:12]Read from MH i2c: E2 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [17:38:12]RAPDU: 90 00 [17:38:12]wFMCommunicate OK [17:38:12]SAM_PROTO_ClearQueue done [17:38:12]KKMCreateOFDPacket [17:38:12]OFDProtocolAddRootSTLVToBuf [17:38:12]FM_MakeSignedData [17:38:12]FM_MakeSignedData [17:38:12]SAM_PROTO_SignData [17:38:12]wFMCommunicate request_size=4 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 0D 01 02 [17:38:12]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [17:38:12]Write i2c OK [17:38:12]MH_I2C_Read... [17:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:12]Read from MH i2c: E2 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [17:38:12]RAPDU: 90 00 [17:38:12]wFMCommunicate OK [17:38:12]wFMCommunicate request_size=255 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [17:38:13]Write to MH i2c: E2 02 01 1C 09 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 80 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=255 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 0D 02 02 FA 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 85 78 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 68 01 00 35 [17:38:13]Write to MH i2c: E2 02 01 1D 09 80 0D 02 02 FA 00 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 85 78 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 68 01 00 35 00 00 DE [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]OFD Sender: No OFD packet to send [17:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=14 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 0D 02 02 09 04 06 00 62 EE A1 8B 38 80 [17:38:13]Write to MH i2c: E2 11 00 1E 09 80 0D 02 02 09 00 04 06 00 62 EE A1 8B 38 80 00 00 F1 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=4 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 0D 03 02 [17:38:13]Write to MH i2c: E2 08 00 1F 09 80 0D 03 02 00 00 00 00 A3 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 0B 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 0B 00 1F 09 00 46 74 AD F4 8E 58 25 C4 90 00 CE [17:38:13]RAPDU: 46 74 AD F4 8E 58 25 C4 90 00 [17:38:13]wFMCommunicate OK [17:38:13]SAM_PROTO_SignData done [17:38:13]FM_MakeSignedData done [17:38:13]CreateOFDProtocolMessage [17:38:13]wFMCommunicate request_size=4 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 11 00 00 [17:38:13]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 17 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [17:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:38:14]wFMCommunicate OK [17:38:14]CreateOFDProtocolMessage done [17:38:14]OFDSenderStorePacket 92287 [17:38:14]StoreOFDPacket docnum=92287 [17:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 02 00 00 43 6A 05 02 83 0A 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 85 78 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 68 01 00 35 04 06 00 62 EE A1 8B 38 80 46 74 AD F4 8E 58 25 C4 [17:38:14]CheckFolder [17:38:14]dirname=/storage/ofd_packets [17:38:14]CheckFolder done [17:38:14]ProducePacketName [17:38:14]name=ofd_packets/00092287 [17:38:14]NVStorageSaveData ofd_packets/00092287 [17:38:14]File name is /storage/ofd_packets/00092287 [17:38:14]Write 555 bytes [17:38:14]NVStorageSaveData done [17:38:14]OFDSenderStorePacket done [17:38:14]KKMCreateOFDPacket done [17:38:14]NVStorageSaveData kkm_last_timestamp [17:38:14]File name is /storage/kkm_last_timestamp [17:38:14]Write 4 bytes [17:38:14]NVStorageSaveData done [17:38:14]ExternCall_PrintAddStr [17:38:14]wPrintStart [17:38:14]Write to MH i2c: 01 00 00 21 09 2A [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 07 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [17:38:14]RasterBufferAndPrint [17:38:14]line Счет N : (3)127216 [17:38:14]line ИНН: 02508201610067 [17:38:14]line Контрольно-Кассовый Чек [17:38:14]line ПРОДАЖА [17:38:14]line Товар: 4870216767921 [17:38:14]line Нагр.Таб.Палоч. HEETS Ruby Fuse [17:38:14]line 1.000 * 141.00 [17:38:14]line = 141.00 [17:38:14]line НДС 12% НСП 1% [17:38:14]line > о реализуемом товаре [17:38:14]line Товар: 4870216764968 [17:38:14]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [17:38:14]line 1.000 * 141.00 [17:38:14]line = 141.00 [17:38:14]line НДС 12% НСП 1% [17:38:14]line > о реализуемом товаре [17:38:14]line Товар: 4870001570071 [17:38:14]line Напиток Pepsi 1л [17:38:14]line 1.000 * 110.00 [17:38:14]line = 110.00 [17:38:14]line НДС 12% НСП 1% [17:38:14]line > о реализуемом товаре [17:38:14]line ИТОГО: 392.00 [17:38:14]line НСП 1% : 3.47 [17:38:14]line НДС 12% : 41.62 [17:38:14]line Наличными: 0.00 [17:38:14]line Безнал.: 392.00 [17:38:14]line Место: АЗС № 5 "Партнер Нефть" [17:38:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:38:14]line СНО: Общий режим [17:38:14]line Чек 95 13.09.2024 17:38 [17:38:14]line Смена: 505 ФФД: 1.0 [17:38:14]line ЗНМ: 03000000022 [17:38:14]line РНМ: 0000000000091423 [17:38:14]line Версия ККМ: 001 [17:38:14]line Платежная система: Бакай Банк [17:38:14]line ФМ: 0000000000874692 [17:38:14]line ФД: 92287 [17:38:14]line ФПД: 108777051994240 [17:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T173813&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92287&fm=108777051994240&tin=02508201610067®Number=0000000000091423&sum=39200 [17:38:14]OFD Sender: Processing packet 92287 [packets to send 63, broken 62] [17:38:14]ProducePacketName [17:38:14]name=ofd_packets/00092287 [17:38:14]OFD Sender: To server: pG, [17:38:14]CommunicateWithHost lk.salyk.kg:30040 [17:38:14]ConnectInit lk.salyk.kg [17:38:14]line 0 [17:38:14]written 0, free lines is 4095 [17:38:14]Connected sock=10 [17:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 02 00 00 43 6A 05 02 83 0A 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 85 78 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 68 01 00 35 04 06 00 62 EE A1 8B 38 80 46 74 AD F4 8E 58 25 C4 [17:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BD 6F 47 00 68 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 34 36 39 32 10 04 04 00 7F 68 01 00 F4 03 04 00 03 21 E4 66 B6 04 01 00 00 FB 2B 4E 9F 6A 36 BD 14 [17:38:14]CommunicateWithHost err = 0 [17:38:14]CheckOFDResponse [17:38:14]1017 (14) - 77093643461234 [17:38:14]1041 (16) - 0000000000874692 [17:38:14]1040 (4) - 92287 [17:38:14]1012 (4) - 13.09.2024 11:24 [17:38:14]1206 (1) - 0 [17:38:14]OFD Sender: Remove packet 92287 [17:38:14]ProducePacketName [17:38:14]name=ofd_packets/00092287 [17:38:14]NVStorageDeleteData [17:38:14]Write to MH i2c: 01 00 00 59 09 62 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 07 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: 01 07 00 59 09 00 00 00 00 00 50 0C C5 [17:38:14]RasterBufferAndPrint [17:38:14]line [17:38:14]line [17:38:14]line [17:38:14]line [17:38:14]line [17:38:14]written 0, free lines is 3159 [17:38:14]MH_Cut [17:38:14]Write to MH i2c: D1 01 00 60 09 01 3B [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: D1 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: D1 01 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: D1 01 00 60 09 00 3A [17:38:14]Write to MH i2c: 01 00 00 61 09 6A [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:15]OFD Sender: No OFD packet to send [17:38:15]*** Cut start [17:38:15]*** Purtial cut [17:38:15]*** Stage 1: CUTSNS_PIN = 1 [17:38:17]Read from MH i2c: 01 [17:38:17]MH_I2C_Read... [17:38:17]*** Stop cut motor [17:38:17]*** Cut end [17:38:17]Read from MH i2c: 01 07 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 FF 0F 7F [17:38:17]process_action close_receipt done [17:38:17]requested_data is exist [17:38:17]produce_requested_data [17:38:17]requested_item fm.sn is exist - process it [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 11 00 00 [17:38:17]Write to MH i2c: E2 08 00 62 09 80 11 00 00 00 00 00 00 E5 [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 17 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 17 00 62 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3C [17:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:38:17]wFMCommunicate OK [17:38:17]requested_item fd.num is exist - process it [17:38:17]SAM_PROTO_GetFieldsCounters [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 13 00 00 [17:38:17]Write to MH i2c: E2 08 00 63 09 80 13 00 00 00 00 00 00 E8 [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 62 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 62 00 63 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:17]wFMCommunicate OK [17:38:17]SAM_PROTO_GetFieldsCounters done [17:38:17]requested_item shift.num is exist - process it [17:38:17]requested_item shift.opened is exist - process it [17:38:17]req_shift_opened [17:38:17]FM_GetShiftState [17:38:17]SAM_PROTO_GetShiftState [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 13 01 00 [17:38:17]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 76 [17:38:18]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:38:18]wFMCommunicate OK [17:38:18]SAM_PROTO_GetShiftState done [17:38:18]FM_GetShiftState done [17:38:18]req_shift_opened done [17:38:18]requested_item shift.open_date is exist - process it [17:38:18]req_shift_open_date [17:38:18]req_shift_open_date done [17:38:18]produce_requested_data done [17:38:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92287,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [17:38:18]process_action_free close_receipt [17:38:18]json_value_free [17:38:18]json_value_free done [17:38:18]process_json_proto returns [17:38:18]Send response to host [17:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92287,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [17:38:18]free response buf [17:38:18]execute_script done [17:38:18]execute_script returns [17:38:18]free content buf [17:38:18]Sock 9.Close socket [17:38:18]Sock 9.Thread stoped [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40: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:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:36]accept exits with 7 [17:44:36]New connection [17:44:36]New thread 3066985828 created [17:44:36]Thread 3067129188 joined [17:44:36]Waiting for new connection... [17:44:36] Sock 7.Parse request [17:44:36]Sock 7.Check first char [17:44:36]Sock 7.First char is OK [17:44:36]request: POST /json_proto HTTP/1.0 [17:44:36]Method: POST [17:44:36]URL: /json_proto [17:44:36]Method is POST - this is cgi request [17:44:36]url: /json_proto [17:44:36]query_string will be loaded in cgi processing [17:44:36]execute_cgi json_proto POST (null) [17:44:36]execute_cgi path=json_proto method=POST [17:44:36]POST find Content-Length [17:44:36]Host: 172.17.57.71:8080 [17:44:36]Content-Length: 616 [17:44:36]Content-Type: application/json [17:44:36] [17:44:36]POST finish read [17:44:36]Found Content-Length = 616 [17:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127217", "tax_sys" : 0, "items" : [ { "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:36]execute_script... [17:44: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 : (3)127217", "tax_sys" : 0, "items" : [ { "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:36]POST & json_proto [17:44:36]process_json_proto [17:44:36]json parsed OK: [17:44:36]protocol is kg_v1.0 [17:44:36]action value=close_receipt [17:44:36]process_action close_receipt [17:44:36]cmd_close_receipt [17:44:36]MH_GetDate [17:44:36]Write to MH i2c: F0 00 00 65 09 5D [17:44:36]Write i2c OK [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 09 00 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 09 00 65 09 00 05 7A E4 66 33 3A A4 66 A6 [17:44:36]GetLastDocTimeStamp 1726249093 [17:44:36]current date 1726249477 [17:44:36]FM_GetShiftState [17:44:36]SAM_PROTO_GetShiftState [17:44:36]wFMCommunicate request_size=4 [17:44:36]MH_SAM_APDU [17:44:36]CAPDU: 80 13 01 00 [17:44:36]Write to MH i2c: E2 08 00 66 09 80 13 01 00 00 00 00 00 EC [17:44:36]Write i2c OK [17:44:36]MH_I2C_Read... [17:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:36]Read from MH i2c: E2 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: E2 0E 00 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: E2 0E 00 66 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 78 [17:44:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [17:44:36]wFMCommunicate OK [17:44:36]SAM_PROTO_GetShiftState done [17:44:36]FM_GetShiftState done [17:44:36]opened in 1726186930 [17:44:36]opened+sec_in_day 1726273330 [17:44:36]quantity*price = 14800 [17:44:36]sum+1 = 14801 [17:44:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 3.000 * 40.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 97 13.09.2024 19:14 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92289 ФПД: 77641080106230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191456&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92289&fm=77641080106230&tin=02508201610067®Number=0000000000091423&sum=17000 0 [19:14:57]StoreToDocumentArchive [19:14:57]shift 505 fd 92289 [19:14:57]save to /storage/0505/doc_00092289 [19:14:57]save last doc name /storage/0505/doc_00092289 to /storage/kkm_last_doc_name [19:14:57]save OK [19:14:57]Clear old archive folders... [19:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=370 [19:14:57]tlvbuf is 012C2FF0 [19:14:57]SAM_PROTO_ClearQueue [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 09 00 00 [19:14:57]Write to MH i2c: E2 08 00 29 00 80 09 00 00 00 00 00 00 9B [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]SAM_PROTO_ClearQueue done [19:14:57]KKMCreateOFDPacket [19:14:57]OFDProtocolAddRootSTLVToBuf [19:14:57]FM_MakeSignedData [19:14:57]FM_MakeSignedData [19:14:57]SAM_PROTO_SignData [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 0D 01 02 [19:14:57]Write to MH i2c: E2 08 00 2A 00 80 0D 01 02 00 00 00 00 A3 [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]wFMCommunicate request_size=255 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [19:14:57]Write to MH i2c: E2 02 01 2B 00 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 58 [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]wFMCommunicate request_size=129 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 68 01 00 35 04 06 00 46 9D 38 FF EC F6 [19:14:57]Write to MH i2c: E2 84 00 2C 00 80 0D 02 02 7C 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 68 01 00 35 04 06 00 46 9D 38 FF EC F6 00 00 DB [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:14:58]RAPDU: 90 00 [19:14:58]wFMCommunicate OK [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 0D 03 02 [19:14:58]Write to MH i2c: E2 08 00 2D 00 80 0D 03 02 00 00 00 00 A8 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 2D 00 00 9C 44 29 18 A3 CD 2B 4C 90 00 B1 [19:14:58]RAPDU: 9C 44 29 18 A3 CD 2B 4C 90 00 [19:14:58]wFMCommunicate OK [19:14:58]SAM_PROTO_SignData done [19:14:58]FM_MakeSignedData done [19:14:58]CreateOFDProtocolMessage [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 11 00 00 [19:14:58]Write to MH i2c: E2 08 00 2E 00 80 11 00 00 00 00 00 00 A8 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 2E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [19:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:14:58]wFMCommunicate OK [19:14:58]CreateOFDProtocolMessage done [19:14:58]OFDSenderStorePacket 92289 [19:14:58]StoreOFDPacket docnum=92289 [19:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 86 01 00 00 C6 08 7E 01 55 B9 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 68 01 00 35 04 06 00 46 9D 38 FF EC F6 9C 44 29 18 A3 CD 2B 4C [19:14:58]CheckFolder [19:14:58]dirname=/storage/ofd_packets [19:14:58]CheckFolder done [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00092289 [19:14:58]NVStorageSaveData ofd_packets/00092289 [19:14:58]File name is /storage/ofd_packets/00092289 [19:14:58]Write 420 bytes [19:14:58]NVStorageSaveData done [19:14:58]OFDSenderStorePacket done [19:14:58]KKMCreateOFDPacket done [19:14:58]NVStorageSaveData kkm_last_timestamp [19:14:58]File name is /storage/kkm_last_timestamp [19:14:58]Write 4 bytes [19:14:58]NVStorageSaveData done [19:14:58]ExternCall_PrintAddStr [19:14:58]wPrintStart [19:14:58]Write to MH i2c: 01 00 00 2F 00 2F [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 2F 00 00 00 00 00 00 FF 0F 44 [19:14:58]RasterBufferAndPrint [19:14:58]line Счет N : (3)127219 [19:14:58]line ИНН: 02508201610067 [19:14:58]line Контрольно-Кассовый Чек [19:14:58]line ПРОДАЖА [19:14:58]line Товар: 4700000160358 [19:14:58]line Вода Легенда 1л [19:14:58]line 1.000 * 50.00 [19:14:58]line = 50.00 [19:14:58]line НДС 12% НСП 1% [19:14:58]line > о реализуемом товаре [19:14:58]line Товар: 4700000160211 [19:14:58]line Вода Легенда 0,5л [19:14:58]line 3.000 * 40.00 [19:14:58]line = 120.00 [19:14:58]line НДС 12% НСП 1% [19:14:58]line > о реализуемом товаре [19:14:58]line ИТОГО: 170.00 [19:14:58]line НСП 1% : 1.50 [19:14:58]line НДС 12% : 18.05 [19:14:58]line Наличными: 170.00 [19:14:58]line Безнал.: 0.00 [19:14:58]line Место: АЗС № 5 "Партнер Нефть" [19:14:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:14:58]line СНО: Общий режим [19:14:58]line Чек 97 13.09.2024 19:14 [19:14:58]line Смена: 505 ФФД: 1.0 [19:14:58]line ЗНМ: 03000000022 [19:14:58]line РНМ: 0000000000091423 [19:14:58]line Версия ККМ: 001 [19:14:58]line ФМ: 0000000000874692 [19:14:58]line ФД: 92289 [19:14:58]line ФПД: 77641080106230 [19:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191456&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92289&fm=77641080106230&tin=02508201610067®Number=0000000000091423&sum=17000 [19:14:58]line 0 [19:14:58]written 0, free lines is 4095 [19:14:58]OFD Sender: Processing packet 92289 [packets to send 63, broken 62] [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00092289 [19:14:58]OFD Sender: To server: pG, [19:14:58]CommunicateWithHost lk.salyk.kg:30040 [19:14:58]ConnectInit lk.salyk.kg [19:14:58]Connected sock=10 [19:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 86 01 00 00 C6 08 7E 01 55 B9 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 68 01 00 35 04 06 00 46 9D 38 FF EC F6 9C 44 29 18 A3 CD 2B 4C [19:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 33 93 47 00 B5 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 68 01 00 F4 03 04 00 AE 37 E4 66 B6 04 01 00 00 0E CA 7A 5A C8 D7 90 7F [19:14:58]CommunicateWithHost err = 0 [19:14:58]CheckOFDResponse [19:14:58]1017 (14) - 77093643461234 [19:14:58]1041 (16) - 0000000000874692 [19:14:58]1040 (4) - 92289 [19:14:58]1012 (4) - 13.09.2024 13:01 [19:14:58]1206 (1) - 0 [19:14:58]OFD Sender: Remove packet 92289 [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00092289 [19:14:58]NVStorageDeleteData [19:14:58]Write to MH i2c: 01 00 00 5D 00 5D [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 5D 00 00 00 00 00 00 E3 0C 53 [19:14:58]RasterBufferAndPrint [19:14:58]line [19:14:58]line [19:14:58]line [19:14:58]line [19:14:58]line [19:14:58]written 0, free lines is 3310 [19:14:58]MH_Cut [19:14:58]Write to MH i2c: D1 01 00 64 00 01 36 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: D1 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: D1 01 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: D1 01 00 64 00 00 35 [19:14:58]Write to MH i2c: 01 00 00 65 00 65 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:59]OFD Sender: No OFD packet to send [19:14:59]*** Cut start [19:14:59]*** Purtial cut [19:14:59]*** Stage 1: CUTSNS_PIN = 1 [19:15:01]Read from MH i2c: 01 [19:15:01]MH_I2C_Read... [19:15:01]*** Stop cut motor [19:15:01]*** Cut end [19:15:01]Read from MH i2c: 01 07 00 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [19:15:01]process_action close_receipt done [19:15:01]requested_data is exist [19:15:01]produce_requested_data [19:15:01]requested_item fm.sn is exist - process it [19:15:01]wFMCommunicate request_size=4 [19:15:01]MH_SAM_APDU [19:15:01]CAPDU: 80 11 00 00 [19:15:01]Write to MH i2c: E2 08 00 66 00 80 11 00 00 00 00 00 00 E0 [19:15:01]Write i2c OK [19:15:01]MH_I2C_Read... [19:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:01]Read from MH i2c: E2 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 17 00 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 17 00 66 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 37 [19:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:01]wFMCommunicate OK [19:15:01]requested_item fd.num is exist - process it [19:15:01]SAM_PROTO_GetFieldsCounters [19:15:01]wFMCommunicate request_size=4 [19:15:01]MH_SAM_APDU [19:15:01]CAPDU: 80 13 00 00 [19:15:01]Write to MH i2c: E2 08 00 67 00 80 13 00 00 00 00 00 00 E3 [19:15:01]Write i2c OK [19:15:01]MH_I2C_Read... [19:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:01]Read from MH i2c: E2 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 62 00 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 62 00 67 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 81 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:15:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 81 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:01]wFMCommunicate OK [19:15:01]SAM_PROTO_GetFieldsCounters done [19:15:01]requested_item shift.num is exist - process it [19:15:01]requested_item shift.opened is exist - process it [19:15:01]req_shift_opened [19:15:01]FM_GetShiftState [19:15:01]SAM_PROTO_GetShiftState [19:15:01]wFMCommunicate request_size=4 [19:15:01]MH_SAM_APDU [19:15:01]CAPDU: 80 13 01 00 [19:15:01]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [19:15:01]Write i2c OK [19:15:01]MH_I2C_Read... [19:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:01]Read from MH i2c: E2 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 0E 00 [19:15:01]MH_I2C_Read... [19:15:01]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 71 [19:15:01]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:01]wFMCommunicate OK [19:15:01]SAM_PROTO_GetShiftState done [19:15:01]FM_GetShiftState done [19:15:01]req_shift_opened done [19:15:01]requested_item shift.open_date is exist - process it [19:15:01]req_shift_open_date [19:15:01]req_shift_open_date done [19:15:01]produce_requested_data done [19:15:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92289,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:01]process_action_free close_receipt [19:15:01]json_value_free [19:15:01]json_value_free done [19:15:01]process_json_proto returns [19:15:01]Send response to host [19:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92289,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:01]free response buf [19:15:01]execute_script done [19:15:01]execute_script returns [19:15:01]free content buf [19:15:01]Sock 9.Close socket [19:15:01]Sock 9.Thread stoped [19:15:02]accept exits with 6 [19:15:02]New connection [19:15:02]New thread 3067235684 created [19:15:02]Thread 3067379044 joined [19:15:02]Waiting for new connection... [19:15:02] Sock 6.Parse request [19:15:02]Sock 6.Check first char [19:15:02]Sock 6.First char is OK [19:15:02]request: POST /json_proto HTTP/1.0 [19:15:02]Method: POST [19:15:02]URL: /json_proto [19:15:02]Method is POST - this is cgi request [19:15:02]url: /json_proto [19:15:02]query_string will be loaded in cgi processing [19:15:02]execute_cgi json_proto POST (null) [19:15:02]execute_cgi path=json_proto method=POST [19:15:02]POST find Content-Length [19:15:02]Host: 172.17.57.71:8080 [19:15:02]Content-Length: 660 [19:15:02]Content-Type: application/json [19:15:02] [19:15:02]POST finish read [19:15:02]Found Content-Length = 660 [19:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127221", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:02]execute_script... [19:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127221", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:02]POST & json_proto [19:15:02]process_json_proto [19:15:02]json parsed OK: [19:15:02]protocol is kg_v1.0 [19:15:02]action value=close_receipt [19:15:02]process_action close_receipt [19:15:02]cmd_close_receipt [19:15:02]MH_GetDate [19:15:02]Write to MH i2c: F0 00 00 69 00 58 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 69 00 00 37 8F E4 66 33 3A A4 66 E8 [19:15:02]GetLastDocTimeStamp 1726254896 [19:15:02]current date 1726254903 [19:15:02]FM_GetShiftState [19:15:02]SAM_PROTO_GetShiftState [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 13 01 00 [19:15:02]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 73 [19:15:02]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_GetShiftState done [19:15:02]FM_GetShiftState done [19:15:02]opened in 1726186930 [19:15:02]opened+sec_in_day 1726273330 [19:15:02]quantity*price = 5500 [19:15:02]sum+1 = 5501 [19:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 98 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92290 ФПД: 131544778529423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92290&fm=131544778529423&tin=02508201610067®Number=0000000000091423&sum=5500 0 [19:15:03]StoreToDocumentArchive [19:15:03]shift 505 fd 92290 [19:15:03]save to /storage/0505/doc_00092290 [19:15:03]save last doc name /storage/0505/doc_00092290 to /storage/kkm_last_doc_name [19:15:03]save OK [19:15:03]Clear old archive folders... [19:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=295 [19:15:03]tlvbuf is 012E8BB0 [19:15:03]SAM_PROTO_ClearQueue [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 09 00 00 [19:15:03]Write to MH i2c: E2 08 00 77 00 80 09 00 00 00 00 00 00 E9 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]SAM_PROTO_ClearQueue done [19:15:03]KKMCreateOFDPacket [19:15:03]OFDProtocolAddRootSTLVToBuf [19:15:03]FM_MakeSignedData [19:15:03]FM_MakeSignedData [19:15:03]SAM_PROTO_SignData [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 01 02 [19:15:03]Write to MH i2c: E2 08 00 78 00 80 0D 01 02 00 00 00 00 F1 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]wFMCommunicate request_size=255 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 37 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [19:15:04]Write to MH i2c: E2 02 01 79 00 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 37 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 C8 [19:15:04]OFD Sender: No OFD packet to send [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]wFMCommunicate request_size=54 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 68 01 00 35 04 06 00 77 A3 A7 CB DA 8F [19:15:04]Write to MH i2c: E2 39 00 7A 00 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 68 01 00 35 04 06 00 77 A3 A7 CB DA 8F 00 00 F9 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:04] [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 03 02 [19:15:04]Write to MH i2c: E2 08 00 7B 00 80 0D 03 02 00 00 00 00 F6 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 0B 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 0B 00 7B 00 00 CF 64 67 AE EA EF 8E 3C 90 00 E2 [19:15:04]RAPDU: CF 64 67 AE EA EF 8E 3C 90 00 [19:15:04]wFMCommunicate OK [19:15:04]SAM_PROTO_SignData done [19:15:04]FM_MakeSignedData done [19:15:04]CreateOFDProtocolMessage [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 11 00 00 [19:15:04]Write to MH i2c: E2 08 00 7C 00 80 11 00 00 00 00 00 00 F6 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4D [19:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:04]wFMCommunicate OK [19:15:04]CreateOFDProtocolMessage done [19:15:04]OFDSenderStorePacket 92290 [19:15:04]StoreOFDPacket docnum=92290 [19:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 F4 BD 33 01 9D 3A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 37 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 68 01 00 35 04 06 00 77 A3 A7 CB DA 8F CF 64 67 AE EA EF 8E 3C [19:15:04]CheckFolder [19:15:04]dirname=/storage/ofd_packets [19:15:04]CheckFolder done [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00092290 [19:15:04]NVStorageSaveData ofd_packets/00092290 [19:15:04]File name is /storage/ofd_packets/00092290 [19:15:04]Write 345 bytes [19:15:04]NVStorageSaveData done [19:15:04]OFDSenderStorePacket done [19:15:04]KKMCreateOFDPacket done [19:15:04]NVStorageSaveData kkm_last_timestamp [19:15:04]File name is /storage/kkm_last_timestamp [19:15:04]Write 4 bytes [19:15:04]NVStorageSaveData done [19:15:04]ExternCall_PrintAddStr [19:15:04]wPrintStart [19:15:04]Write to MH i2c: 01 00 00 7D 00 7D [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 7D 00 00 00 00 00 00 FF 0F 92 [19:15:04]RasterBufferAndPrint [19:15:04]line Счет N : (3)127221 [19:15:04]line ИНН: 02508201610067 [19:15:04]line Контрольно-Кассовый Чек [19:15:04]OFD Sender: Processing packet 92290 [packets to send 63, broken 62] [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00092290 [19:15:04]OFD Sender: To server: pG, [19:15:04]CommunicateWithHost lk.salyk.kg:30040 [19:15:04]ConnectInit lk.salyk.kg [19:15:04]line ПРОДАЖА [19:15:04]line Товар: 4620016307540 [19:15:04]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [19:15:04]line 1.000 * 55.00 [19:15:04]line = 55.00 [19:15:04]line НДС 12% НСП 1% [19:15:04]line > о реализуемом товаре [19:15:04]line ИТОГО: 55.00 [19:15:04]line НСП 1% : 0.49 [19:15:04]line НДС 12% : 5.84 [19:15:04]line Наличными: 55.00 [19:15:04]line Безнал.: 0.00 [19:15:04]line Место: АЗС № 5 "Партнер Нефть" [19:15:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:04]line СНО: Общий режим [19:15:04]line Чек 98 13.09.2024 19:15 [19:15:04]line Смена: 505 ФФД: 1.0 [19:15:04]line ЗНМ: 03000000022 [19:15:04]line РНМ: 0000000000091423 [19:15:04]line Версия ККМ: 001 [19:15:04]line ФМ: 0000000000874692 [19:15:04]line ФД: 92290 [19:15:04]line ФПД: 131544778529423 [19:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92290&fm=131544778529423&tin=02508201610067®Number=0000000000091423&sum=5500 [19:15:04]line 0 [19:15:04]written 0, free lines is 4095 [19:15:04]Connected sock=10 [19:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 F4 BD 33 01 9D 3A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 37 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 68 01 00 35 04 06 00 77 A3 A7 CB DA 8F CF 64 67 AE EA EF 8E 3C [19:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C0 6F 47 00 F3 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 68 01 00 F4 03 04 00 B5 37 E4 66 B6 04 01 00 00 66 A0 B2 5A 00 C4 C9 A8 [19:15:05]CommunicateWithHost err = 0 [19:15:05]CheckOFDResponse [19:15:05]1017 (14) - 77093643461234 [19:15:05]1041 (16) - 0000000000874692 [19:15:05]1040 (4) - 92290 [19:15:05]1012 (4) - 13.09.2024 13:01 [19:15:05]1206 (1) - 0 [19:15:05]OFD Sender: Remove packet 92290 [19:15:05]ProducePacketName [19:15:05]name=ofd_packets/00092290 [19:15:05]NVStorageDeleteData [19:15:05]Write to MH i2c: 01 00 00 A6 00 A6 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 23 0D DD [19:15:05]RasterBufferAndPrint [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]written 0, free lines is 3382 [19:15:05]MH_Cut [19:15:05]Write to MH i2c: D1 01 00 AD 00 01 7F [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 01 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 01 00 AD 00 00 7E [19:15:05]Write to MH i2c: 01 00 00 AE 00 AE [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]OFD Sender: No OFD packet to send [19:15:05]*** Cut start [19:15:05]*** Purtial cut [19:15:05]*** Stage 1: CUTSNS_PIN = 1 [19:15:08]Read from MH i2c: 01 *** Stop cut motor [19:15:08] [19:15:08]*** Cut end [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: 01 07 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [19:15:08]process_action close_receipt done [19:15:08]requested_data is exist [19:15:08]produce_requested_data [19:15:08]requested_item fm.sn is exist - process it [19:15:08]wFMCommunicate request_size=4 [19:15:08]MH_SAM_APDU [19:15:08]CAPDU: 80 11 00 00 [19:15:08]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:15:08]Write i2c OK [19:15:08]MH_I2C_Read... [19:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:08]Read from MH i2c: E2 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 17 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 80 [19:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:08]wFMCommunicate OK [19:15:08]requested_item fd.num is exist - process it [19:15:08]SAM_PROTO_GetFieldsCounters [19:15:08]wFMCommunicate request_size=4 [19:15:08]MH_SAM_APDU [19:15:08]CAPDU: 80 13 00 00 [19:15:08]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [19:15:08]Write i2c OK [19:15:08]MH_I2C_Read... [19:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:08]Read from MH i2c: E2 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 62 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 82 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [19:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 82 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:08]wFMCommunicate OK [19:15:08]SAM_PROTO_GetFieldsCounters done [19:15:08]requested_item shift.num is exist - process it [19:15:08]requested_item shift.opened is exist - process it [19:15:08]req_shift_opened [19:15:08]FM_GetShiftState [19:15:08]SAM_PROTO_GetShiftState [19:15:08]wFMCommunicate request_size=4 [19:15:08]MH_SAM_APDU [19:15:08]CAPDU: 80 13 01 00 [19:15:08]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [19:15:08]Write i2c OK [19:15:08]MH_I2C_Read... [19:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:08]Read from MH i2c: E2 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 0E 00 [19:15:08]MH_I2C_Read... [19:15:08]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BA [19:15:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:08]wFMCommunicate OK [19:15:08]SAM_PROTO_GetShiftState done [19:15:08]FM_GetShiftState done [19:15:08]req_shift_opened done [19:15:08]requested_item shift.open_date is exist - process it [19:15:08]req_shift_open_date [19:15:08]req_shift_open_date done [19:15:08]produce_requested_data done [19:15:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92290,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:08]process_action_free close_receipt [19:15:08]json_value_free [19:15:08]json_value_free done [19:15:08]process_json_proto returns [19:15:08]Send response to host [19:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92290,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:08]free response buf [19:15:08]execute_script done [19:15:08]execute_script returns [19:15:08]free content buf [19:15:08]Sock 6.Close socket [19:15:08]Sock 6.Thread stoped [19:15:09]accept exits with 9 [19:15:09]New connection [19:15:09]New thread 3067379044 created [19:15:09]Thread 3067235684 joined [19:15:09]Waiting for new connection... [19:15:09] Sock 9.Parse request [19:15:09]Sock 9.Check first char [19:15:09]Sock 9.First char is OK [19:15:09]request: POST /json_proto HTTP/1.0 [19:15:09]Method: POST [19:15:09]URL: /json_proto [19:15:09]Method is POST - this is cgi request [19:15:09]url: /json_proto [19:15:09]query_string will be loaded in cgi processing [19:15:09]execute_cgi json_proto POST (null) [19:15:09]execute_cgi path=json_proto method=POST [19:15:09]POST find Content-Length [19:15:09]Host: 172.17.57.71:8080 [19:15:09]Content-Length: 646 [19:15:09]Content-Type: application/json [19:15:09] [19:15:09]POST finish read [19:15:09]Found Content-Length = 646 [19:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127222", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:09]execute_script... [19:15: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 : (3)127222", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:09]POST & json_proto [19:15:09]process_json_proto [19:15:09]json parsed OK: [19:15:09]protocol is kg_v1.0 [19:15:09]action value=close_receipt [19:15:09]process_action close_receipt [19:15:09]cmd_close_receipt [19:15:09]MH_GetDate [19:15:09]Write to MH i2c: F0 00 00 B2 00 A1 [19:15:09]Write i2c OK [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: F0 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: F0 09 00 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: F0 09 00 B2 00 00 3E 8F E4 66 33 3A A4 66 38 [19:15:09]GetLastDocTimeStamp 1726254903 [19:15:09]current date 1726254910 [19:15:09]FM_GetShiftState [19:15:09]SAM_PROTO_GetShiftState [19:15:09]wFMCommunicate request_size=4 [19:15:09]MH_SAM_APDU [19:15:09]CAPDU: 80 13 01 00 [19:15:09]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [19:15:09]Write i2c OK [19:15:09]MH_I2C_Read... [19:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:09]Read from MH i2c: E2 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 0E 00 [19:15:09]MH_I2C_Read... [19:15:09]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BC [19:15:09]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:09]wFMCommunicate OK [19:15:09]SAM_PROTO_GetShiftState done [19:15:09]FM_GetShiftState done [19:15:09]opened in 1726186930 [19:15:09]opened+sec_in_day 1726273330 [19:15:09]quantity*price = 6100 [19:15:09]sum+1 = 6101 [19:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 61.00 НСП 1% : 0.54 НДС 12% : 6.48 Наличными: 61.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 99 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92291 ФПД: 192432276487771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92291&fm=192432276487771&tin=02508201610067®Number=0000000000091423&sum=6100 0 [19:15:10]StoreToDocumentArchive [19:15:10]shift 505 fd 92291 [19:15:10]save to /storage/0505/doc_00092291 [19:15:10]save last doc name /storage/0505/doc_00092291 to /storage/kkm_last_doc_name [19:15:10]save OK [19:15:10]Clear old archive folders... [19:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=285 [19:15:10]tlvbuf is 01297880 [19:15:10]SAM_PROTO_ClearQueue [19:15:10]wFMCommunicate request_size=4 [19:15:10]MH_SAM_APDU [19:15:10]CAPDU: 80 09 00 00 [19:15:10]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [19:15:10]Write i2c OK [19:15:10]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [19:15:11]RAPDU: 90 00 [19:15:11]wFMCommunicate OK [19:15:11]SAM_PROTO_ClearQueue done [19:15:11]KKMCreateOFDPacket [19:15:11]OFDProtocolAddRootSTLVToBuf [19:15:11]FM_MakeSignedData [19:15:11]FM_MakeSignedData [19:15:11]SAM_PROTO_SignData [19:15:11]wFMCommunicate request_size=4 [19:15:11]MH_SAM_APDU [19:15:11]CAPDU: 80 0D 01 02 [19:15:11]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:15:11]RAPDU: 90 00 [19:15:11]wFMCommunicate OK [19:15:11]wFMCommunicate request_size=255 [19:15:11]MH_SAM_APDU [19:15:11]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 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 3E 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 [19:15:11]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 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 3E 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 00 00 2C [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:15:11]RAPDU: 90 00 [19:15:11]wFMCommunicate OK [19:15:11]wFMCommunicate request_size=44 [19:15:11]MH_SAM_APDU [19:15:11]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 68 01 00 35 04 06 00 AF 04 21 7B BE 5B [19:15:11]Write to MH i2c: E2 2F 00 C3 00 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 68 01 00 35 04 06 00 AF 04 21 7B BE 5B 00 00 B2 [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:15:11]RAPDU: 90 00 [19:15:11]wFMCommunicate OK [19:15:11]wFMCommunicate request_size=4 [19:15:11]MH_SAM_APDU [19:15:11]CAPDU: 80 0D 03 02 [19:15:11]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 0B 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 0B 00 C4 00 00 50 44 0F 27 66 5C 3A 1C 90 00 22 [19:15:11]RAPDU: 50 44 0F 27 66 5C 3A 1C 90 00 [19:15:11]wFMCommunicate OK [19:15:11]SAM_PROTO_SignData done [19:15:11]FM_MakeSignedData done [19:15:11]CreateOFDProtocolMessage [19:15:11]wFMCommunicate request_size=4 [19:15:11]MH_SAM_APDU [19:15:11]CAPDU: 80 11 00 00 [19:15:11]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:11]Read from MH i2c: E2 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 17 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 96 [19:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:11]wFMCommunicate OK [19:15:11]CreateOFDProtocolMessage done [19:15:11]OFDSenderStorePacket 92291 [19:15:11]StoreOFDPacket docnum=92291 [19:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 37 33 29 01 1D A9 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 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 3E 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 68 01 00 35 04 06 00 AF 04 21 7B BE 5B 50 44 0F 27 66 5C 3A 1C [19:15:11]CheckFolder [19:15:11]dirname=/storage/ofd_packets [19:15:11]CheckFolder done [19:15:11]ProducePacketName [19:15:11]name=ofd_packets/00092291 [19:15:11]NVStorageSaveData ofd_packets/00092291 [19:15:11]File name is /storage/ofd_packets/00092291 [19:15:11]Write 335 bytes [19:15:11]NVStorageSaveData done [19:15:11]OFDSenderStorePacket done [19:15:11]KKMCreateOFDPacket done [19:15:11]NVStorageSaveData kkm_last_timestamp [19:15:11]File name is /storage/kkm_last_timestamp [19:15:11]Write 4 bytes [19:15:11]NVStorageSaveData done [19:15:11]ExternCall_PrintAddStr [19:15:11]wPrintStart [19:15:11]Write to MH i2c: 01 00 00 C6 00 C6 [19:15:11]Write i2c OK [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 07 00 [19:15:11]MH_I2C_Read... [19:15:11]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [19:15:11]RasterBufferAndPrint [19:15:11]line Счет N : (3)127222 [19:15:11]line ИНН: 02508201610067 [19:15:11]line Контрольно-Кассовый Чек [19:15:11]line ПРОДАЖА [19:15:11]line Товар: 4870001154035 [19:15:11]line Напиток Lipton IceTea 0,5л перс [19:15:11]line 1.000 * 61.00 [19:15:11]line = 61.00 [19:15:11]line НДС 12% НСП 1% [19:15:11]line > о реализуемом товаре [19:15:11]line ИТОГО: 61.00 [19:15:11]line НСП 1% : 0.54 [19:15:11]line НДС 12% : 6.48 [19:15:11]line Наличными: 61.00 [19:15:11]line Безнал.: 0.00 [19:15:11]line Место: АЗС № 5 "Партнер Нефть" [19:15:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:11]line СНО: Общий режим [19:15:11]line Чек 99 13.09.2024 19:15 [19:15:11]line Смена: 505 ФФД: 1.0 [19:15:11]line ЗНМ: 03000000022 [19:15:11]line РНМ: 0000000000091423 [19:15:11]line Версия ККМ: 001 [19:15:11]line ФМ: 0000000000874692 [19:15:11]line ФД: 92291 [19:15:11]line ФПД: 192432276487771 [19:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92291&fm=192432276487771&tin=02508201610067®Number=0000000000091423&sum=6100 [19:15:11]line 0 [19:15:11]written 0, free lines is 4095 [19:15:11]OFD Sender: Processing packet 92291 [packets to send 63, broken 62] [19:15:11]ProducePacketName [19:15:11]name=ofd_packets/00092291 [19:15:11]OFD Sender: To server: pG, [19:15:11]CommunicateWithHost lk.salyk.kg:30040 [19:15:11]ConnectInit lk.salyk.kg [19:15:11]Connected sock=10 [19:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 31 01 00 00 37 33 29 01 1D A9 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 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 3E 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 68 01 00 35 04 06 00 AF 04 21 7B BE 5B 50 44 0F 27 66 5C 3A 1C [19:15:12]Write to MH i2c: 01 00 00 EF 00 EF [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: 01 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: 01 07 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 16 0D 19 [19:15:12]RasterBufferAndPrint [19:15:12]line [19:15:12]line [19:15:12]line [19:15:12]line [19:15:12]line [19:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4F F2 47 00 80 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 68 01 00 F4 03 04 00 BC 37 E4 66 B6 04 01 00 00 7E 98 0B 21 92 4F 82 40 [19:15:12]CommunicateWithHost err = 0 [19:15:12]CheckOFDResponse [19:15:12]1017 (14) - 77093643461234 [19:15:12]1041 (16) - 0000000000874692 [19:15:12]1040 (4) - 92291 [19:15:12]1012 (4) - 13.09.2024 13:01 [19:15:12]1206 (1) - 0 [19:15:12]OFD Sender: Remove packet 92291 [19:15:12]ProducePacketName [19:15:12]name=ofd_packets/00092291 [19:15:12]NVStorageDeleteData [19:15:12]written 0, free lines is 3392 [19:15:12]MH_Cut [19:15:12]Write to MH i2c: D1 01 00 F6 00 01 C8 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: D1 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: D1 01 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: D1 01 00 F6 00 00 C7 [19:15:12]Write to MH i2c: 01 00 00 F7 00 F7 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]OFD Sender: No OFD packet to send [19:15:12]*** Cut start [19:15:12]*** Purtial cut [19:15:12]*** Stage 1: CUTSNS_PIN = 1 [19:15:14]Read from MH i2c: 01 [19:15:14]MH_I2C_Read... [19:15:14]*** Stop cut motor [19:15:14]*** Cut end [19:15:14]Read from MH i2c: 01 07 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [19:15:14]process_action close_receipt done [19:15:14]requested_data is exist [19:15:14]produce_requested_data [19:15:14]requested_item fm.sn is exist - process it [19:15:14]wFMCommunicate request_size=4 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 11 00 00 [19:15:14]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 17 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C9 [19:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:15]wFMCommunicate OK [19:15:15]requested_item fd.num is exist - process it [19:15:15]SAM_PROTO_GetFieldsCounters [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 00 00 [19:15:15]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:15]Read from MH i2c: E2 62 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 83 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [19:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 83 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetFieldsCounters done [19:15:15]requested_item shift.num is exist - process it [19:15:15]requested_item shift.opened is exist - process it [19:15:15]req_shift_opened [19:15:15]FM_GetShiftState [19:15:15]SAM_PROTO_GetShiftState [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 01 00 [19:15:15]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 03 [19:15:15]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetShiftState done [19:15:15]FM_GetShiftState done [19:15:15]req_shift_opened done [19:15:15]requested_item shift.open_date is exist - process it [19:15:15]req_shift_open_date [19:15:15]req_shift_open_date done [19:15:15]produce_requested_data done [19:15:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92291,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:15]process_action_free close_receipt [19:15:15]json_value_free [19:15:15]json_value_free done [19:15:15]process_json_proto returns [19:15:15]Send response to host [19:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92291,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:15]free response buf [19:15:15]execute_script done [19:15:15]execute_script returns [19:15:15]free content buf [19:15:15]Sock 9.Close socket [19:15:15]Sock 9.Thread stoped [19:15:16]accept exits with 8 [19:15:16]New connection [19:15:16]New thread 3067235684 created [19:15:16]Thread 3067379044 joined [19:15:16]Waiting for new connection... [19:15:16] Sock 8.Parse request [19:15:16]Sock 8.Check first char [19:15:16]Sock 8.First char is OK [19:15:16]request: POST /json_proto HTTP/1.0 [19:15:16]Method: POST [19:15:16]URL: /json_proto [19:15:16]Method is POST - this is cgi request [19:15:16]url: /json_proto [19:15:16]query_string will be loaded in cgi processing [19:15:16]execute_cgi json_proto POST (null) [19:15:16]execute_cgi path=json_proto method=POST [19:15:16]POST find Content-Length [19:15:16]Host: 172.17.57.71:8080 [19:15:16]Content-Length: 900 [19:15:16]Content-Type: application/json [19:15:16] [19:15:16]POST finish read [19:15:16]Found Content-Length = 900 [19:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127223", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:16]execute_script... [19: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 : (3)127223", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:16]POST & json_proto [19:15:16]process_json_proto [19:15:16]json parsed OK: [19:15:16]protocol is kg_v1.0 [19:15:16]action value=close_receipt [19:15:16]process_action close_receipt [19:15:16]cmd_close_receipt [19:15:16]MH_GetDate [19:15:16]Write to MH i2c: F0 00 00 FB 00 EA [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 09 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 09 00 FB 00 00 45 8F E4 66 33 3A A4 66 88 [19:15:16]GetLastDocTimeStamp 1726254910 [19:15:16]current date 1726254917 [19:15:16]FM_GetShiftState [19:15:16]SAM_PROTO_GetShiftState [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 13 01 00 [19:15:16]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 05 [19:15:16]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_GetShiftState done [19:15:16]FM_GetShiftState done [19:15:16]opened in 1726186930 [19:15:16]opened+sec_in_day 1726273330 [19:15:16]quantity*price = 13000 [19:15:16]sum+1 = 13001 [19:15:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 100 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92292 ФПД: 171401733840843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191517&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92292&fm=171401733840843&tin=02508201610067®Number=0000000000091423&sum=25000 0 [19:15:18]StoreToDocumentArchive [19:15:18]shift 505 fd 92292 [19:15:18]save to /storage/0505/doc_00092292 [19:15:18]save last doc name /storage/0505/doc_00092292 to /storage/kkm_last_doc_name [19:15:18]save OK [19:15:18]Clear old archive folders... [19:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=390 [19:15:18]tlvbuf is 012F4B20 [19:15:18]SAM_PROTO_ClearQueue [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 09 00 00 [19:15:18]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]SAM_PROTO_ClearQueue done [19:15:18]KKMCreateOFDPacket [19:15:18]OFDProtocolAddRootSTLVToBuf [19:15:18]FM_MakeSignedData [19:15:18]FM_MakeSignedData [19:15:18]SAM_PROTO_SignData [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 01 02 [19:15:18]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]wFMCommunicate request_size=255 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 [19:15:18]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 00 45 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 03 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:15:19]RAPDU: 90 00 [19:15:19]wFMCommunicate OK [19:15:19]wFMCommunicate request_size=149 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 0D 02 02 90 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 5E 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 64 00 00 00 F4 03 04 00 45 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 68 01 00 35 04 06 00 9B E3 93 75 9F CB [19:15:19]Write to MH i2c: E2 98 00 0C 01 80 0D 02 02 90 00 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 5E 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 64 00 00 00 F4 03 04 00 45 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 68 01 00 35 04 06 00 9B E3 93 75 9F CB 00 00 7A [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 03 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:15:19]RAPDU: 90 00 [19:15:19]wFMCommunicate OK [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 0D 03 02 [19:15:19]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0B 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0B 00 0D 01 00 46 18 F8 F3 55 50 AE C9 90 00 EF [19:15:19]RAPDU: 46 18 F8 F3 55 50 AE C9 90 00 [19:15:19]wFMCommunicate OK [19:15:19]SAM_PROTO_SignData done [19:15:19]FM_MakeSignedData done [19:15:19]CreateOFDProtocolMessage [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 11 00 00 [19:15:19]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [19:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:19]wFMCommunicate OK [19:15:19]CreateOFDProtocolMessage done [19:15:19]OFDSenderStorePacket 92292 [19:15:19]StoreOFDPacket docnum=92292 [19:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 75 98 92 01 36 49 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 5E 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 64 00 00 00 F4 03 04 00 45 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 68 01 00 35 04 06 00 9B E3 93 75 9F CB 46 18 F8 F3 55 50 AE C9 [19:15:19]CheckFolder [19:15:19]dirname=/storage/ofd_packets [19:15:19]CheckFolder done [19:15:19]ProducePacketName [19:15:19]name=ofd_packets/00092292 [19:15:19]NVStorageSaveData ofd_packets/00092292 [19:15:19]File name is /storage/ofd_packets/00092292 [19:15:19]Write 440 bytes [19:15:19]NVStorageSaveData done [19:15:19]OFDSenderStorePacket done [19:15:19]KKMCreateOFDPacket done [19:15:19]NVStorageSaveData kkm_last_timestamp [19:15:19]File name is /storage/kkm_last_timestamp [19:15:19]Write 4 bytes [19:15:19]NVStorageSaveData done [19:15:19]ExternCall_PrintAddStr [19:15:19]wPrintStart [19:15:19]Write to MH i2c: 01 00 00 0F 01 10 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [19:15:19]RasterBufferAndPrint [19:15:19]line Счет N : (3)127223 [19:15:19]line ИНН: 02508201610067 [19:15:19]line Контрольно-Кассовый Чек [19:15:19]line ПРОДАЖА [19:15:19]line Товар: 2000036230011 [19:15:19]line Кофе Латте XL(GABB TRADE) [19:15:19]line 1.000 * 130.00 [19:15:19]line = 130.00 [19:15:19]line НДС 12% НСП 1% [19:15:19]line > о реализуемом товаре [19:15:19]line Товар: 2000034250011 [19:15:19]line Горячий шоколад (GABB trade) [19:15:19]line 1.000 * 120.00 [19:15:19]line = 120.00 [19:15:19]line НДС 12% НСП 1% [19:15:19]line > о реализуемом товаре [19:15:19]line ИТОГО: 250.00 [19:15:19]line НСП 1% : 2.21 [19:15:19]line НДС 12% : 26.54 [19:15:19]line Наличными: 250.00 [19:15:19]line Безнал.: 0.00 [19:15:19]line Место: АЗС № 5 "Партнер Нефть" [19:15:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:19]line СНО: Общий режим [19:15:19]line Чек 100 13.09.2024 19:15 [19:15:19]line Смена: 505 ФФД: 1.0 [19:15:19]line ЗНМ: 03000000022 [19:15:19]line РНМ: 0000000000091423 [19:15:19]line Версия ККМ: 001 [19:15:19]line ФМ: 0000000000874692 [19:15:19]line ФД: 92292 [19:15:19]line ФПД: 171401733840843 [19:15:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191517&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92292&fm=171401733840843&tin=02508201610067®Number=0000000000091423&sum=25000 [19:15:19]line 0 [19:15:19]written 0, free lines is 4095 [19:15:19]OFD Sender: Processing packet 92292 [packets to send 63, broken 62] [19:15:19]ProducePacketName [19:15:19]name=ofd_packets/00092292 [19:15:19]OFD Sender: To server: pG, [19:15:19]CommunicateWithHost lk.salyk.kg:30040 [19:15:19]ConnectInit lk.salyk.kg [19:15:19]Connected sock=11 [19:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 75 98 92 01 36 49 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 5E 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 64 00 00 00 F4 03 04 00 45 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 68 01 00 35 04 06 00 9B E3 93 75 9F CB 46 18 F8 F3 55 50 AE C9 [19:15:20]Write to MH i2c: 01 00 00 3E 01 3F [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: 01 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: 01 07 00 [19:15:20]MH_I2C_Read... [19:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9E 5B 47 00 23 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 34 36 39 32 10 04 04 00 84 68 01 00 F4 03 04 00 C4 37 E4 66 B6 04 01 00 00 18 54 53 D1 83 18 A3 0A [19:15:20]CommunicateWithHost err = 0 [19:15:20]CheckOFDResponse [19:15:20]1017 (14) - 77093643461234 [19:15:20]1041 (16) - 0000000000874692 [19:15:20]1040 (4) - 92292 [19:15:20]1012 (4) - 13.09.2024 13:01 [19:15:20]1206 (1) - 0 [19:15:20]OFD Sender: Remove packet 92292 [19:15:20]ProducePacketName [19:15:20]name=ofd_packets/00092292 [19:15:20]NVStorageDeleteData [19:15:20]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 E0 0C 32 [19:15:20]RasterBufferAndPrint [19:15:20]line [19:15:20]line [19:15:20]line [19:15:20]line [19:15:20]line [19:15:20]written 0, free lines is 3540 [19:15:20]MH_Cut [19:15:20]Write to MH i2c: D1 01 00 45 01 01 18 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: D1 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: D1 01 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: D1 01 00 45 01 00 17 [19:15:20]Write to MH i2c: 01 00 00 46 01 47 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:21]OFD Sender: No OFD packet to send [19:15:21]*** Cut start [19:15:21]*** Purtial cut [19:15:21]*** Stage 1: CUTSNS_PIN = 1 [19:15:23]Read from MH i2c: 01 [19:15:23]MH_I2C_Read... [19:15:23]*** Stop cut motor [19:15:23]*** Cut end [19:15:23]Read from MH i2c: 01 07 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [19:15:23]process_action close_receipt done [19:15:23]requested_data is exist [19:15:23]produce_requested_data [19:15:23]requested_item fm.sn is exist - process it [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 11 00 00 [19:15:23]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 47 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 19 [19:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:23]wFMCommunicate OK [19:15:23]requested_item fd.num is exist - process it [19:15:23]SAM_PROTO_GetFieldsCounters [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 13 00 00 [19:15:23]Write to MH i2c: E2 08 00 48 01 80 13 00 00 00 00 00 00 C5 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 62 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 62 00 48 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [19:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_GetFieldsCounters done [19:15:23]requested_item shift.num is exist - process it [19:15:23]requested_item shift.opened is exist - process it [19:15:23]req_shift_opened [19:15:23]FM_GetShiftState [19:15:23]SAM_PROTO_GetShiftState [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 13 01 00 [19:15:23]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0E 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 53 [19:15:23]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_GetShiftState done [19:15:23]FM_GetShiftState done [19:15:23]req_shift_opened done [19:15:23]requested_item shift.open_date is exist - process it [19:15:23]req_shift_open_date [19:15:23]req_shift_open_date done [19:15:23]produce_requested_data done [19:15:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92292,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:23]process_action_free close_receipt [19:15:23]json_value_free [19:15:23]json_value_free done [19:15:23]process_json_proto returns [19:15:23]Send response to host [19:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92292,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:23]free response buf [19:15:23]execute_script done [19:15:23]execute_script returns [19:15:23]free content buf [19:15:23]Sock 8.Close socket [19:15:23]Sock 8.Thread stoped [19:15:24]accept exits with 9 [19:15:24]New connection [19:15:24]New thread 3067379044 created [19:15:24]Thread 3067235684 joined [19:15:24]Waiting for new connection... [19:15:24] Sock 9.Parse request [19:15:24]Sock 9.Check first char [19:15:24]Sock 9.First char is OK [19:15:24]request: POST /json_proto HTTP/1.0 [19:15:24]Method: POST [19:15:24]URL: /json_proto [19:15:24]Method is POST - this is cgi request [19:15:24]url: /json_proto [19:15:24]query_string will be loaded in cgi processing [19:15:24]execute_cgi json_proto POST (null) [19:15:24]execute_cgi path=json_proto method=POST [19:15:24]POST find Content-Length [19:15:24]Host: 172.17.57.71:8080 [19:15:24]Content-Length: 931 [19:15:24]Content-Type: application/json [19:15:24] [19:15:24]POST finish read [19:15:24]Found Content-Length = 931 [19:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127224", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:24]execute_script... [19:15: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 : (3)127224", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:24]POST & json_proto [19:15:24]process_json_proto [19:15:24]json parsed OK: [19:15:24]protocol is kg_v1.0 [19:15:24]action value=close_receipt [19:15:24]process_action close_receipt [19:15:24]cmd_close_receipt [19:15:24]MH_GetDate [19:15:24]Write to MH i2c: F0 00 00 4A 01 3A [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: F0 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: F0 09 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: F0 09 00 4A 01 00 4D 8F E4 66 33 3A A4 66 E0 [19:15:24]GetLastDocTimeStamp 1726254917 [19:15:24]current date 1726254925 [19:15:24]FM_GetShiftState [19:15:24]SAM_PROTO_GetShiftState [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 13 01 00 [19:15:24]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0E 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 55 [19:15:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:24]wFMCommunicate OK [19:15:24]SAM_PROTO_GetShiftState done [19:15:24]FM_GetShiftState done [19:15:24]opened in 1726186930 [19:15:24]opened+sec_in_day 1726273330 [19:15:24]quantity*price = 25000 [19:15:24]sum+1 = 25001 [19:15:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 2.000 * 170.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 101 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92293 ФПД: 245284059478846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191525&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92293&fm=245284059478846&tin=02508201610067®Number=0000000000091423&sum=59000 0 [19:15:26]StoreToDocumentArchive [19:15:26]shift 505 fd 92293 [19:15:26]save to /storage/0505/doc_00092293 [19:15:26]save last doc name /storage/0505/doc_00092293 to /storage/kkm_last_doc_name [19:15:26]save OK [19:15:26]Clear old archive folders... [19:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=401 [19:15:26]tlvbuf is 012F67A0 [19:15:26]SAM_PROTO_ClearQueue [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 09 00 00 [19:15:26]Write to MH i2c: E2 08 00 58 01 80 09 00 00 00 00 00 00 CB [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:15:26]RAPDU: 90 00 [19:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_ClearQueue done [19:15:26]KKMCreateOFDPacket [19:15:26]OFDProtocolAddRootSTLVToBuf [19:15:26]FM_MakeSignedData [19:15:26]FM_MakeSignedData [19:15:26]SAM_PROTO_SignData [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 0D 01 02 [19:15:26]Write to MH i2c: E2 08 00 59 01 80 0D 01 02 00 00 00 00 D3 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [19:15:26]RAPDU: 90 00 [19:15:26]wFMCommunicate OK [19:15:26]wFMCommunicate request_size=255 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 [19:15:26]Write to MH i2c: E2 02 01 5A 01 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 00 00 C2 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [19:15:27]RAPDU: 90 00 [19:15:27]wFMCommunicate OK [19:15:27]wFMCommunicate request_size=160 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 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 4D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 68 01 00 35 04 06 00 DF 15 A5 3B FB 3E [19:15:27]Write to MH i2c: E2 A3 00 5B 01 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 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 4D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 68 01 00 35 04 06 00 DF 15 A5 3B FB 3E 00 00 C3 [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [19:15:27]RAPDU: 90 00 [19:15:27]wFMCommunicate OK [19:15:27]wFMCommunicate request_size=4 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 0D 03 02 [19:15:27]Write to MH i2c: E2 08 00 5C 01 80 0D 03 02 00 00 00 00 D8 [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0B 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0B 00 5C 01 00 05 43 BC A3 91 68 5D C0 90 00 96 [19:15:27]RAPDU: 05 43 BC A3 91 68 5D C0 90 00 [19:15:27]wFMCommunicate OK [19:15:27]SAM_PROTO_SignData done [19:15:27]FM_MakeSignedData done [19:15:27]CreateOFDProtocolMessage [19:15:27]wFMCommunicate request_size=4 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 11 00 00 [19:15:27]Write to MH i2c: E2 08 00 5D 01 80 11 00 00 00 00 00 00 D8 [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 17 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 17 00 5D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [19:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:27]wFMCommunicate OK [19:15:27]CreateOFDProtocolMessage done [19:15:27]OFDSenderStorePacket 92293 [19:15:27]StoreOFDPacket docnum=92293 [19:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A5 01 00 00 60 63 9D 01 4F E8 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 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 4D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 68 01 00 35 04 06 00 DF 15 A5 3B FB 3E 05 43 BC A3 91 68 5D C0 [19:15:27]CheckFolder [19:15:27]dirname=/storage/ofd_packets [19:15:27]CheckFolder done [19:15:27]ProducePacketName [19:15:27]name=ofd_packets/00092293 [19:15:27]NVStorageSaveData ofd_packets/00092293 [19:15:27]File name is /storage/ofd_packets/00092293 [19:15:27]Write 451 bytes [19:15:27]NVStorageSaveData done [19:15:27]OFDSenderStorePacket done [19:15:27]KKMCreateOFDPacket done [19:15:27]NVStorageSaveData kkm_last_timestamp [19:15:27]File name is /storage/kkm_last_timestamp [19:15:27]Write 4 bytes [19:15:27]NVStorageSaveData done [19:15:27]ExternCall_PrintAddStr [19:15:27]wPrintStart [19:15:27]Write to MH i2c: 01 00 00 5E 01 5F [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 FF 0F 74 [19:15:27]RasterBufferAndPrint [19:15:27]line Счет N : (3)127224 [19:15:27]line ИНН: 02508201610067 [19:15:27]line Контрольно-Кассовый Чек [19:15:27]line ПРОДАЖА [19:15:27]line Товар: 2000036190018 [19:15:27]line Кофе Американо XL(GABB TRADE) [19:15:27]line 2.000 * 125.00 [19:15:27]line = 250.00 [19:15:27]line НДС 12% НСП 1% [19:15:27]line > о реализуемом товаре [19:15:27]line Товар: 5449000176448 [19:15:27]line Сок Piko Pulpy апельсин ПЭТ 1л [19:15:27]line 2.000 * 170.00 [19:15:27]line = 340.00 [19:15:27]line НДС 12% НСП 1% [19:15:27]line > о реализуемом товаре [19:15:27]line ИТОГО: 590.00 [19:15:27]line НСП 1% : 5.22 [19:15:27]line НДС 12% : 62.66 [19:15:27]line Наличными: 590.00 [19:15:27]line Безнал.: 0.00 [19:15:27]line Место: АЗС № 5 "Партнер Нефть" [19:15:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:27]line СНО: Общий режим [19:15:27]line Чек 101 13.09.2024 19:15 [19:15:27]line Смена: 505 ФФД: 1.0 [19:15:27]line ЗНМ: 03000000022 [19:15:27]line РНМ: 0000000000091423 [19:15:27]line Версия ККМ: 001 [19:15:27]line ФМ: 0000000000874692 [19:15:27]line ФД: 92293 [19:15:27]line ФПД: 245284059478846 [19:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191525&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92293&fm=245284059478846&tin=02508201610067®Number=0000000000091423&sum=59000 [19:15:27]line 0 [19:15:27]written 0, free lines is 4095 [19:15:27]OFD Sender: Processing packet 92293 [packets to send 63, broken 62] [19:15:27]ProducePacketName [19:15:27]name=ofd_packets/00092293 [19:15:27]OFD Sender: To server: pG, [19:15:27]CommunicateWithHost lk.salyk.kg:30040 [19:15:27]ConnectInit lk.salyk.kg [19:15:27]Connected sock=10 [19: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 34 36 39 32 A5 01 00 00 60 63 9D 01 4F E8 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 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 4D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 68 01 00 35 04 06 00 DF 15 A5 3B FB 3E 05 43 BC A3 91 68 5D C0 [19:15:28]Write to MH i2c: 01 00 00 8E 01 8F [19:15:28]Write i2c OK [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: 01 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: 01 07 00 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 CC 0C 6E [19:15:28]RasterBufferAndPrint [19:15:28]line [19:15:28]line [19:15:28]line [19:15:28]line [19:15:28]line [19:15:28]written 0, free lines is 3314 [19:15:28]MH_Cut [19:15:28]Write to MH i2c: D1 01 00 95 01 01 68 [19:15:28]Write i2c OK [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 01 00 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 01 00 95 01 00 67 [19:15:28]Write to MH i2c: 01 00 00 96 01 97 [19:15:28]Write i2c OK [19:15:28]MH_I2C_Read... [19:15:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FB A1 47 00 1B 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 34 36 39 32 10 04 04 00 85 68 01 00 F4 03 04 00 CC 37 E4 66 B6 04 01 00 00 D5 64 60 23 1B F5 50 5C [19:15:28]CommunicateWithHost err = 0 [19:15:28]CheckOFDResponse [19:15:28]1017 (14) - 77093643461234 [19:15:28]1041 (16) - 0000000000874692 [19:15:28]1040 (4) - 92293 [19:15:28]1012 (4) - 13.09.2024 13:02 [19:15:28]1206 (1) - 0 [19:15:28]OFD Sender: Remove packet 92293 [19:15:28]ProducePacketName [19:15:28]name=ofd_packets/00092293 [19:15:28]NVStorageDeleteData [19:15:28]*** Cut start [19:15:28]*** Purtial cut [19:15:28]*** Stage 1: CUTSNS_PIN = 1 [19:15:29]OFD Sender: No OFD packet to send [19:15:30]Read from MH i2c: 01 [19:15:30]MH_I2C_Read... [19:15:30]*** Stop cut motor [19:15:30]*** Cut end [19:15:30]Read from MH i2c: 01 07 00 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [19:15:30]process_action close_receipt done [19:15:30]requested_data is exist [19:15:30]produce_requested_data [19:15:30]requested_item fm.sn is exist - process it [19:15:30]wFMCommunicate request_size=4 [19:15:30]MH_SAM_APDU [19:15:30]CAPDU: 80 11 00 00 [19:15:30]Write to MH i2c: E2 08 00 97 01 80 11 00 00 00 00 00 00 12 [19:15:30]Write i2c OK [19:15:30]MH_I2C_Read... [19:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:31]Read from MH i2c: E2 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 17 00 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 17 00 97 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 69 [19:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:31]wFMCommunicate OK [19:15:31]requested_item fd.num is exist - process it [19:15:31]SAM_PROTO_GetFieldsCounters [19:15:31]wFMCommunicate request_size=4 [19:15:31]MH_SAM_APDU [19:15:31]CAPDU: 80 13 00 00 [19:15:31]Write to MH i2c: E2 08 00 98 01 80 13 00 00 00 00 00 00 15 [19:15:31]Write i2c OK [19:15:31]MH_I2C_Read... [19:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:31]Read from MH i2c: E2 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 62 00 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 62 00 98 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 85 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [19:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 85 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:31]wFMCommunicate OK [19:15:31]SAM_PROTO_GetFieldsCounters done [19:15:31]requested_item shift.num is exist - process it [19:15:31]requested_item shift.opened is exist - process it [19:15:31]req_shift_opened [19:15:31]FM_GetShiftState [19:15:31]SAM_PROTO_GetShiftState [19:15:31]wFMCommunicate request_size=4 [19:15:31]MH_SAM_APDU [19:15:31]CAPDU: 80 13 01 00 [19:15:31]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [19:15:31]Write i2c OK [19:15:31]MH_I2C_Read... [19:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:31]Read from MH i2c: E2 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 0E 00 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A3 [19:15:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:31]wFMCommunicate OK [19:15:31]SAM_PROTO_GetShiftState done [19:15:31]FM_GetShiftState done [19:15:31]req_shift_opened done [19:15:31]requested_item shift.open_date is exist - process it [19:15:31]req_shift_open_date [19:15:31]req_shift_open_date done [19:15:31]produce_requested_data done [19:15:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92293,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:31]process_action_free close_receipt [19:15:31]json_value_free [19:15:31]json_value_free done [19:15:31]process_json_proto returns [19:15:31]Send response to host [19:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92293,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:31]free response buf [19:15:31]execute_script done [19:15:31]execute_script returns [19:15:31]free content buf [19:15:31]Sock 9.Close socket [19:15:31]Sock 9.Thread stoped [19:15:32]accept exits with 8 [19:15:32]New connection [19:15:32]New thread 3067235684 created [19:15:32]Thread 3067379044 joined [19:15:32]Waiting for new connection... [19:15:32] Sock 8.Parse request [19:15:32]Sock 8.Check first char [19:15:32]Sock 8.First char is OK [19:15:32]request: POST /json_proto HTTP/1.0 [19:15:32]Method: POST [19:15:32]URL: /json_proto [19:15:32]Method is POST - this is cgi request [19:15:32]url: /json_proto [19:15:32]query_string will be loaded in cgi processing [19:15:32]execute_cgi json_proto POST (null) [19:15:32]execute_cgi path=json_proto method=POST [19:15:32]POST find Content-Length [19:15:32]Host: 172.17.57.71:8080 [19:15:32]Content-Length: 696 [19:15:32]Content-Type: application/json [19:15:32] [19:15:32]POST finish read [19:15:32]Found Content-Length = 696 [19:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127225", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]execute_script... [19: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 : (3)127225", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]POST & json_proto [19:15:32]process_json_proto [19:15:32]json parsed OK: [19:15:32]protocol is kg_v1.0 [19:15:32]action value=close_receipt [19:15:32]process_action close_receipt [19:15:32]cmd_close_receipt [19:15:32]MH_GetDate [19:15:32]Write to MH i2c: F0 00 00 9A 01 8A [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 09 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 09 00 9A 01 00 55 8F E4 66 33 3A A4 66 38 [19:15:32]GetLastDocTimeStamp 1726254925 [19:15:32]current date 1726254933 [19:15:32]FM_GetShiftState [19:15:32]SAM_PROTO_GetShiftState [19:15:32]wFMCommunicate request_size=4 [19:15:32]MH_SAM_APDU [19:15:32]CAPDU: 80 13 01 00 [19:15:32]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:32]Read from MH i2c: E2 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: E2 0E 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A5 [19:15:32]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:32]wFMCommunicate OK [19:15:32]SAM_PROTO_GetShiftState done [19:15:32]FM_GetShiftState done [19:15:32]opened in 1726186930 [19:15:32]opened+sec_in_day 1726273330 [19:15:32]quantity*price = 8200 [19:15:32]sum+1 = 8201 [19:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 102 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92294 ФПД: 31146466470215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191533&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92294&fm=31146466470215&tin=02508201610067®Number=0000000000091423&sum=8200 0 [19:15:34]StoreToDocumentArchive [19:15:34]shift 505 fd 92294 [19:15:34]save to /storage/0505/doc_00092294 [19:15:34]save last doc name /storage/0505/doc_00092294 to /storage/kkm_last_doc_name [19:15:34]save OK [19:15:34]Clear old archive folders... [19:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=299 [19:15:34]tlvbuf is 013371A0 [19:15:34]SAM_PROTO_ClearQueue [19:15:34]wFMCommunicate request_size=4 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 09 00 00 [19:15:34]Write to MH i2c: E2 08 00 A8 01 80 09 00 00 00 00 00 00 1B [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [19:15:34]RAPDU: 90 00 [19:15:34]wFMCommunicate OK [19:15:34]SAM_PROTO_ClearQueue done [19:15:34]KKMCreateOFDPacket [19:15:34]OFDProtocolAddRootSTLVToBuf [19:15:34]FM_MakeSignedData [19:15:34]FM_MakeSignedData [19:15:34]SAM_PROTO_SignData [19:15:34]wFMCommunicate request_size=4 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 0D 01 02 [19:15:34]Write to MH i2c: E2 08 00 A9 01 80 0D 01 02 00 00 00 00 23 [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [19:15:34]RAPDU: 90 00 [19:15:34]wFMCommunicate OK [19:15:34]wFMCommunicate request_size=255 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 55 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [19:15:34]Write to MH i2c: E2 02 01 AA 01 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 55 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 E9 [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 03 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [19:15:35]RAPDU: 90 00 [19:15:35]wFMCommunicate OK [19:15:35]wFMCommunicate request_size=58 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 68 01 00 35 04 06 00 1C 53 DA 11 E9 47 [19:15:35]Write to MH i2c: E2 3D 00 AB 01 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 68 01 00 35 04 06 00 1C 53 DA 11 E9 47 00 00 8C [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 03 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [19:15:35]RAPDU: 90 00 [19:15:35]wFMCommunicate OK [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 0D 03 02 [19:15:35]Write to MH i2c: E2 08 00 AC 01 80 0D 03 02 00 00 00 00 28 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0B 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0B 00 AC 01 00 18 94 A1 78 84 EE B7 23 90 00 3A [19:15:35]RAPDU: 18 94 A1 78 84 EE B7 23 90 00 [19:15:35]wFMCommunicate OK [19:15:35]SAM_PROTO_SignData done [19:15:35]FM_MakeSignedData done [19:15:35]CreateOFDProtocolMessage [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 11 00 00 [19:15:35]Write to MH i2c: E2 08 00 AD 01 80 11 00 00 00 00 00 00 28 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 17 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 17 00 AD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7F [19:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:35]wFMCommunicate OK [19:15:35]CreateOFDProtocolMessage done [19:15:35]OFDSenderStorePacket 92294 [19:15:35]StoreOFDPacket docnum=92294 [19:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 85 10 37 01 20 10 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 55 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 68 01 00 35 04 06 00 1C 53 DA 11 E9 47 18 94 A1 78 84 EE B7 23 [19:15:35]CheckFolder [19:15:35]dirname=/storage/ofd_packets [19:15:35]CheckFolder done [19:15:35]ProducePacketName [19:15:35]name=ofd_packets/00092294 [19:15:35]NVStorageSaveData ofd_packets/00092294 [19:15:35]File name is /storage/ofd_packets/00092294 [19:15:35]Write 349 bytes [19:15:35]NVStorageSaveData done [19:15:35]OFDSenderStorePacket done [19:15:35]KKMCreateOFDPacket done [19:15:35]NVStorageSaveData kkm_last_timestamp [19:15:35]File name is /storage/kkm_last_timestamp [19:15:35]Write 4 bytes [19:15:35]NVStorageSaveData done [19:15:35]ExternCall_PrintAddStr [19:15:35]wPrintStart [19:15:35]Write to MH i2c: 01 00 00 AE 01 AF [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 07 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 FF 0F C4 [19:15:35]RasterBufferAndPrint [19:15:35]line Счет N : (3)127225 [19:15:35]line ИНН: 02508201610067 [19:15:35]line Контрольно-Кассовый Чек [19:15:35]line ПРОДАЖА [19:15:35]line Товар: 4700000480364 [19:15:35]line Напиток энерг Nitro экзотик 0.45 ж/б [19:15:35]line 1.000 * 82.00 [19:15:35]line = 82.00 [19:15:35]line НДС 12% НСП 1% [19:15:35]line > о реализуемом товаре [19:15:35]line ИТОГО: 82.00 [19:15:35]line НСП 1% : 0.73 [19:15:35]line НДС 12% : 8.71 [19:15:35]line Наличными: 82.00 [19:15:35]line Безнал.: 0.00 [19:15:35]line Место: АЗС № 5 "Партнер Нефть" [19:15:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:35]line СНО: Общий режим [19:15:35]line Чек 102 13.09.2024 19:15 [19:15:35]line Смена: 505 ФФД: 1.0 [19:15:35]line ЗНМ: 03000000022 [19:15:35]line РНМ: 0000000000091423 [19:15:35]line Версия ККМ: 001 [19:15:35]line ФМ: 0000000000874692 [19:15:35]line ФД: 92294 [19:15:35]line ФПД: 31146466470215 [19:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191533&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92294&fm=31146466470215&tin=02508201610067®Number=0000000000091423&sum=8200 [19:15:35]line 0 [19:15:35]written 0, free lines is 4095 [19:15:35]OFD Sender: Processing packet 92294 [packets to send 63, broken 62] [19:15:35]ProducePacketName [19:15:35]name=ofd_packets/00092294 [19:15:35]OFD Sender: To server: pG, [19:15:35]CommunicateWithHost lk.salyk.kg:30040 [19:15:35]ConnectInit lk.salyk.kg [19:15:35]Connected sock=10 [19: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 34 36 39 32 3F 01 00 00 85 10 37 01 20 10 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 55 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 68 01 00 35 04 06 00 1C 53 DA 11 E9 47 18 94 A1 78 84 EE B7 23 [19:15:35]Write to MH i2c: 01 00 00 D7 01 D8 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 07 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 25 0D 11 [19:15:35]RasterBufferAndPrint [19:15:35]line [19:15:35]line [19:15:35]line [19:15:35]line [19:15:35]line [19:15:36]written 0, free lines is 3407 [19:15:36]MH_Cut [19:15:36]Write to MH i2c: D1 01 00 DE 01 01 B1 [19:15:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BA 58 47 00 B7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 68 01 00 F4 03 04 00 D4 37 E4 66 B6 04 01 00 00 28 7A 69 C9 95 53 77 C1 [19:15:36]CommunicateWithHost err = 0 [19:15:36]CheckOFDResponse [19:15:36]1017 (14) - 77093643461234 [19:15:36]1041 (16) - 0000000000874692 [19:15:36]1040 (4) - 92294 [19:15:36]1012 (4) - 13.09.2024 13:02 [19:15:36]1206 (1) - 0 [19:15:36]OFD Sender: Remove packet 92294 [19:15:36]ProducePacketName [19:15:36]name=ofd_packets/00092294 [19:15:36]NVStorageDeleteData [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: D1 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: D1 01 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: D1 01 00 DE 01 00 B0 [19:15:36]Write to MH i2c: 01 00 00 DF 01 E0 [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** Cut start [19:15:36]*** Purtial cut [19:15:36]*** Stage 1: CUTSNS_PIN = 1 [19:15:36]OFD Sender: No OFD packet to send [19:15:38]Read from MH i2c: 01 [19:15:38]MH_I2C_Read... [19:15:38]*** Stop cut motor [19:15:38]*** Cut end [19:15:38]Read from MH i2c: 01 07 00 [19:15:38]MH_I2C_Read... [19:15:38]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [19:15:38]process_action close_receipt done [19:15:38]requested_data is exist [19:15:38]produce_requested_data [19:15:38]requested_item fm.sn is exist - process it [19:15:38]wFMCommunicate request_size=4 [19:15:38]MH_SAM_APDU [19:15:38]CAPDU: 80 11 00 00 [19:15:38]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [19:15:38]Write i2c OK [19:15:38]MH_I2C_Read... [19:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:38]Read from MH i2c: E2 [19:15:38]MH_I2C_Read... [19:15:38]Read from MH i2c: E2 17 00 [19:15:38]MH_I2C_Read... [19:15:38]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 34 36 39 32 90 00 B2 [19:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:38]wFMCommunicate OK [19:15:38]requested_item fd.num is exist - process it [19:15:38]SAM_PROTO_GetFieldsCounters [19:15:38]wFMCommunicate request_size=4 [19:15:38]MH_SAM_APDU [19:15:38]CAPDU: 80 13 00 00 [19:15:38]Write to MH i2c: E2 08 00 E1 01 80 13 00 00 00 00 00 00 5E [19:15:38]Write i2c OK [19:15:38]MH_I2C_Read... [19:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:38]Read from MH i2c: E2 [19:15:38]MH_I2C_Read... [19:15:38]Read from MH i2c: E2 62 00 [19:15:38]MH_I2C_Read... [19:15:38]Read from MH i2c: E2 62 00 E1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetFieldsCounters done [19:15:39]requested_item shift.num is exist - process it [19:15:39]requested_item shift.opened is exist - process it [19:15:39]req_shift_opened [19:15:39]FM_GetShiftState [19:15:39]SAM_PROTO_GetShiftState [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 01 00 [19:15:39]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EC [19:15:39]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetShiftState done [19:15:39]FM_GetShiftState done [19:15:39]req_shift_opened done [19:15:39]requested_item shift.open_date is exist - process it [19:15:39]req_shift_open_date [19:15:39]req_shift_open_date done [19:15:39]produce_requested_data done [19:15:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92294,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:39]process_action_free close_receipt [19:15:39]json_value_free [19:15:39]json_value_free done [19:15:39]process_json_proto returns [19:15:39]Send response to host [19:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92294,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:39]free response buf [19:15:39]execute_script done [19:15:39]execute_script returns [19:15:39]free content buf [19:15:39]Sock 8.Close socket [19:15:39]Sock 8.Thread stoped [19:15:40]accept exits with 9 [19:15:40]New connection [19:15:40]New thread 3067379044 created [19:15:40]Thread 3067235684 joined [19:15:40]Waiting for new connection... [19:15:40] Sock 9.Parse request [19:15:40]Sock 9.Check first char [19:15:40]Sock 9.First char is OK [19:15:40]request: POST /json_proto HTTP/1.0 [19:15:40]Method: POST [19:15:40]URL: /json_proto [19:15:40]Method is POST - this is cgi request [19:15:40]url: /json_proto [19:15:40]query_string will be loaded in cgi processing [19:15:40]execute_cgi json_proto POST (null) [19:15:40]execute_cgi path=json_proto method=POST [19:15:40]POST find Content-Length [19:15:40]Host: 172.17.57.71:8080 [19:15:40]Content-Length: 812 [19:15:40]Content-Type: application/json [19:15:40] [19:15:40]POST finish read [19:15:40]Found Content-Length = 812 [19:15:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127226", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:40]execute_script... [19:15: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 : (3)127226", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:40]POST & json_proto [19:15:40]process_json_proto [19:15:40]json parsed OK: [19:15:40]protocol is kg_v1.0 [19:15:40]action value=close_receipt [19:15:40]process_action close_receipt [19:15:40]cmd_close_receipt [19:15:40]MH_GetDate [19:15:40]Write to MH i2c: F0 00 00 E3 01 D3 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: F0 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: F0 09 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: F0 09 00 E3 01 00 5D 8F E4 66 33 3A A4 66 89 [19:15:40]GetLastDocTimeStamp 1726254933 [19:15:40]current date 1726254941 [19:15:40]FM_GetShiftState [19:15:40]SAM_PROTO_GetShiftState [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 13 01 00 [19:15:40]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 0E 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EE [19:15:40]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:40]wFMCommunicate OK [19:15:40]SAM_PROTO_GetShiftState done [19:15:40]FM_GetShiftState done [19:15:40]opened in 1726186930 [19:15:40]opened+sec_in_day 1726273330 [19:15:40]quantity*price = 40500 [19:15:40]sum+1 = 40501 [19:15:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 0.00 Безнал.: 405.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 103 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92295 ФПД: 94180405590097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191541&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92295&fm=94180405590097&tin=02508201610067®Number=0000000000091423&sum=40500 0 [19:15:42]StoreToDocumentArchive [19:15:42]shift 505 fd 92295 [19:15:42]save to /storage/0505/doc_00092295 [19:15:42]save last doc name /storage/0505/doc_00092295 to /storage/kkm_last_doc_name [19:15:42]save OK [19:15:42]Clear old archive folders... [19:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:15:42]tlvbuf is 012EFDD0 [19:15:42]SAM_PROTO_ClearQueue [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 09 00 00 [19:15:42]Write to MH i2c: E2 08 00 F1 01 80 09 00 00 00 00 00 00 64 [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [19:15:42]RAPDU: 90 00 [19:15:42]wFMCommunicate OK [19:15:42]SAM_PROTO_ClearQueue done [19:15:42]KKMCreateOFDPacket [19:15:42]OFDProtocolAddRootSTLVToBuf [19:15:42]FM_MakeSignedData [19:15:42]FM_MakeSignedData [19:15:42]SAM_PROTO_SignData [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 0D 01 02 [19:15:42]Write to MH i2c: E2 08 00 F2 01 80 0D 01 02 00 00 00 00 6C [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [19:15:42]RAPDU: 90 00 [19:15:42]wFMCommunicate OK [19:15:42]wFMCommunicate request_size=255 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [19:15:42]Write to MH i2c: E2 02 01 F3 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 7E [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [19:15:43]RAPDU: 90 00 [19:15:43]wFMCommunicate OK [19:15:43]wFMCommunicate request_size=41 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 68 01 00 35 04 06 00 55 A8 15 9E B8 51 [19:15:43]Write to MH i2c: E2 2C 00 F4 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 68 01 00 35 04 06 00 55 A8 15 9E B8 51 00 00 EB [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [19:15:43]RAPDU: 90 00 [19:15:43]wFMCommunicate OK [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 0D 03 02 [19:15:43]Write to MH i2c: E2 08 00 F5 01 80 0D 03 02 00 00 00 00 71 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0B 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0B 00 F5 01 00 84 89 8B 09 D9 64 54 18 90 00 BC [19:15:43]RAPDU: 84 89 8B 09 D9 64 54 18 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_SignData done [19:15:43]FM_MakeSignedData done [19:15:43]CreateOFDProtocolMessage [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 11 00 00 [19:15:43]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C8 [19:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:43]wFMCommunicate OK [19:15:43]CreateOFDProtocolMessage done [19:15:43]OFDSenderStorePacket 92295 [19:15:43]StoreOFDPacket docnum=92295 [19:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 DC 5B 26 01 AC EA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 68 01 00 35 04 06 00 55 A8 15 9E B8 51 84 89 8B 09 D9 64 54 18 [19:15:43]CheckFolder [19:15:43]dirname=/storage/ofd_packets [19:15:43]CheckFolder done [19:15:43]ProducePacketName [19:15:43]name=ofd_packets/00092295 [19:15:43]NVStorageSaveData ofd_packets/00092295 [19:15:43]File name is /storage/ofd_packets/00092295 [19:15:43]Write 332 bytes [19:15:43]NVStorageSaveData done [19:15:43]OFDSenderStorePacket done [19:15:43]KKMCreateOFDPacket done [19:15:43]NVStorageSaveData kkm_last_timestamp [19:15:43]File name is /storage/kkm_last_timestamp [19:15:43]Write 4 bytes [19:15:43]NVStorageSaveData done [19:15:43]ExternCall_PrintAddStr [19:15:43]wPrintStart [19:15:43]Write to MH i2c: 01 00 00 F7 01 F8 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [19:15:43]RasterBufferAndPrint [19:15:43]line Счет N : (3)127226 [19:15:43]line ИНН: 02508201610067 [19:15:43]line Контрольно-Кассовый Чек [19:15:43]line ПРОДАЖА [19:15:43]line Товар: 4870238424819 [19:15:43]line Лукойл Супер 10W40 SG/CD 1л. [19:15:43]line 1.000 * 405.00 [19:15:43]line = 405.00 [19:15:43]line НДС 12% НСП 1% [19:15:43]line > о реализуемом товаре [19:15:43]line ИТОГО: 405.00 [19:15:43]line НСП 1% : 3.58 [19:15:43]line НДС 12% : 43.01 [19:15:43]line Наличными: 0.00 [19:15:43]line Безнал.: 405.00 [19:15:43]line Место: АЗС № 5 "Партнер Нефть" [19:15:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:43]line СНО: Общий режим [19:15:43]line Чек 103 13.09.2024 19:15 [19:15:43]line Смена: 505 ФФД: 1.0 [19:15:43]line ЗНМ: 03000000022 [19:15:43]line РНМ: 0000000000091423 [19:15:43]line Версия ККМ: 001 [19:15:43]line Платежная система: О! деньги [19:15:43]line ФМ: 0000000000874692 [19:15:43]line ФД: 92295 [19:15:43]line ФПД: 94180405590097 [19:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191541&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92295&fm=94180405590097&tin=02508201610067®Number=0000000000091423&sum=40500 [19:15:43]line 0 [19:15:43]OFD Sender: Processing packet 92295 [packets to send 63, broken 62] [19:15:43]ProducePacketName [19:15:43]name=ofd_packets/00092295 [19:15:43]OFD Sender: To server: pG, [19:15:43]CommunicateWithHost lk.salyk.kg:30040 [19:15:43]ConnectInit lk.salyk.kg [19:15:43]written 0, free lines is 4095 [19:15:43]Connected sock=10 [19:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 DC 5B 26 01 AC EA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 68 01 00 35 04 06 00 55 A8 15 9E B8 51 84 89 8B 09 D9 64 54 18 [19:15:43]Write to MH i2c: 01 00 00 22 02 24 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: 01 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: 01 07 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FA 0C 31 [19:15:44]RasterBufferAndPrint [19:15:44]line [19:15:44]line [19:15:44]line [19:15:44]line [19:15:44]line [19:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AE F8 47 00 A7 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 68 01 00 F4 03 04 00 DC 37 E4 66 B6 04 01 00 00 D8 A7 5F 87 85 written 0, free lines is 3379 [19:15:44]B3 45 7B [19:15:44]CommunicateWithHost err = 0 [19:15:44]CheckOFDResponse [19:15:44]1017 (14) - 77093643461234 [19:15:44]1041 (16) - 0000000000874692 [19:15:44]1040 (4) - 92295 [19:15:44]MH_Cut [19:15:44]1012 (4) - 13.09.2024 13:02 [19:15:44]Write to MH i2c: 1206 (1) - 0 [19:15:44]D1 OFD Sender: Remove packet 92295 [19:15:44]01 ProducePacketName [19:15:44]00 name=ofd_packets/00092295 [19:15:44]29 NVStorageDeleteData [19:15:44]02 01 FD [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: D1 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: D1 01 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: D1 01 00 29 02 00 FC [19:15:44]Write to MH i2c: 01 00 00 2A 02 2C [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** Cut start [19:15:44]*** Purtial cut [19:15:44]*** Stage 1: CUTSNS_PIN = 1 [19:15:44]OFD Sender: No OFD packet to send [19:15:46]Read from MH i2c: 01 [19:15:46]MH_I2C_Read... [19:15:46]*** Stop cut motor [19:15:46]*** Cut end [19:15:46]Read from MH i2c: 01 07 00 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [19:15:46]process_action close_receipt done [19:15:46]requested_data is exist [19:15:46]produce_requested_data [19:15:46]requested_item fm.sn is exist - process it [19:15:46]wFMCommunicate request_size=4 [19:15:46]MH_SAM_APDU [19:15:46]CAPDU: 80 11 00 00 [19:15:46]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [19:15:46]Write i2c OK [19:15:46]MH_I2C_Read... [19:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:46]Read from MH i2c: E2 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: E2 17 00 [19:15:46]MH_I2C_Read... [19:15:46]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 34 36 39 32 90 00 FE [19:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:46]wFMCommunicate OK [19:15:46]requested_item fd.num is exist - process it [19:15:46]SAM_PROTO_GetFieldsCounters [19:15:46]wFMCommunicate request_size=4 [19:15:46]MH_SAM_APDU [19:15:46]CAPDU: 80 13 00 00 [19:15:46]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [19:15:46]Write i2c OK [19:15:46]MH_I2C_Read... [19:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:46]Read from MH i2c: E2 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: E2 62 00 [19:15:46]MH_I2C_Read... [19:15:46]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetFieldsCounters done [19:15:47]requested_item shift.num is exist - process it [19:15:47]requested_item shift.opened is exist - process it [19:15:47]req_shift_opened [19:15:47]FM_GetShiftState [19:15:47]SAM_PROTO_GetShiftState [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 01 00 [19:15:47]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 38 [19:15:47]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetShiftState done [19:15:47]FM_GetShiftState done [19:15:47]req_shift_opened done [19:15:47]requested_item shift.open_date is exist - process it [19:15:47]req_shift_open_date [19:15:47]req_shift_open_date done [19:15:47]produce_requested_data done [19:15:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92295,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:47]process_action_free close_receipt [19:15:47]json_value_free [19:15:47]json_value_free done [19:15:47]process_json_proto returns [19:15:47]Send response to host [19:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92295,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:47]free response buf [19:15:47]execute_script done [19:15:47]execute_script returns [19:15:47]free content buf [19:15:47]Sock 9.Close socket [19:15:47]Sock 9.Thread stoped [19:15:49]accept exits with 8 [19:15:49]New connection [19:15:49]New thread 3067235684 created [19:15:49]Thread 3067379044 joined [19:15:49]Waiting for new connection... [19:15:49] Sock 8.Parse request [19:15:49]Sock 8.Check first char [19:15:49]Sock 8.First char is OK [19:15:49]request: POST /json_proto HTTP/1.0 [19:15:49]Method: POST [19:15:49]URL: /json_proto [19:15:49]Method is POST - this is cgi request [19:15:49]url: /json_proto [19:15:49]query_string will be loaded in cgi processing [19:15:49]execute_cgi json_proto POST (null) [19:15:49]execute_cgi path=json_proto method=POST [19:15:49]POST find Content-Length [19:15:49]Host: 172.17.57.71:8080 [19:15:49]Content-Length: 2180 [19:15:49]Content-Type: application/json [19:15:49] [19:15:49]POST finish read [19:15:49]Found Content-Length = 2180 [19:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127227", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46040145", "name": "\u041A\u043E\u043D\u0444 Meller \u0441\u0442\u0438\u043A \u0448\u043E\u043A\u043E\u043B\u0430\u0434 8*24", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 2.000, "sum" : 424.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 804.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:49]execute_script... [19: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 : (3)127227", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46040145", "name": "\u041A\u043E\u043D\u0444 Meller \u0441\u0442\u0438\u043A \u0448\u043E\u043A\u043E\u043B\u0430\u0434 8*24", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 2.000, "sum" : 424.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 804.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:49]POST & json_proto [19:15:49]process_json_proto [19:15:49]json parsed OK: [19:15:49]protocol is kg_v1.0 [19:15:49]action value=close_receipt [19:15:49]process_action close_receipt [19:15:49]cmd_close_receipt [19:15:49]MH_GetDate [19:15:49]Write to MH i2c: F0 00 00 2E 02 1F [19:15:49]OFD Sender: No OFD packet to send [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 09 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: F0 09 00 2E 02 00 66 8F E4 66 33 3A A4 66 DE [19:15:49]GetLastDocTimeStamp 1726254941 [19:15:50]current date 1726254950 [19:15:50]FM_GetShiftState [19:15:50]SAM_PROTO_GetShiftState [19:15:50]wFMCommunicate request_size=4 [19:15:50]MH_SAM_APDU [19:15:50]CAPDU: 80 13 01 00 [19:15:50]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [19:15:50]Write i2c OK [19:15:50]MH_I2C_Read... [19:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:50]Read from MH i2c: E2 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 0E 00 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3A [19:15:50]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:50]wFMCommunicate OK [19:15:50]SAM_PROTO_GetShiftState done [19:15:50]FM_GetShiftState done [19:15:50]opened in 1726186930 [19:15:50]opened+sec_in_day 1726273330 [19:15:50]quantity*price = 9000 [19:15:50]sum+1 = 9001 [19:15:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46040145 Конф Meller стик шоколад 8*24 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5904310231343 Леденец Johny Bee BOOTS POP 2.000 * 212.00 = 424.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 804.00 НСП 1% : 7.12 НДС 12% : 85.39 Наличными: 804.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 104 13.09.2024 19:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92296 ФПД: 95090576848520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92296&fm=95090576848520&tin=02508201610067®Number=0000000000091423&sum=80400 0 [19:15:51]StoreToDocumentArchive [19:15:51]shift 505 fd 92296 [19:15:51]save to /storage/0505/doc_00092296 [19:15:51]save last doc name /storage/0505/doc_00092296 to /storage/kkm_last_doc_name [19:15:51]save OK [19:15:51]Clear old archive folders... [19:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=908 [19:15:51]tlvbuf is 01360790 [19:15:51]SAM_PROTO_ClearQueue [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 09 00 00 [19:15:51]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [19:15:51]RAPDU: 90 00 [19:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_ClearQueue done [19:15:51]KKMCreateOFDPacket [19:15:51]OFDProtocolAddRootSTLVToBuf [19:15:51]FM_MakeSignedData [19:15:51]FM_MakeSignedData [19:15:51]SAM_PROTO_SignData [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 0D 01 02 [19:15:51]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:52]Read from MH i2c: E2 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: E2 03 00 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [19:15:52]RAPDU: 90 00 [19:15:52]wFMCommunicate OK [19:15:52]wFMCommunicate request_size=255 [19:15:52]MH_SAM_APDU [19:15:52]CAPDU: 80 0D 02 02 FA 03 00 8C 03 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [19:15:52]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 8C 03 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 6C [19:15:52]Write i2c OK [19:15:52]MH_I2C_Read... [19:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:52]Read from MH i2c: E2 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: E2 03 00 [19:15:52]MH_I2C_Read... [19:15:52]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [19:15:52]RAPDU: 90 00 [19:15:52]wFMCommunicate OK [19:15:52]wFMCommunicate request_size=255 [19:15:52]MH_SAM_APDU [19:15:52]CAPDU: 80 0D 02 02 FA 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 [19:15:52]Write to MH i2c: E2 02 01 3F 02 80 0D 02 02 FA 00 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 00 00 15 [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:53]Read from MH i2c: E2 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 03 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [19:15:53]RAPDU: 90 00 [19:15:53]wFMCommunicate OK [19:15:53]wFMCommunicate request_size=255 [19:15:53]MH_SAM_APDU [19:15:53]CAPDU: 80 0D 02 02 FA 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [19:15:53]Write to MH i2c: E2 02 01 40 02 80 0D 02 02 FA 00 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 0F [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]wFMCommunicate request_size=167 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 0D 02 02 A2 00 10 3A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 21 00 00 00 00 07 04 06 00 10 3A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 68 01 00 35 04 06 00 56 7C 00 0D F6 88 [19:15:54]Write to MH i2c: E2 AA 00 41 02 80 0D 02 02 A2 00 00 10 3A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 21 00 00 00 00 07 04 06 00 10 3A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 68 01 00 35 04 06 00 56 7C 00 0D F6 88 00 00 07 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 0D 03 02 [19:15:54]Write to MH i2c: E2 08 00 42 02 80 0D 03 02 00 00 00 00 BF [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 0B 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 0B 00 42 02 00 3E 31 84 86 20 DC 3F 30 90 00 A4 [19:15:54]RAPDU: 3E 31 84 86 20 DC 3F 30 90 00 [19:15:54]wFMCommunicate OK [19:15:54]SAM_PROTO_SignData done [19:15:54]FM_MakeSignedData done [19:15:54]CreateOFDProtocolMessage [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 11 00 00 [19:15:54]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:54]Read from MH i2c: E2 17 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 16 [19:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:54]wFMCommunicate OK [19:15:54]CreateOFDProtocolMessage done [19:15:54]OFDSenderStorePacket 92296 [19:15:54]StoreOFDPacket docnum=92296 [19:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 03 00 00 3F BF 98 03 81 80 5A 03 01 00 03 00 8C 03 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 3A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 21 00 00 00 00 07 04 06 00 10 3A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 68 01 00 35 04 06 00 56 7C 00 0D F6 88 3E 31 84 86 20 DC 3F 30 [19:15:54]CheckFolder [19:15:54]dirname=/storage/ofd_packets [19:15:54]CheckFolder done [19:15:54]ProducePacketName [19:15:54]name=ofd_packets/00092296 [19:15:54]NVStorageSaveData ofd_packets/00092296 [19:15:54]File name is /storage/ofd_packets/00092296 [19:15:54]Write 958 bytes [19:15:54]NVStorageSaveData done [19:15:54]OFDSenderStorePacket done [19:15:54]KKMCreateOFDPacket done [19:15:54]NVStorageSaveData kkm_last_timestamp [19:15:54]File name is /storage/kkm_last_timestamp [19:15:54]Write 4 bytes [19:15:54]NVStorageSaveData done [19:15:54]ExternCall_PrintAddStr [19:15:54]wPrintStart [19:15:54]Write to MH i2c: 01 00 00 44 02 46 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: 01 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: 01 07 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 FF 0F 5B [19:15:54]RasterBufferAndPrint [19:15:54]line Счет N : (3)127227 [19:15:54]line ИНН: 02508201610067 [19:15:54]line Контрольно-Кассовый Чек [19:15:54]line ПРОДАЖА [19:15:54]line Товар: 4870235681079 [19:15:54]line Grizzly волнистые Сладкий чили 55 гр [19:15:54]line 1.000 * 90.00 [19:15:54]line = 90.00 [19:15:54]line НДС 12% НСП 1% [19:15:54]line > о реализуемом товаре [19:15:54]line Товар: 46040145 [19:15:54]line Конф Meller стик шоколад 8*24 [19:15:54]line 1.000 * 75.00 [19:15:54]line = 75.00 [19:15:54]line НДС 12% НСП 1% [19:15:54]line > о реализуемом товаре [19:15:54]line Товар: 4011100091993 [19:15:54]line Шок Батончик Милки Вей 26г [19:15:54]line 1.000 * 35.00 [19:15:54]line = 35.00 [19:15:54]line НДС 12% НСП 1% [19:15:54]line > о реализуемом товаре [19:15:54]line Товар: 5904310231343 [19:15:54]line Леденец Johny Bee BOOTS POP [19:15:54]line 2.000 * 212.00 [19:15:54]line = 424.00 [19:15:54]line НДС 12% НСП 1% [19:15:54]line > о реализуемом товаре [19:15:54]line Товар: 4870235681062 [19:15:54]line Grizzly волнистые Колбаски с горчицей 55 [19:15:54]line 1.000 * 90.00 [19:15:55]line = 90.00 [19:15:55]line НДС 12% НСП 1% [19:15:55]line > о реализуемом товаре [19:15:55]line Товар: 4870235681086 [19:15:55]line Grizzly волнистые Сыр с халапеньо 55 гр [19:15:55]line 1.000 * 90.00 [19:15:55]line = 90.00 [19:15:55]line НДС 12% НСП 1% [19:15:55]line > о реализуемом товаре [19:15:55]line ИТОГО: 804.00 [19:15:55]line НСП 1% : 7.12 [19:15:55]line НДС 12% : 85.39 [19:15:55]line Наличными: 804.00 [19:15:55]line Безнал.: 0.00 [19:15:55]line Место: АЗС № 5 "Партнер Нефть" [19:15:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:15:55]line СНО: Общий режим [19:15:55]line Чек 104 13.09.2024 19:15 [19:15:55]OFD Sender: Processing packet 92296 [packets to send 63, broken 62] [19:15:55]line Смена: 505 ФФД: 1.0 [19:15:55]ProducePacketName [19:15:55]line ЗНМ: 03000000022 [19:15:55]name=ofd_packets/00092296 [19:15:55]line РНМ: 0000000000091423 [19:15:55]OFD Sender: To server: pG, [19:15:55]line Версия ККМ: 001 [19:15:55]CommunicateWithHost lk.salyk.kg:30040 [19:15:55]line ФМ: 0000000000874692 [19:15:55]ConnectInit lk.salyk.kg [19:15:55]line ФД: 92296 [19:15:55]line ФПД: 95090576848520 [19:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92296&fm=95090576848520&tin=02508201610067®Number=0000000000091423&sum=80400 [19:15:55]line 0 [19:15:55]written 0, free lines is 4095 [19:15:55]Connected sock=10 [19:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 03 00 00 3F BF 98 03 81 80 5A 03 01 00 03 00 8C 03 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 3A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 02 00 00 00 00 EE 03 0F 00 F2 03 Write to MH i2c: 01 01 00 00 01 00 F3 8F 03 02 06 91 00 [19:15:56]5B Write i2c OK [19:15:56]21 MH_I2C_Read... [19:15:56]00 00 00 00 07 04 06 00 10 3A 01 00 00 00 Read from MH i2c: 39 01 [19:15:56]04 MH_I2C_Read... [19:15:56]06 Read from MH i2c: 00 01 00 07 00 00 00 [19:15:56]00 MH_I2C_Read... [19:15:56]00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 Read from MH i2c: 00 01 F4 07 03 00 04 8F 00 02 66 00 8F 00 E4 00 66 00 0E 00 04 BA 04 0C 00 F9 5E 01 [19:15:56]00 RasterBufferAndPrint [19:15:56]00 line [19:15:56]B9 line [19:15:56]04 line [19:15:56]01 line [19:15:56]00 line [19:15:56]01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 written 0, free lines is 3447 [19:15:56]30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 MH_Cut [19:15:56]30 Write to MH i2c: 30 D1 30 01 30 00 30 96 38 02 37 01 34 36 39 32 10 04 04 00 88 68 01 00 6A 35 [19:15:56]04 06 00 56 7C 00 0D F6 Write i2c OK [19:15:56]88 MH_I2C_Read... [19:15:56]3E Read from MH i2c: 31 D1 84 [19:15:56]86 20 DC 3F 30 [19:15:56]MH_I2C_Read... [19:15:56]Read from MH i2c: D1 01 00 [19:15:56]MH_I2C_Read... [19:15:56]Read from MH i2c: D1 01 00 96 02 00 69 [19:15:56]Write to MH i2c: 01 00 00 97 02 99 [19:15:56]Write i2c OK [19:15:56]MH_I2C_Read... [19:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 02 25 47 00 2C EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 68 01 00 F4 03 04 00 E8 37 E4 66 B6 04 01 00 00 9B 8F 7C 69 3B B6 50 F3 [19:15:56]CommunicateWithHost err = 0 [19:15:56]CheckOFDResponse [19:15:56]1017 (14) - 77093643461234 [19:15:56]1041 (16) - 0000000000874692 [19:15:56]1040 (4) - 92296 [19:15:56]1012 (4) - 13.09.2024 13:02 [19:15:56]1206 (1) - 0 [19:15:56]OFD Sender: Remove packet 92296 [19:15:56]ProducePacketName [19:15:56]name=ofd_packets/00092296 [19:15:56]NVStorageDeleteData [19:15:56]*** Cut start [19:15:56]*** Purtial cut [19:15:56]*** Stage 1: CUTSNS_PIN = 1 [19:15:57]OFD Sender: No OFD packet to send [19:15:58]Read from MH i2c: 01 [19:15:58]MH_I2C_Read... [19:15:58]*** Stop cut motor [19:15:58]*** Cut end [19:15:58]Read from MH i2c: 01 07 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 FF 0F AE [19:15:58]process_action close_receipt done [19:15:58]requested_data is exist [19:15:58]produce_requested_data [19:15:58]requested_item fm.sn is exist - process it [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 11 00 00 [19:15:58]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:58]Read from MH i2c: E2 17 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6B [19:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:15:58]wFMCommunicate OK [19:15:58]requested_item fd.num is exist - process it [19:15:58]SAM_PROTO_GetFieldsCounters [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 13 00 00 [19:15:58]Write to MH i2c: E2 08 00 99 02 80 13 00 00 00 00 00 00 17 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 62 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 62 00 99 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [19:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:59]wFMCommunicate OK [19:15:59]SAM_PROTO_GetFieldsCounters done [19:15:59]requested_item shift.num is exist - process it [19:15:59]requested_item shift.opened is exist - process it [19:15:59]req_shift_opened [19:15:59]FM_GetShiftState [19:15:59]SAM_PROTO_GetShiftState [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 13 01 00 [19:15:59]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0E 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A5 [19:15:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:15:59]wFMCommunicate OK [19:15:59]SAM_PROTO_GetShiftState done [19:15:59]FM_GetShiftState done [19:15:59]req_shift_opened done [19:15:59]requested_item shift.open_date is exist - process it [19:15:59]req_shift_open_date [19:15:59]req_shift_open_date done [19:15:59]produce_requested_data done [19:15:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92296,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:15:59]process_action_free close_receipt [19:15:59]json_value_free [19:15:59]json_value_free done [19:15:59]process_json_proto returns [19:15:59]Send response to host [19:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92296,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:15:59]free response buf [19:15:59]execute_script done [19:15:59]execute_script returns [19:15:59]free content buf [19:15:59]Sock 8.Close socket [19:15:59]Sock 8.Thread stoped [19:16:00]accept exits with 9 [19:16:00]New connection [19:16:00]New thread 3067379044 created [19:16:00]Thread 3067235684 joined [19:16:00]Waiting for new connection... [19:16:00] Sock 9.Parse request [19:16:00]Sock 9.Check first char [19:16:00]Sock 9.First char is OK [19:16:00]request: POST /json_proto HTTP/1.0 [19:16:00]Method: POST [19:16:00]URL: /json_proto [19:16:00]Method is POST - this is cgi request [19:16:00]url: /json_proto [19:16:00]query_string will be loaded in cgi processing [19:16:00]execute_cgi json_proto POST (null) [19:16:00]execute_cgi path=json_proto method=POST [19:16:00]POST find Content-Length [19:16:00]Host: 172.17.57.71:8080 [19:16:00]Content-Length: 646 [19:16:00]Content-Type: application/json [19:16:00] [19:16:00]POST finish read [19:16:00]Found Content-Length = 646 [19:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127228", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:00]execute_script... [19:16: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 : (3)127228", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:00]POST & json_proto [19:16:00]process_json_proto [19:16:00]json parsed OK: [19:16:00]protocol is kg_v1.0 [19:16:00]action value=close_receipt [19:16:00]process_action close_receipt [19:16:00]cmd_close_receipt [19:16:00]MH_GetDate [19:16:00]Write to MH i2c: F0 00 00 9B 02 8C [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: F0 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: F0 09 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: F0 09 00 9B 02 00 71 8F E4 66 33 3A A4 66 56 [19:16:00]GetLastDocTimeStamp 1726254950 [19:16:00]current date 1726254961 [19:16:00]FM_GetShiftState [19:16:00]SAM_PROTO_GetShiftState [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 13 01 00 [19:16:00]Write to MH i2c: E2 08 00 9C 02 80 13 01 00 00 00 00 00 1B [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:00]Read from MH i2c: E2 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 0E 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 0E 00 9C 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A7 [19:16:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:00]wFMCommunicate OK [19:16:00]SAM_PROTO_GetShiftState done [19:16:00]FM_GetShiftState done [19:16:00]opened in 1726186930 [19:16:00]opened+sec_in_day 1726273330 [19:16:00]quantity*price = 26000 [19:16:00]sum+1 = 26001 [19:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 105 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92297 ФПД: 126195868013167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191601&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92297&fm=126195868013167&tin=02508201610067®Number=0000000000091423&sum=26000 0 [19:16:02]StoreToDocumentArchive [19:16:02]shift 505 fd 92297 [19:16:02]save to /storage/0505/doc_00092297 [19:16:02]save last doc name /storage/0505/doc_00092297 to /storage/kkm_last_doc_name [19:16:02]save OK [19:16:02]Clear old archive folders... [19:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:16:02]tlvbuf is 012D1010 [19:16:02]SAM_PROTO_ClearQueue [19:16:02]wFMCommunicate request_size=4 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 09 00 00 [19:16:02]Write to MH i2c: E2 08 00 A9 02 80 09 00 00 00 00 00 00 1D [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:02]Read from MH i2c: E2 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [19:16:02]RAPDU: 90 00 [19:16:02]wFMCommunicate OK [19:16:02]SAM_PROTO_ClearQueue done [19:16:02]KKMCreateOFDPacket [19:16:02]OFDProtocolAddRootSTLVToBuf [19:16:02]FM_MakeSignedData [19:16:02]FM_MakeSignedData [19:16:02]SAM_PROTO_SignData [19:16:02]wFMCommunicate request_size=4 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 0D 01 02 [19:16:02]Write to MH i2c: E2 08 00 AA 02 80 0D 01 02 00 00 00 00 25 [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:02]Read from MH i2c: E2 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [19:16:03]RAPDU: 90 00 [19:16:03]wFMCommunicate OK [19:16:03]wFMCommunicate request_size=255 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 71 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [19:16:03]Write to MH i2c: E2 02 01 AB 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 71 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 95 [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [19:16:03]RAPDU: 90 00 [19:16:03]wFMCommunicate OK [19:16:03]wFMCommunicate request_size=41 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 68 01 00 35 04 06 00 72 C6 43 E2 92 6F [19:16:03]Write to MH i2c: E2 2C 00 AC 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 68 01 00 35 04 06 00 72 C6 43 E2 92 6F 00 00 4B [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [19:16:03]RAPDU: 90 00 [19:16:03]wFMCommunicate OK [19:16:03]wFMCommunicate request_size=4 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 0D 03 02 [19:16:03]Write to MH i2c: E2 08 00 AD 02 80 0D 03 02 00 00 00 00 2A [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0B 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0B 00 AD 02 00 5E F0 3C 31 60 74 6C E3 90 00 09 [19:16:04]RAPDU: 5E F0 3C 31 60 74 6C E3 90 00 [19:16:04]wFMCommunicate OK [19:16:04]SAM_PROTO_SignData done [19:16:04]FM_MakeSignedData done [19:16:04]CreateOFDProtocolMessage [19:16:04]wFMCommunicate request_size=4 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 11 00 00 [19:16:04]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:04]Read from MH i2c: E2 17 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 81 [19:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:04]wFMCommunicate OK [19:16:04]CreateOFDProtocolMessage done [19:16:04]OFDSenderStorePacket 92297 [19:16:04]StoreOFDPacket docnum=92297 [19:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 51 C2 26 01 56 BE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 71 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 68 01 00 35 04 06 00 72 C6 43 E2 92 6F 5E F0 3C 31 60 74 6C E3 [19:16:04]CheckFolder [19:16:04]dirname=/storage/ofd_packets [19:16:04]CheckFolder done [19:16:04]ProducePacketName [19:16:04]name=ofd_packets/00092297 [19:16:04]NVStorageSaveData ofd_packets/00092297 [19:16:04]File name is /storage/ofd_packets/00092297 [19:16:04]Write 332 bytes [19:16:04]NVStorageSaveData done [19:16:04]OFDSenderStorePacket done [19:16:04]KKMCreateOFDPacket done [19:16:04]NVStorageSaveData kkm_last_timestamp [19:16:04]File name is /storage/kkm_last_timestamp [19:16:04]Write 4 bytes [19:16:04]NVStorageSaveData done [19:16:04]ExternCall_PrintAddStr [19:16:04]wPrintStart [19:16:04]Write to MH i2c: 01 00 00 AF 02 B1 [19:16:04]OFD Sender: Processing packet 92297 [packets to send 63, broken 62] [19:16:04]ProducePacketName [19:16:04]name=ofd_packets/00092297 [19:16:04]OFD Sender: To server: pG, [19:16:04]CommunicateWithHost lk.salyk.kg:30040 [19:16:04]ConnectInit lk.salyk.kg [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [19:16:04]RasterBufferAndPrint [19:16:04]line Счет N : (3)127228 [19:16:04]line ИНН: 02508201610067 [19:16:04]line Контрольно-Кассовый Чек [19:16:04]line ПРОДАЖА [19:16:04]line Товар: 2000036220012 [19:16:04]line Кофе Капучино XL(GABB TRADE) [19:16:04]line 2.000 * 130.00 [19:16:04]line = 260.00 [19:16:04]line НДС 12% НСП 1% [19:16:04]line > о реализуемом товаре [19:16:04]line ИТОГО: 260.00 [19:16:04]line НСП 1% : 2.30 [19:16:04]line НДС 12% : 27.61 [19:16:04]line Наличными: 260.00 [19:16:04]line Безнал.: 0.00 [19:16:04]line Место: АЗС № 5 "Партнер Нефть" [19:16:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:04]line СНО: Общий режим [19:16:04]line Чек 105 13.09.2024 19:16 [19:16:04]line Смена: 505 ФФД: 1.0 [19:16:04]line ЗНМ: 03000000022 [19:16:04]line РНМ: 0000000000091423 [19:16:04]line Версия ККМ: 001 [19:16:04]line ФМ: 0000000000874692 [19:16:04]line ФД: 92297 [19:16:04]line ФПД: 126195868013167 [19:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191601&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92297&fm=126195868013167&tin=02508201610067®Number=0000000000091423&sum=26000 [19:16:04]line 0 [19:16:04]written 0, free lines is 4095 [19:16:04]Connected sock=10 [19:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 51 C2 26 01 56 BE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 71 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 68 01 00 35 04 06 00 72 C6 43 E2 92 6F 5E F0 3C 31 60 74 6C E3 [19:16:04]Write to MH i2c: 01 00 00 D8 02 DA [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 22 0D 10 [19:16:04]RasterBufferAndPrint [19:16:04]line [19:16:04]line [19:16:04]line [19:16:04]line [19:16:04]line [19:16:04]written 0, free lines is 3422 [19:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6F 2B 47 00 DF 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 68 01 00 F4 03 04 00 F1 37 E4 66 B6 04 01 00 00 9D 6C D7 EC 41 2B 9E CE [19:16:05]CommunicateWithHost err = 0 [19:16:05]CheckOFDResponse [19:16:05]1017 (14) - 77093643461234 [19:16:05]1041 (16) - 0000000000874692 [19:16:05]1040 (4) - 92297 [19:16:05]1012 (4) - 13.09.2024 13:02 [19:16:05]1206 (1) - 0 [19:16:05]OFD Sender: Remove packet 92297 [19:16:05]ProducePacketName [19:16:05]name=ofd_packets/00092297 [19:16:05]NVStorageDeleteData [19:16:05]MH_Cut [19:16:05]Write to MH i2c: D1 01 00 DF 02 01 B3 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: D1 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: D1 01 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: D1 01 00 DF 02 00 B2 [19:16:05]Write to MH i2c: 01 00 00 E0 02 E2 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** Cut start [19:16:05]*** Purtial cut [19:16:05]*** Stage 1: CUTSNS_PIN = 1 [19:16:05]OFD Sender: No OFD packet to send [19:16:07]Read from MH i2c: 01 [19:16:07]MH_I2C_Read... [19:16:07]*** Stop cut motor [19:16:07]*** Cut end [19:16:07]Read from MH i2c: 01 07 00 [19:16:07]MH_I2C_Read... [19:16:07]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 FF 0F F7 [19:16:07]process_action close_receipt done [19:16:07]requested_data is exist [19:16:07]produce_requested_data [19:16:07]requested_item fm.sn is exist - process it [19:16:07]wFMCommunicate request_size=4 [19:16:07]MH_SAM_APDU [19:16:07]CAPDU: 80 11 00 00 [19:16:07]Write to MH i2c: E2 08 00 E1 02 80 11 00 00 00 00 00 00 5D [19:16:07]Write i2c OK [19:16:07]MH_I2C_Read... [19:16:07]Read from MH i2c: E2 [19:16:07]MH_I2C_Read... [19:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:07]Read from MH i2c: E2 17 00 [19:16:07]MH_I2C_Read... [19:16:07]Read from MH i2c: E2 17 00 E1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B4 [19:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:07]wFMCommunicate OK [19:16:07]requested_item fd.num is exist - process it [19:16:07]SAM_PROTO_GetFieldsCounters [19:16:07]wFMCommunicate request_size=4 [19:16:07]MH_SAM_APDU [19:16:07]CAPDU: 80 13 00 00 [19:16:07]Write to MH i2c: E2 08 00 E2 02 80 13 00 00 00 00 00 00 60 [19:16:07]Write i2c OK [19:16:07]MH_I2C_Read... [19:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:07]Read from MH i2c: E2 [19:16:07]MH_I2C_Read... [19:16:07]Read from MH i2c: E2 62 00 [19:16:07]MH_I2C_Read... [19:16:07]Read from MH i2c: E2 62 00 E2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 89 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 89 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:08]wFMCommunicate OK [19:16:08]SAM_PROTO_GetFieldsCounters done [19:16:08]requested_item shift.num is exist - process it [19:16:08]requested_item shift.opened is exist - process it [19:16:08]req_shift_opened [19:16:08]FM_GetShiftState [19:16:08]SAM_PROTO_GetShiftState [19:16:08]wFMCommunicate request_size=4 [19:16:08]MH_SAM_APDU [19:16:08]CAPDU: 80 13 01 00 [19:16:08]Write to MH i2c: E2 08 00 E3 02 80 13 01 00 00 00 00 00 62 [19:16:08]Write i2c OK [19:16:08]MH_I2C_Read... [19:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:08]Read from MH i2c: E2 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 0E 00 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 0E 00 E3 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EE [19:16:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:08]wFMCommunicate OK [19:16:08]SAM_PROTO_GetShiftState done [19:16:08]FM_GetShiftState done [19:16:08]req_shift_opened done [19:16:08]requested_item shift.open_date is exist - process it [19:16:08]req_shift_open_date [19:16:08]req_shift_open_date done [19:16:08]produce_requested_data done [19:16:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92297,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:08]process_action_free close_receipt [19:16:08]json_value_free [19:16:08]json_value_free done [19:16:08]process_json_proto returns [19:16:08]Send response to host [19:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92297,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:08]free response buf [19:16:08]execute_script done [19:16:08]execute_script returns [19:16:08]free content buf [19:16:08]Sock 9.Close socket [19:16:08]Sock 9.Thread stoped [19:16:09]accept exits with 8 [19:16:09]New connection [19:16:09]New thread 3067235684 created [19:16:09]Thread 3067379044 joined [19:16:09]Waiting for new connection... [19:16:09] Sock 8.Parse request [19:16:09]Sock 8.Check first char [19:16:09]Sock 8.First char is OK [19:16:09]request: POST /json_proto HTTP/1.0 [19:16:09]Method: POST [19:16:09]URL: /json_proto [19:16:09]Method is POST - this is cgi request [19:16:09]url: /json_proto [19:16:09]query_string will be loaded in cgi processing [19:16:09]execute_cgi json_proto POST (null) [19:16:09]execute_cgi path=json_proto method=POST [19:16:09]POST find Content-Length [19:16:09]Host: 172.17.57.71:8080 [19:16:09]Content-Length: 699 [19:16:09]Content-Type: application/json [19:16:09] [19:16:09]POST finish read [19:16:09]Found Content-Length = 699 [19:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127229", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:09]execute_script... [19:16: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 : (3)127229", "tax_sys" : 0, "items" : [ { "code": "4620017455554", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0411\u043E\u043D\u0434\u0438 \u0430\u0441\u0441\u043E\u0440\u0442 \u043F\u0430\u043A 70\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:09]POST & json_proto [19:16:09]process_json_proto [19:16:09]json parsed OK: [19:16:09]protocol is kg_v1.0 [19:16:09]action value=close_receipt [19:16:09]process_action close_receipt [19:16:09]cmd_close_receipt [19:16:09]MH_GetDate [19:16:09]Write to MH i2c: F0 00 00 E4 02 D5 [19:16:09]Write i2c OK [19:16:09]MH_I2C_Read... [19:16:09]Read from MH i2c: F0 [19:16:09]MH_I2C_Read... [19:16:09]Read from MH i2c: F0 09 00 [19:16:09]MH_I2C_Read... [19:16:09]Read from MH i2c: F0 09 00 E4 02 00 7A 8F E4 66 33 3A A4 66 A8 [19:16:09]GetLastDocTimeStamp 1726254961 [19:16:09]current date 1726254970 [19:16:09]FM_GetShiftState [19:16:09]SAM_PROTO_GetShiftState [19:16:09]wFMCommunicate request_size=4 [19:16:09]MH_SAM_APDU [19:16:09]CAPDU: 80 13 01 00 [19:16:09]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [19:16:09]Write i2c OK [19:16:09]MH_I2C_Read... [19:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:09]Read from MH i2c: E2 [19:16:09]MH_I2C_Read... [19:16:09]Read from MH i2c: E2 0E 00 [19:16:09]MH_I2C_Read... [19:16:09]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F0 [19:16:09]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:09]wFMCommunicate OK [19:16:09]SAM_PROTO_GetShiftState done [19:16:09]FM_GetShiftState done [19:16:09]opened in 1726186930 [19:16:09]opened+sec_in_day 1726273330 [19:16:09]quantity*price = 4300 [19:16:09]sum+1 = 4301 [19:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.00 НСП 1% : 0.38 НДС 12% : 4.57 Наличными: 43.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 106 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92298 ФПД: 151734341523629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191610&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92298&fm=151734341523629&tin=02508201610067®Number=0000000000091423&sum=4300 0 [19:16:11]StoreToDocumentArchive [19:16:11]shift 505 fd 92298 [19:16:11]save to /storage/0505/doc_00092298 [19:16:11]save last doc name /storage/0505/doc_00092298 to /storage/kkm_last_doc_name [19:16:11]save OK [19:16:11]Clear old archive folders... [19:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:16:11]tlvbuf is 013C2780 [19:16:11]SAM_PROTO_ClearQueue [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 09 00 00 [19:16:11]Write to MH i2c: E2 08 00 F2 02 80 09 00 00 00 00 00 00 66 [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:11]Read from MH i2c: E2 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [19:16:11]RAPDU: 90 00 [19:16:11]wFMCommunicate OK [19:16:11]SAM_PROTO_ClearQueue done [19:16:11]KKMCreateOFDPacket [19:16:11]OFDProtocolAddRootSTLVToBuf [19:16:11]FM_MakeSignedData [19:16:11]FM_MakeSignedData [19:16:11]SAM_PROTO_SignData [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 0D 01 02 [19:16:11]Write to MH i2c: E2 08 00 F3 02 80 0D 01 02 00 00 00 00 6E [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:11]Read from MH i2c: E2 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [19:16:11]RAPDU: 90 00 [19:16:11]wFMCommunicate OK [19:16:11]wFMCommunicate request_size=255 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7A 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:16:12]Write to MH i2c: E2 02 01 F4 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7A 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 57 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=53 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 68 01 00 35 04 06 00 8A 00 67 86 D8 AD [19:16:12]Write to MH i2c: E2 38 00 F5 02 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 68 01 00 35 04 06 00 8A 00 67 86 D8 AD 00 00 53 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 03 02 [19:16:12]Write to MH i2c: E2 08 00 F6 02 80 0D 03 02 00 00 00 00 73 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 F6 02 00 B5 52 7E 03 AD 13 ED 63 90 00 0C [19:16:13]RAPDU: B5 52 7E 03 AD 13 ED 63 90 00 [19:16:13]wFMCommunicate OK [19:16:13]SAM_PROTO_SignData done [19:16:13]FM_MakeSignedData done [19:16:13]CreateOFDProtocolMessage [19:16:13]wFMCommunicate request_size=4 [19:16:13]MH_SAM_APDU [19:16:13]CAPDU: 80 11 00 00 [19:16:13]Write to MH i2c: E2 08 00 F7 02 80 11 00 00 00 00 00 00 73 [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: E2 [19:16:13]MH_I2C_Read... [19:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:13]Read from MH i2c: E2 17 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: E2 17 00 F7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CA [19:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:13]wFMCommunicate OK [19:16:13]CreateOFDProtocolMessage done [19:16:13]OFDSenderStorePacket 92298 [19:16:13]StoreOFDPacket docnum=92298 [19:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 AF DD 32 01 A6 C6 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7A 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 68 01 00 35 04 06 00 8A 00 67 86 D8 AD B5 52 7E 03 AD 13 ED 63 [19:16:13]CheckFolder [19:16:13]dirname=/storage/ofd_packets [19:16:13]CheckFolder done [19:16:13]ProducePacketName [19:16:13]name=ofd_packets/00092298 [19:16:13]NVStorageSaveData ofd_packets/00092298 [19:16:13]File name is /storage/ofd_packets/00092298 [19:16:13]Write 344 bytes [19:16:13]NVStorageSaveData done [19:16:13]OFDSenderStorePacket done [19:16:13]KKMCreateOFDPacket done [19:16:13]NVStorageSaveData kkm_last_timestamp [19:16:13]File name is /storage/kkm_last_timestamp [19:16:13]Write 4 bytes [19:16:13]NVStorageSaveData done [19:16:13]ExternCall_PrintAddStr [19:16:13]wPrintStart [19:16:13]Write to MH i2c: 01 00 00 F8 02 FA [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [19:16:13]RasterBufferAndPrint [19:16:13]line Счет N : (3)127229 [19:16:13]line ИНН: 02508201610067 [19:16:13]line Контрольно-Кассовый Чек [19:16:13]line ПРОДАЖА [19:16:13]line Товар: 4620017455554 [19:16:13]line Мармелад Бонди ассорт пак 70г [19:16:13]line 1.000 * 43.00 [19:16:13]line = 43.00 [19:16:13]line НДС 12% НСП 1% [19:16:13]line > о реализуемом товаре [19:16:13]line ИТОГО: 43.00 [19:16:13]line НСП 1% : 0.38 [19:16:13]line НДС 12% : 4.57 [19:16:13]line Наличными: 43.00 [19:16:13]line Безнал.: 0.00 [19:16:13]line Место: АЗС № 5 "Партнер Нефть" [19:16:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:13]line СНО: Общий режим [19:16:13]line Чек 106 13.09.2024 19:16 [19:16:13]line Смена: 505 ФФД: 1.0 [19:16:13]line ЗНМ: 03000000022 [19:16:13]line РНМ: 0000000000091423 [19:16:13]line Версия ККМ: 001 [19:16:13]line ФМ: 0000000000874692 [19:16:13]line ФД: 92298 [19:16:13]line ФПД: 151734341523629 [19:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191610&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92298&fm=151734341523629&tin=02508201610067®Number=0000000000091423&sum=4300 [19:16:13]line 0 [19:16:13]OFD Sender: Processing packet 92298 [packets to send 63, broken 62] [19:16:13]ProducePacketName [19:16:13]name=ofd_packets/00092298 [19:16:13]OFD Sender: To server: pG, [19:16:13]CommunicateWithHost lk.salyk.kg:30040 [19:16:13]ConnectInit lk.salyk.kg [19:16:13]written 0, free lines is 4095 [19:16:13]Connected sock=10 [19:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 AF DD 32 01 A6 C6 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 35 35 35 34 06 04 34 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 91 D0 BE D0 BD D0 B4 D0 B8 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 20 D0 BF D0 B0 D0 BA 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7A 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 68 01 00 35 04 06 00 8A 00 67 86 D8 AD B5 52 7E 03 AD 13 ED 63 [19:16:13]Write to MH i2c: 01 00 00 21 03 24 [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 62 0D 9A [19:16:13]RasterBufferAndPrint [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]written 0, free lines is 3489 [19:16:13]MH_Cut [19:16:13]Write to MH i2c: D1 01 00 28 03 01 FD [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 01 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 01 00 28 03 00 FC [19:16:13]Write to MH i2c: 01 00 00 29 03 2C [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DF 37 47 00 D1 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 34 36 39 32 10 04 04 00 8A 68 01 00 F4 03 04 00 FA 37 E4 66 B6 04 01 00 00 1E 47 48 74 9D C5 5C F3 [19:16:14]CommunicateWithHost err = 0 [19:16:14]CheckOFDResponse [19:16:14]1017 (14) - 77093643461234 [19:16:14]1041 (16) - 0000000000874692 [19:16:14]1040 (4) - 92298 [19:16:14]1012 (4) - 13.09.2024 13:02 [19:16:14]1206 (1) - 0 [19:16:14]OFD Sender: Remove packet 92298 [19:16:14]ProducePacketName [19:16:14]name=ofd_packets/00092298 [19:16:14]NVStorageDeleteData [19:16:14]*** Cut start [19:16:14]*** Purtial cut [19:16:14]*** Stage 1: CUTSNS_PIN = 1 [19:16:14]OFD Sender: No OFD packet to send [19:16:16]Read from MH i2c: 01 [19:16:16]MH_I2C_Read... [19:16:16]*** Stop cut motor [19:16:16]*** Cut end [19:16:16]Read from MH i2c: 01 07 00 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FF 0F 41 [19:16:16]process_action close_receipt done [19:16:16]requested_data is exist [19:16:16]produce_requested_data [19:16:16]requested_item fm.sn is exist - process it [19:16:16]wFMCommunicate request_size=4 [19:16:16]MH_SAM_APDU [19:16:16]CAPDU: 80 11 00 00 [19:16:16]Write to MH i2c: E2 08 00 2A 03 80 11 00 00 00 00 00 00 A7 [19:16:16]Write i2c OK [19:16:16]MH_I2C_Read... [19:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:16]Read from MH i2c: E2 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 17 00 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 17 00 2A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FE [19:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:16]wFMCommunicate OK [19:16:16]requested_item fd.num is exist - process it [19:16:16]SAM_PROTO_GetFieldsCounters [19:16:16]wFMCommunicate request_size=4 [19:16:16]MH_SAM_APDU [19:16:16]CAPDU: 80 13 00 00 [19:16:16]Write to MH i2c: E2 08 00 2B 03 80 13 00 00 00 00 00 00 AA [19:16:16]Write i2c OK [19:16:16]MH_I2C_Read... [19:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:16]Read from MH i2c: E2 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 62 00 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 62 00 2B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8A 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:16]wFMCommunicate OK [19:16:16]SAM_PROTO_GetFieldsCounters done [19:16:16]requested_item shift.num is exist - process it [19:16:16]requested_item shift.opened is exist - process it [19:16:16]req_shift_opened [19:16:16]FM_GetShiftState [19:16:16]SAM_PROTO_GetShiftState [19:16:16]wFMCommunicate request_size=4 [19:16:16]MH_SAM_APDU [19:16:16]CAPDU: 80 13 01 00 [19:16:16]Write to MH i2c: E2 08 00 2C 03 80 13 01 00 00 00 00 00 AC [19:16:16]Write i2c OK [19:16:16]MH_I2C_Read... [19:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:17]Read from MH i2c: E2 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 2C 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 38 [19:16:17]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:17]wFMCommunicate OK [19:16:17]SAM_PROTO_GetShiftState done [19:16:17]FM_GetShiftState done [19:16:17]req_shift_opened done [19:16:17]requested_item shift.open_date is exist - process it [19:16:17]req_shift_open_date [19:16:17]req_shift_open_date done [19:16:17]produce_requested_data done [19:16:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92298,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:17]process_action_free close_receipt [19:16:17]json_value_free [19:16:17]json_value_free done [19:16:17]process_json_proto returns [19:16:17]Send response to host [19:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92298,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:17]free response buf [19:16:17]execute_script done [19:16:17]execute_script returns [19:16:17]free content buf [19:16:17]Sock 8.Close socket [19:16:17]Sock 8.Thread stoped [19:16:17]accept exits with 9 [19:16:17]New connection [19:16:17]New thread 3067379044 created [19:16:17]Thread 3067235684 joined [19:16:17]Waiting for new connection... [19:16:17] Sock 9.Parse request [19:16:17]Sock 9.Check first char [19:16:17]Sock 9.First char is OK [19:16:17]request: POST /json_proto HTTP/1.0 [19:16:17]Method: POST [19:16:17]URL: /json_proto [19:16:17]Method is POST - this is cgi request [19:16:17]url: /json_proto [19:16:17]query_string will be loaded in cgi processing [19:16:17]execute_cgi json_proto POST (null) [19:16:17]execute_cgi path=json_proto method=POST [19:16:17]POST find Content-Length [19:16:17]Host: 172.17.57.71:8080 [19:16:17]Content-Length: 808 [19:16:17]Content-Type: application/json [19:16:17] [19:16:17]POST finish read [19:16:17]Found Content-Length = 808 [19:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:17]execute_script... [19:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:17]POST & json_proto [19:16:17]process_json_proto [19:16:17]json parsed OK: [19:16:17]protocol is kg_v1.0 [19:16:17]action value=close_receipt [19:16:17]process_action close_receipt [19:16:17]cmd_close_receipt [19:16:17]MH_GetDate [19:16:17]Write to MH i2c: F0 00 00 2D 03 1F [19:16:17]Write i2c OK [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 09 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 09 00 2D 03 00 82 8F E4 66 33 3A A4 66 FA [19:16:17]GetLastDocTimeStamp 1726254970 [19:16:17]current date 1726254978 [19:16:17]FM_GetShiftState [19:16:17]SAM_PROTO_GetShiftState [19:16:17]wFMCommunicate request_size=4 [19:16:17]MH_SAM_APDU [19:16:17]CAPDU: 80 13 01 00 [19:16:17]Write to MH i2c: E2 08 00 2E 03 80 13 01 00 00 00 00 00 AE [19:16:17]Write i2c OK [19:16:17]MH_I2C_Read... [19:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:17]Read from MH i2c: E2 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 2E 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3A [19:16:17]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:17]wFMCommunicate OK [19:16:17]SAM_PROTO_GetShiftState done [19:16:17]FM_GetShiftState done [19:16:17]opened in 1726186930 [19:16:17]opened+sec_in_day 1726273330 [19:16:17]quantity*price = 100015 [19:16:17]sum+1 = 100017 [19:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 107 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92299 ФПД: 157447530916148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191618&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92299&fm=157447530916148&tin=02508201610067®Number=0000000000091423&sum=100016 [19:16:20]StoreToDocumentArchive [19:16:20]shift 505 fd 92299 [19:16:20]save to /storage/0505/doc_00092299 [19:16:20]save last doc name /storage/0505/doc_00092299 to /storage/kkm_last_doc_name [19:16:20]save OK [19:16:20]Clear old archive folders... [19:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:20]tlvbuf is 013BA660 [19:16:20]SAM_PROTO_ClearQueue [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 09 00 00 [19:16:20]Write to MH i2c: E2 08 00 3B 03 80 09 00 00 00 00 00 00 B0 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]SAM_PROTO_ClearQueue done [19:16:20]KKMCreateOFDPacket [19:16:20]OFDProtocolAddRootSTLVToBuf [19:16:20]FM_MakeSignedData [19:16:20]FM_MakeSignedData [19:16:20]SAM_PROTO_SignData [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 01 02 [19:16:20]Write to MH i2c: E2 08 00 3C 03 80 0D 01 02 00 00 00 00 B8 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=255 [19:16:20]MH_SAM_APDU [19:16: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 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 6B 00 00 00 F4 03 04 00 82 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 68 01 00 35 04 06 00 8F [19:16:20]Write to MH i2c: E2 02 01 3D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 6B 00 00 00 F4 03 04 00 82 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 68 01 00 35 04 06 00 8F 00 00 A2 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 03 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [19:16:21]RAPDU: 90 00 [19:16:21]wFMCommunicate OK [19:16:21]wFMCommunicate request_size=10 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 0D 02 02 05 32 9C 26 A9 34 [19:16:21]Write to MH i2c: E2 0D 00 3E 03 80 0D 02 02 05 00 32 9C 26 A9 34 00 00 96 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 03 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [19:16:21]RAPDU: 90 00 [19:16:21]wFMCommunicate OK [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 0D 03 02 [19:16:21]Write to MH i2c: E2 08 00 3F 03 80 0D 03 02 00 00 00 00 BD [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0B 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0B 00 3F 03 00 A1 AA AF 66 7D 2B 47 01 90 00 0E [19:16:21]RAPDU: A1 AA AF 66 7D 2B 47 01 90 00 [19:16:21]wFMCommunicate OK [19:16:21]SAM_PROTO_SignData done [19:16:21]FM_MakeSignedData done [19:16:21]CreateOFDProtocolMessage [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 11 00 00 [19:16:21]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 14 [19:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:21]wFMCommunicate OK [19:16:21]CreateOFDProtocolMessage done [19:16:21]OFDSenderStorePacket 92299 [19:16:21]StoreOFDPacket docnum=92299 [19:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 F5 72 07 01 CE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 6B 00 00 00 F4 03 04 00 82 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 68 01 00 35 04 06 00 8F 32 9C 26 A9 34 A1 AA AF 66 7D 2B 47 01 [19:16:21]CheckFolder [19:16:21]dirname=/storage/ofd_packets [19:16:21]CheckFolder done [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00092299 [19:16:21]NVStorageSaveData ofd_packets/00092299 [19:16:21]File name is /storage/ofd_packets/00092299 [19:16:21]Write 301 bytes [19:16:21]NVStorageSaveData done [19:16:21]OFDSenderStorePacket done [19:16:21]KKMCreateOFDPacket done [19:16:21]NVStorageSaveData kkm_last_timestamp [19:16:21]File name is /storage/kkm_last_timestamp [19:16:21]Write 4 bytes [19:16:21]NVStorageSaveData done [19:16:21]ExternCall_PrintAddStr [19:16:21]wPrintStart [19:16:21]Write to MH i2c: 01 00 00 41 03 44 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 FF 0F 59 [19:16:21]RasterBufferAndPrint [19:16:21]line Счет N : (1)647068 [19:16:21]line ИНН: 02508201610067 [19:16:21]line Контрольно-Кассовый Чек [19:16:21]line ПРОДАЖА [19:16:21]line ТРК (МРК, ГНК) : 23 [19:16:21]line Товар: 2710124130 [19:16:21]line Аи-92-К-5 [19:16:21]line 14.950 * 66.90 [19:16:21]line = 1000.16 [19:16:21]line НДС 12% НСП 1% [19:16:21]OFD Sender: Processing packet 92299 [packets to send 63, broken 62] [19:16:21]line > о реализуемом товаре [19:16:21]ProducePacketName [19:16:21]line ИТОГО: 1000.16 [19:16:21]name=ofd_packets/00092299 [19:16:21]line НСП 1% : 8.85 [19:16:21]OFD Sender: To server: pG, [19:16:21]line НДС 12% : 106.21 [19:16:21]line Наличными: 0.00 [19:16:21]line Безнал.: 1000.16 [19:16:21]line Место: АЗС № 5 "Партнер Нефть" [19:16:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:21]line СНО: Общий режим [19:16:21]line Чек 107 13.09.2024 19:16 [19:16:21]line Смена: 505 ФФД: 1.0 [19:16:21]line ЗНМ: 03000000022 [19:16:21]CommunicateWithHost lk.salyk.kg:30040 [19:16:21]line РНМ: 0000000000091423 [19:16:21]ConnectInit lk.salyk.kg [19:16:21]line Версия ККМ: 001 [19:16:21]line Платежная система: О! деньги [19:16:21]line ФМ: 0000000000874692 [19:16:21]line ФД: 92299 [19:16:21]line ФПД: 157447530916148 [19:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191618&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92299&fm=157447530916148&tin=02508201610067®Number=0000000000091423&sum=100016 [19:16:21]written 0, free lines is 4095 [19:16:21]Connected sock=10 [19:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 F5 72 07 01 CE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 6B 00 00 00 F4 03 04 00 82 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 68 01 00 35 04 06 00 8F 32 9C 26 A9 34 A1 AA AF 66 7D 2B 47 01 [19:16:22]Write to MH i2c: 01 00 00 6B 03 6E [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 07 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 23 0D A5 [19:16:22]RasterBufferAndPrint [19:16:22]line [19:16:22]line [19:16:22]line [19:16:22]line [19:16:22]line [19:16:22]written 0, free lines is 3432 [19:16:22]MH_Cut [19:16:22]Write to MH i2c: D1 01 00 72 03 01 47 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: D1 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: D1 01 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: D1 01 00 72 03 00 46 [19:16:22]Write to MH i2c: 01 00 00 73 03 76 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EB BB 47 00 18 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 34 36 39 32 10 04 04 00 8B 68 01 00 F4 03 04 00 02 38 E4 66 B6 04 01 00 00 C4 44 62 DD 4C 3B 2B CB [19:16:22]CommunicateWithHost err = 0 [19:16:22]CheckOFDResponse [19:16:22]1017 (14) - 77093643461234 [19:16:22]1041 (16) - 0000000000874692 [19:16:22]1040 (4) - 92299 [19:16:22]1012 (4) - 13.09.2024 13:02 [19:16:22]1206 (1) - 0 [19:16:22]OFD Sender: Remove packet 92299 [19:16:22]ProducePacketName [19:16:22]name=ofd_packets/00092299 [19:16:22]NVStorageDeleteData [19:16:22]*** Cut start [19:16:22]*** Purtial cut [19:16:22]*** Stage 1: CUTSNS_PIN = 1 [19:16:22]OFD Sender: No OFD packet to send [19:16:24]Read from MH i2c: 01 [19:16:24]MH_I2C_Read... [19:16:24]*** Stop cut motor [19:16:24]*** Cut end [19:16:24]Read from MH i2c: 01 07 00 [19:16:24]MH_I2C_Read... [19:16:24]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [19:16:24]process_action close_receipt done [19:16:24]requested_data is exist [19:16:24]produce_requested_data [19:16:24]requested_item fm.sn is exist - process it [19:16:24]wFMCommunicate request_size=4 [19:16:24]MH_SAM_APDU [19:16:24]CAPDU: 80 11 00 00 [19:16:24]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [19:16:24]Write i2c OK [19:16:24]MH_I2C_Read... [19:16:24]Read from MH i2c: E2 [19:16:24]MH_I2C_Read... [19:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:24]Read from MH i2c: E2 17 00 [19:16:24]MH_I2C_Read... [19:16:24]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 48 [19:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:24]wFMCommunicate OK [19:16:24]requested_item fd.num is exist - process it [19:16:24]SAM_PROTO_GetFieldsCounters [19:16:24]wFMCommunicate request_size=4 [19:16:24]MH_SAM_APDU [19:16:24]CAPDU: 80 13 00 00 [19:16:24]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [19:16:24]Write i2c OK [19:16:24]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 62 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [19: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8B 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:25]wFMCommunicate OK [19:16:25]SAM_PROTO_GetFieldsCounters done [19:16:25]requested_item shift.num is exist - process it [19:16:25]requested_item shift.opened is exist - process it [19:16:25]req_shift_opened [19:16:25]FM_GetShiftState [19:16:25]SAM_PROTO_GetShiftState [19:16:25]wFMCommunicate request_size=4 [19:16:25]MH_SAM_APDU [19:16:25]CAPDU: 80 13 01 00 [19:16:25]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 82 [19:16:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:25]wFMCommunicate OK [19:16:25]SAM_PROTO_GetShiftState done [19:16:25]FM_GetShiftState done [19:16:25]req_shift_opened done [19:16:25]requested_item shift.open_date is exist - process it [19:16:25]req_shift_open_date [19:16:25]req_shift_open_date done [19:16:25]produce_requested_data done [19:16:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92299,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:25]process_action_free close_receipt [19:16:25]json_value_free [19:16:25]json_value_free done [19:16:25]process_json_proto returns [19:16:25]Send response to host [19:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92299,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:25]free response buf [19:16:25]execute_script done [19:16:25]execute_script returns [19:16:25]free content buf [19:16:25]Sock 9.Close socket [19:16:25]Sock 9.Thread stoped [19:16:27]OFD Sender: No OFD packet to send [19:16:28]accept exits with 8 [19:16:28]New connection [19:16:28]New thread 3067235684 created [19:16:28]Thread 3067379044 joined [19:16:28]Waiting for new connection... [19:16:28] Sock 8.Parse request [19:16:28]Sock 8.Check first char [19:16:28]Sock 8.First char is OK [19:16:28]request: POST /json_proto HTTP/1.0 [19:16:28]Method: POST [19:16:28]URL: /json_proto [19:16:28]Method is POST - this is cgi request [19:16:28]url: /json_proto [19:16:28]query_string will be loaded in cgi processing [19:16:28]execute_cgi json_proto POST (null) [19:16:28]execute_cgi path=json_proto method=POST [19:16:28]POST find Content-Length [19:16:28]Host: 172.17.57.71:8080 [19:16:28]Content-Length: 864 [19:16:28]Content-Type: application/json [19:16:28] [19:16:28]POST finish read [19:16:28]Found Content-Length = 864 [19:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127230", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:28]execute_script... [19: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 : (3)127230", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:28]POST & json_proto [19:16:28]process_json_proto [19:16:28]json parsed OK: [19:16:28]protocol is kg_v1.0 [19:16:28]action value=close_receipt [19:16:28]process_action close_receipt [19:16:28]cmd_close_receipt [19:16:28]MH_GetDate [19:16:28]Write to MH i2c: F0 00 00 77 03 69 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: F0 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: F0 09 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: F0 09 00 77 03 00 8D 8F E4 66 33 3A A4 66 4F [19:16:28]GetLastDocTimeStamp 1726254978 [19:16:28]current date 1726254989 [19:16:28]FM_GetShiftState [19:16:28]SAM_PROTO_GetShiftState [19:16:28]wFMCommunicate request_size=4 [19:16:28]MH_SAM_APDU [19:16:28]CAPDU: 80 13 01 00 [19:16:28]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:28]Read from MH i2c: E2 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 0E 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 84 [19:16:29]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:29]wFMCommunicate OK [19:16:29]SAM_PROTO_GetShiftState done [19:16:29]FM_GetShiftState done [19:16:29]opened in 1726186930 [19:16:29]opened+sec_in_day 1726273330 [19:16:29]quantity*price = 8000 [19:16:29]sum+1 = 8001 [19:16:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 108 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92300 ФПД: 228279281474206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191629&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92300&fm=228279281474206&tin=02508201610067®Number=0000000000091423&sum=15500 0 [19:16:31]StoreToDocumentArchive [19:16:31]shift 505 fd 92300 [19:16:31]save to /storage/0505/doc_00092300 [19:16:31]save last doc name /storage/0505/doc_00092300 to /storage/kkm_last_doc_name [19:16:31]save OK [19:16:31]Clear old archive folders... [19:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=366 [19:16:31]tlvbuf is 013AA070 [19:16:31]SAM_PROTO_ClearQueue [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 09 00 00 [19:16:31]Write to MH i2c: E2 08 00 85 03 80 09 00 00 00 00 00 00 FA [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [19:16:31]RAPDU: 90 00 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_ClearQueue done [19:16:31]KKMCreateOFDPacket [19:16:31]OFDProtocolAddRootSTLVToBuf [19:16:31]FM_MakeSignedData [19:16:31]FM_MakeSignedData [19:16:31]SAM_PROTO_SignData [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 0D 01 02 [19:16:31]Write to MH i2c: E2 08 00 86 03 80 0D 01 02 00 00 00 00 02 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [19:16:31]RAPDU: 90 00 [19:16:31]wFMCommunicate OK [19:16:31]wFMCommunicate request_size=255 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [19:16:31]Write to MH i2c: E2 02 01 87 03 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 3F [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]wFMCommunicate request_size=125 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 02 02 78 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 8D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 68 01 00 35 04 06 00 CF 9E 69 7B 5A 9E [19:16:32]Write to MH i2c: E2 80 00 88 03 80 0D 02 02 78 00 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 8D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 68 01 00 35 04 06 00 CF 9E 69 7B 5A 9E 00 00 73 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 03 02 [19:16:32]Write to MH i2c: E2 08 00 89 03 80 0D 03 02 00 00 00 00 07 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0B 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0B 00 89 03 00 6E EF D6 32 18 FE 98 BF 90 00 DA [19:16:32]RAPDU: 6E EF D6 32 18 FE 98 BF 90 00 [19:16:32]wFMCommunicate OK [19:16:32]SAM_PROTO_SignData done [19:16:32]FM_MakeSignedData done [19:16:32]CreateOFDProtocolMessage [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 11 00 00 [19:16:32]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 17 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5E [19:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:32]wFMCommunicate OK [19:16:32]CreateOFDProtocolMessage done [19:16:32]OFDSenderStorePacket 92300 [19:16:32]StoreOFDPacket docnum=92300 [19:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 82 01 00 00 FC 1D 7A 01 A3 93 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 8D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 68 01 00 35 04 06 00 CF 9E 69 7B 5A 9E 6E EF D6 32 18 FE 98 BF [19:16:32]CheckFolder [19:16:32]dirname=/storage/ofd_packets [19:16:32]CheckFolder done [19:16:32]ProducePacketName [19:16:32]name=ofd_packets/00092300 [19:16:32]NVStorageSaveData ofd_packets/00092300 [19:16:32]File name is /storage/ofd_packets/00092300 [19:16:32]Write 416 bytes [19:16:32]NVStorageSaveData done [19:16:32]OFDSenderStorePacket done [19:16:32]KKMCreateOFDPacket done [19:16:32]NVStorageSaveData kkm_last_timestamp [19:16:32]File name is /storage/kkm_last_timestamp [19:16:32]Write 4 bytes [19:16:32]NVStorageSaveData done [19:16:32]ExternCall_PrintAddStr [19:16:32]wPrintStart [19:16:32]Write to MH i2c: 01 00 00 8B 03 8E [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]OFD Sender: Processing packet 92300 [packets to send 63, broken 62] [19:16:32]ProducePacketName [19:16:32]name=ofd_packets/00092300 [19:16:32]OFD Sender: To server: pG, [19:16:32]CommunicateWithHost lk.salyk.kg:30040 [19:16:32]ConnectInit lk.salyk.kg [19:16:32]Read from MH i2c: 01 [19:16:32]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [19:16:33]RasterBufferAndPrint [19:16:33]line Счет N : (3)127230 [19:16:33]line ИНН: 02508201610067 [19:16:33]line Контрольно-Кассовый Чек [19:16:33]line ПРОДАЖА [19:16:33]line Товар: 4870001570057 [19:16:33]line Напиток Pepsi 0,5л [19:16:33]line 1.000 * 80.00 [19:16:33]line = 80.00 [19:16:33]line НДС 12% НСП 1% [19:16:33]line > о реализуемом товаре [19:16:33]line Товар: 40822938 [19:16:33]line Напиток Фанта 0,5л [19:16:33]line 1.000 * 75.00 [19:16:33]line = 75.00 [19:16:33]line НДС 12% НСП 1% [19:16:33]line > о реализуемом товаре [19:16:33]line ИТОГО: 155.00 [19:16:33]line НСП 1% : 1.37 [19:16:33]line НДС 12% : 16.46 [19:16:33]line Наличными: 155.00 [19:16:33]line Безнал.: 0.00 [19:16:33]line Место: АЗС № 5 "Партнер Нефть" [19:16:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:33]line СНО: Общий режим [19:16:33]line Чек 108 13.09.2024 19:16 [19:16:33]line Смена: 505 ФФД: 1.0 [19:16:33]line ЗНМ: 03000000022 [19:16:33]line РНМ: 0000000000091423 [19:16:33]line Версия ККМ: 001 [19:16:33]line ФМ: 0000000000874692 [19:16:33]line ФД: 92300 [19:16:33]line ФПД: 228279281474206 [19:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191629&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92300&fm=228279281474206&tin=02508201610067®Number=0000000000091423&sum=15500 [19:16:33]line 0 [19:16:33]Connected sock=10 [19:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 written 0, free lines is 4095 [19:16:33]30 30 30 38 37 34 36 39 32 82 01 00 00 FC 1D 7A 01 A3 93 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 8D 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 68 01 00 35 04 06 00 CF 9E 69 7B 5A 9E 6E EF D6 32 18 FE 98 BF [19:16:33]Write to MH i2c: 01 00 00 B9 03 BC [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 CA 0D 9A [19:16:33]RasterBufferAndPrint [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]written 0, free lines is 3602 [19:16:33]MH_Cut [19:16:33]Write to MH i2c: D1 01 00 C0 03 01 95 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 01 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 01 00 C0 03 00 94 [19:16:33]Write to MH i2c: 01 00 00 C1 03 C4 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 56 D4 47 00 89 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 34 36 39 32 10 04 04 00 8C 68 01 00 F4 03 04 00 0E 38 E4 66 B6 04 01 00 00 F5 B6 CA BD E6 A5 3A AC [19:16:34]CommunicateWithHost err = 0 [19:16:34]CheckOFDResponse [19:16:34]1017 (14) - 77093643461234 [19:16:34]1041 (16) - 0000000000874692 [19:16:34]1040 (4) - 92300 [19:16:34]1012 (4) - 13.09.2024 13:03 [19:16:34]1206 (1) - 0 [19:16:34]OFD Sender: Remove packet 92300 [19:16:34]ProducePacketName [19:16:34]name=ofd_packets/00092300 [19:16:34]NVStorageDeleteData [19:16:34]*** Cut start [19:16:34]*** Purtial cut [19:16:34]*** Stage 1: CUTSNS_PIN = 1 [19:16:34]OFD Sender: No OFD packet to send [19:16:36]Read from MH i2c: 01 [19:16:36]MH_I2C_Read... [19:16:36]*** Stop cut motor [19:16:36]*** Cut end [19:16:36]Read from MH i2c: 01 07 00 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [19:16:36]process_action close_receipt done [19:16:36]requested_data is exist [19:16:36]produce_requested_data [19:16:36]requested_item fm.sn is exist - process it [19:16:36]wFMCommunicate request_size=4 [19:16:36]MH_SAM_APDU [19:16:36]CAPDU: 80 11 00 00 [19:16:36]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [19:16:36]Write i2c OK [19:16:36]MH_I2C_Read... [19:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:36]Read from MH i2c: E2 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 17 00 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 96 [19:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:36]wFMCommunicate OK [19:16:36]requested_item fd.num is exist - process it [19:16:36]SAM_PROTO_GetFieldsCounters [19:16:36]wFMCommunicate request_size=4 [19:16:36]MH_SAM_APDU [19:16:36]CAPDU: 80 13 00 00 [19:16:36]Write to MH i2c: E2 08 00 C3 03 80 13 00 00 00 00 00 00 42 [19:16:36]Write i2c OK [19:16:36]MH_I2C_Read... [19:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:36]Read from MH i2c: E2 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 62 00 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 62 00 C3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [19:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8C 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:36]wFMCommunicate OK [19:16:36]SAM_PROTO_GetFieldsCounters done [19:16:36]requested_item shift.num is exist - process it [19:16:36]requested_item shift.opened is exist - process it [19:16:36]req_shift_opened [19:16:36]FM_GetShiftState [19:16:36]SAM_PROTO_GetShiftState [19:16:36]wFMCommunicate request_size=4 [19:16:36]MH_SAM_APDU [19:16:36]CAPDU: 80 13 01 00 [19:16:36]Write to MH i2c: E2 08 00 C4 03 80 13 01 00 00 00 00 00 44 [19:16:36]Write i2c OK [19:16:36]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 0E 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 0E 00 C4 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D0 [19:16:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:37]wFMCommunicate OK [19:16:37]SAM_PROTO_GetShiftState done [19:16:37]FM_GetShiftState done [19:16:37]req_shift_opened done [19:16:37]requested_item shift.open_date is exist - process it [19:16:37]req_shift_open_date [19:16:37]req_shift_open_date done [19:16:37]produce_requested_data done [19:16:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92300,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:37]process_action_free close_receipt [19:16:37]json_value_free [19:16:37]json_value_free done [19:16:37]process_json_proto returns [19:16:37]Send response to host [19:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92300,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:37]free response buf [19:16:37]execute_script done [19:16:37]execute_script returns [19:16:37]free content buf [19:16:37]Sock 8.Close socket [19:16:37]Sock 8.Thread stoped [19:16:39]OFD Sender: No OFD packet to send [19:16:40]accept exits with 9 [19:16:40]New connection [19:16:40]New thread 3067379044 created [19:16:40]Thread 3067235684 joined [19:16:40]Waiting for new connection... [19:16:40] Sock 9.Parse request [19:16:40]Sock 9.Check first char [19:16:40]Sock 9.First char is OK [19:16:40]request: POST /json_proto HTTP/1.0 [19:16:40]Method: POST [19:16:40]URL: /json_proto [19:16:40]Method is POST - this is cgi request [19:16:40]url: /json_proto [19:16:40]query_string will be loaded in cgi processing [19:16:40]execute_cgi json_proto POST (null) [19:16:40]execute_cgi path=json_proto method=POST [19:16:40]POST find Content-Length [19:16:40]Host: 172.17.57.71:8080 [19:16:40]Content-Length: 906 [19:16:40]Content-Type: application/json [19:16:40] [19:16:40]POST finish read [19:16:40]Found Content-Length = 906 [19:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127231", "tax_sys" : 0, "items" : [ { "code": "8690637820052", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida Cornetto Classico \u0414\u0432\u043E\u0439\u043D", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193107", "name": "\u041E\u0440\u0435\u043E\u0420\u043E\u0436\u043E\u043A 120\u0433", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:40]execute_script... [19: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 : (3)127231", "tax_sys" : 0, "items" : [ { "code": "8690637820052", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida Cornetto Classico \u0414\u0432\u043E\u0439\u043D", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193107", "name": "\u041E\u0440\u0435\u043E\u0420\u043E\u0436\u043E\u043A 120\u0433", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:40]POST & json_proto [19:16:40]process_json_proto [19:16:40]json parsed OK: [19:16:40]protocol is kg_v1.0 [19:16:40]action value=close_receipt [19:16:40]process_action close_receipt [19:16:40]cmd_close_receipt [19:16:40]MH_GetDate [19:16:40]Write to MH i2c: F0 00 00 C5 03 B7 [19:16:40]Write i2c OK [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: F0 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: F0 09 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: F0 09 00 C5 03 00 99 8F E4 66 33 3A A4 66 A9 [19:16:40]GetLastDocTimeStamp 1726254989 [19:16:40]current date 1726255001 [19:16:40]FM_GetShiftState [19:16:40]SAM_PROTO_GetShiftState [19:16:40]wFMCommunicate request_size=4 [19:16:40]MH_SAM_APDU [19:16:40]CAPDU: 80 13 01 00 [19:16:40]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [19:16:40]Write i2c OK [19:16:40]MH_I2C_Read... [19:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:40]Read from MH i2c: E2 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 0E 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D2 [19:16:40]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:40]wFMCommunicate OK [19:16:40]SAM_PROTO_GetShiftState done [19:16:40]FM_GetShiftState done [19:16:40]opened in 1726186930 [19:16:40]opened+sec_in_day 1726273330 [19:16:40]quantity*price = 10000 [19:16:40]sum+1 = 10001 [19:16:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620021193107 ОреоРожок 120г 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 109 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92301 ФПД: 189936162499993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191641&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92301&fm=189936162499993&tin=02508201610067®Number=0000000000091423&sum=25500 0 [19:16:42]StoreToDocumentArchive [19:16:42]shift 505 fd 92301 [19:16:42]save to /storage/0505/doc_00092301 [19:16:42]save last doc name /storage/0505/doc_00092301 to /storage/kkm_last_doc_name [19:16:42]save OK [19:16:42]Clear old archive folders... [19:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=392 [19:16:42]tlvbuf is 01410D00 [19:16:42]SAM_PROTO_ClearQueue [19:16:42]wFMCommunicate request_size=4 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 09 00 00 [19:16:42]Write to MH i2c: E2 08 00 D3 03 80 09 00 00 00 00 00 00 48 [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:42]Read from MH i2c: E2 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 03 00 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [19:16:42]RAPDU: 90 00 [19:16:42]wFMCommunicate OK [19:16:42]SAM_PROTO_ClearQueue done [19:16:42]KKMCreateOFDPacket [19:16:42]OFDProtocolAddRootSTLVToBuf [19:16:42]FM_MakeSignedData [19:16:42]FM_MakeSignedData [19:16:42]SAM_PROTO_SignData [19:16:42]wFMCommunicate request_size=4 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 0D 01 02 [19:16:42]Write to MH i2c: E2 08 00 D4 03 80 0D 01 02 00 00 00 00 50 [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:42]Read from MH i2c: E2 [19:16:42]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]wFMCommunicate request_size=255 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 30 37 06 04 18 00 D0 9E D1 80 D0 B5 D0 BE D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [19:16:43]Write to MH i2c: E2 02 01 D5 03 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 30 37 06 04 18 00 D0 9E D1 80 D0 B5 D0 BE D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 03 [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]wFMCommunicate request_size=151 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 99 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 68 01 00 35 04 06 00 AC BE F5 7E ED 99 [19:16:44]Write to MH i2c: E2 9A 00 D6 03 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 99 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 68 01 00 35 04 06 00 AC BE F5 7E ED 99 00 00 57 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [19:16:44]RAPDU: 90 00 [19:16:44]wFMCommunicate OK [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 0D 03 02 [19:16:44]Write to MH i2c: E2 08 00 D7 03 80 0D 03 02 00 00 00 00 55 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:44]OFD Sender: No OFD packet to send [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0B 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0B 00 D7 03 00 9E 37 A5 3D B3 F2 E7 14 90 00 AD [19:16:44]RAPDU: 9E 37 A5 3D B3 F2 E7 14 90 00 [19:16:44]wFMCommunicate OK [19:16:44]SAM_PROTO_SignData done [19:16:44]FM_MakeSignedData done [19:16:44]CreateOFDProtocolMessage [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 11 00 00 [19:16:44]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 17 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AC [19:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:44]wFMCommunicate OK [19:16:44]CreateOFDProtocolMessage done [19:16:44]OFDSenderStorePacket 92301 [19:16:44]StoreOFDPacket docnum=92301 [19:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 01 00 00 0D B9 94 01 F3 97 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 30 37 06 04 18 00 D0 9E D1 80 D0 B5 D0 BE D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 99 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 68 01 00 35 04 06 00 AC BE F5 7E ED 99 9E 37 A5 3D B3 F2 E7 14 [19:16:44]CheckFolder [19:16:44]dirname=/storage/ofd_packets [19:16:44]CheckFolder done [19:16:44]ProducePacketName [19:16:44]name=ofd_packets/00092301 [19:16:44]NVStorageSaveData ofd_packets/00092301 [19:16:44]File name is /storage/ofd_packets/00092301 [19:16:44]Write 442 bytes [19:16:44]NVStorageSaveData done [19:16:44]OFDSenderStorePacket done [19:16:44]KKMCreateOFDPacket done [19:16:44]NVStorageSaveData kkm_last_timestamp [19:16:44]File name is /storage/kkm_last_timestamp [19:16:44]Write 4 bytes [19:16:44]NVStorageSaveData done [19:16:44]ExternCall_PrintAddStr [19:16:44]wPrintStart [19:16:44]Write to MH i2c: 01 00 00 D9 03 DC [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [19:16:44]RasterBufferAndPrint [19:16:44]line Счет N : (3)127231 [19:16:44]line ИНН: 02508201610067 [19:16:44]line Контрольно-Кассовый Чек [19:16:44]line ПРОДАЖА [19:16:44]line Товар: 8690637820052 [19:16:44]line Мороженое Algida Cornetto Classico Двойн [19:16:44]line 1.000 * 100.00 [19:16:44]line = 100.00 [19:16:44]line НДС 12% НСП 1% [19:16:44]line > о реализуемом товаре [19:16:44]line Товар: 4620021193107 [19:16:44]line ОреоРожок 120г [19:16:44]line 1.000 * 155.00 [19:16:44]line = 155.00 [19:16:44]line НДС 12% НСП 1% [19:16:44]OFD Sender: Processing packet 92301 [packets to send 63, broken 62] [19:16:44]ProducePacketName [19:16:44]name=ofd_packets/00092301 [19:16:44]OFD Sender: To server: pG, [19:16:44]CommunicateWithHost lk.salyk.kg:30040 [19:16:44]ConnectInit lk.salyk.kg [19:16:44]line > о реализуемом товаре [19:16:44]line ИТОГО: 255.00 [19:16:44]line НСП 1% : 2.25 [19:16:44]line НДС 12% : 27.08 [19:16:44]line Наличными: 255.00 [19:16:44]line Безнал.: 0.00 [19:16:44]line Место: АЗС № 5 "Партнер Нефть" [19:16:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:44]line СНО: Общий режим [19:16:44]line Чек 109 13.09.2024 19:16 [19:16:44]line Смена: 505 ФФД: 1.0 [19:16:44]line ЗНМ: 03000000022 [19:16:44]line РНМ: 0000000000091423 [19:16:44]line Версия ККМ: 001 [19:16:44]line ФМ: 0000000000874692 [19:16:44]line ФД: 92301 [19:16:44]line ФПД: 189936162499993 [19:16:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191641&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92301&fm=189936162499993&tin=02508201610067®Number=0000000000091423&sum=25500 [19:16:45]line 0 [19:16:45]written 0, free lines is 4095 [19:16:45]Connected sock=10 [19:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 01 00 00 0D B9 94 01 F3 97 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 38 36 39 30 36 33 37 38 32 30 30 35 32 06 04 36 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 43 6F 72 6E 65 74 74 6F 20 43 6C 61 73 73 69 63 6F 20 D0 94 D0 B2 D0 BE D0 B9 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 30 37 06 04 18 00 D0 9E D1 80 D0 B5 D0 BE D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 99 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 68 Write to MH i2c: 01 01 00 00 35 00 04 06 00 AC BE F5 7E ED 99 08 9E 04 37 0C A5 [19:16:45]3D B3 F2 E7 14 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: 01 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: 01 07 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 10 0E 31 [19:16:45]RasterBufferAndPrint [19:16:45]line [19:16:45]line [19:16:45]line [19:16:45]line [19:16:45]line [19:16:45]written 0, free lines is 3691 [19:16:45]MH_Cut [19:16:45]Write to MH i2c: D1 01 00 0F 04 01 E5 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: D1 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: D1 01 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: D1 01 00 0F 04 00 E4 [19:16:45]Write to MH i2c: 01 00 00 10 04 14 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F8 E9 47 00 7B 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 68 01 00 F4 03 04 00 19 38 E4 66 B6 04 01 00 00 22 51 B4 33 6A 44 00 25 [19:16:46]CommunicateWithHost err = 0 [19:16:46]CheckOFDResponse [19:16:46]1017 (14) - 77093643461234 [19:16:46]1041 (16) - 0000000000874692 [19:16:46]1040 (4) - 92301 [19:16:46]1012 (4) - 13.09.2024 13:03 [19:16:46]1206 (1) - 0 [19:16:46]OFD Sender: Remove packet 92301 [19:16:46]ProducePacketName [19:16:46]name=ofd_packets/00092301 [19:16:46]NVStorageDeleteData [19:16:46]*** Cut start [19:16:46]*** Purtial cut [19:16:46]*** Stage 1: CUTSNS_PIN = 1 [19:16:46]OFD Sender: No OFD packet to send [19:16:48]Read from MH i2c: 01 [19:16:48]MH_I2C_Read... [19:16:48]*** Stop cut motor [19:16:48]*** Cut end [19:16:48]Read from MH i2c: 01 07 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 FF 0F 29 [19:16:48]process_action close_receipt done [19:16:48]requested_data is exist [19:16:48]produce_requested_data [19:16:48]requested_item fm.sn is exist - process it [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 11 00 00 [19:16:48]Write to MH i2c: E2 08 00 11 04 80 11 00 00 00 00 00 00 8F [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 11 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [19:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:48]wFMCommunicate OK [19:16:48]requested_item fd.num is exist - process it [19:16:48]SAM_PROTO_GetFieldsCounters [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 13 00 00 [19:16:48]Write to MH i2c: E2 08 00 12 04 80 13 00 00 00 00 00 00 92 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 62 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 62 00 12 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8D 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:48]wFMCommunicate OK [19:16:48]SAM_PROTO_GetFieldsCounters done [19:16:48]requested_item shift.num is exist - process it [19:16:48]requested_item shift.opened is exist - process it [19:16:48]req_shift_opened [19:16:48]FM_GetShiftState [19:16:48]SAM_PROTO_GetShiftState [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 13 01 00 [19:16:48]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0E 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 20 [19:16:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetShiftState done [19:16:49]FM_GetShiftState done [19:16:49]req_shift_opened done [19:16:49]requested_item shift.open_date is exist - process it [19:16:49]req_shift_open_date [19:16:49]req_shift_open_date done [19:16:49]produce_requested_data done [19:16:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92301,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:49]process_action_free close_receipt [19:16:49]json_value_free [19:16:49]json_value_free done [19:16:49]process_json_proto returns [19:16:49]Send response to host [19:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92301,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:49]free response buf [19:16:49]execute_script done [19:16:49]execute_script returns [19:16:49]free content buf [19:16:49]Sock 9.Close socket [19:16:49]Sock 9.Thread stoped [19:16:50]accept exits with 8 [19:16:50]New connection [19:16:50]New thread 3067235684 created [19:16:50]Thread 3067379044 joined [19:16:50]Waiting for new connection... [19:16:50] Sock 8.Parse request [19:16:50]Sock 8.Check first char [19:16:50]Sock 8.First char is OK [19:16:50]request: POST /json_proto HTTP/1.0 [19:16:50]Method: POST [19:16:50]URL: /json_proto [19:16:50]Method is POST - this is cgi request [19:16:50]url: /json_proto [19:16:50]query_string will be loaded in cgi processing [19:16:50]execute_cgi json_proto POST (null) [19:16:50]execute_cgi path=json_proto method=POST [19:16:50]POST find Content-Length [19:16:50]Host: 172.17.57.71:8080 [19:16:50]Content-Length: 632 [19:16:50]Content-Type: application/json [19:16:50] [19:16:50]POST finish read [19:16:50]Found Content-Length = 632 [19:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127232", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:50]execute_script... [19:16: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 : (3)127232", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:50]POST & json_proto [19:16:50]process_json_proto [19:16:50]json parsed OK: [19:16:50]protocol is kg_v1.0 [19:16:50]action value=close_receipt [19:16:50]process_action close_receipt [19:16:50]cmd_close_receipt [19:16:50]MH_GetDate [19:16:50]Write to MH i2c: F0 00 00 14 04 07 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: F0 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: F0 09 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: F0 09 00 14 04 00 A3 8F E4 66 33 3A A4 66 03 [19:16:50]GetLastDocTimeStamp 1726255001 [19:16:50]current date 1726255011 [19:16:50]FM_GetShiftState [19:16:50]SAM_PROTO_GetShiftState [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 13 01 00 [19:16:50]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0E 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 22 [19:16:50]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:50]wFMCommunicate OK [19:16:50]SAM_PROTO_GetShiftState done [19:16:50]FM_GetShiftState done [19:16:50]opened in 1726186930 [19:16:50]opened+sec_in_day 1726273330 [19:16:50]quantity*price = 16000 [19:16:50]sum+1 = 16001 [19:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 110 13.09.2024 19:16 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92302 ФПД: 209771565648853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191651&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92302&fm=209771565648853&tin=02508201610067®Number=0000000000091423&sum=16000 0 [19:16:52]StoreToDocumentArchive [19:16:52]shift 505 fd 92302 [19:16:52]save to /storage/0505/doc_00092302 [19:16:52]save last doc name /storage/0505/doc_00092302 to /storage/kkm_last_doc_name [19:16:52]save OK [19:16:52]Clear old archive folders... [19:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:16:52]tlvbuf is 0141ED30 [19:16:52]SAM_PROTO_ClearQueue [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 09 00 00 [19:16:52]Write to MH i2c: E2 08 00 22 04 80 09 00 00 00 00 00 00 98 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [19:16:53]RAPDU: 90 00 [19:16:53]wFMCommunicate OK [19:16:53]SAM_PROTO_ClearQueue done [19:16:53]KKMCreateOFDPacket [19:16:53]OFDProtocolAddRootSTLVToBuf [19:16:53]FM_MakeSignedData [19:16:53]FM_MakeSignedData [19:16:53]SAM_PROTO_SignData [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 0D 01 02 [19:16:53]Write to MH i2c: E2 08 00 23 04 80 0D 01 02 00 00 00 00 A0 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [19:16:53]RAPDU: 90 00 [19:16:53]wFMCommunicate OK [19:16:53]wFMCommunicate request_size=255 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 6E 00 00 00 F4 03 04 00 A3 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [19:16:53]Write to MH i2c: E2 02 01 24 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 6E 00 00 00 F4 03 04 00 A3 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 A4 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]wFMCommunicate request_size=35 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 68 01 00 35 04 06 00 BE C9 3F A7 8B D5 [19:16:54]Write to MH i2c: E2 26 00 25 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 68 01 00 35 04 06 00 BE C9 3F A7 8B D5 00 00 5E [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 0D 03 02 [19:16:54]Write to MH i2c: E2 08 00 26 04 80 0D 03 02 00 00 00 00 A5 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0B 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0B 00 26 04 00 03 12 00 FA 95 8F 4C 00 90 00 25 [19:16:54]RAPDU: 03 12 00 FA 95 8F 4C 00 90 00 [19:16:54]wFMCommunicate OK [19:16:54]SAM_PROTO_SignData done [19:16:54]FM_MakeSignedData done [19:16:54]CreateOFDProtocolMessage [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 11 00 00 [19:16:54]Write to MH i2c: E2 08 00 27 04 80 11 00 00 00 00 00 00 A5 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 17 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 17 00 27 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FC [19:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:54]wFMCommunicate OK [19:16:54]CreateOFDProtocolMessage done [19:16:54]OFDSenderStorePacket 92302 [19:16:54]StoreOFDPacket docnum=92302 [19:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 73 EC 20 01 03 16 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 6E 00 00 00 F4 03 04 00 A3 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 68 01 00 35 04 06 00 BE C9 3F A7 8B D5 03 12 00 FA 95 8F 4C 00 [19:16:54]CheckFolder [19:16:54]dirname=/storage/ofd_packets [19:16:54]CheckFolder done [19:16:54]ProducePacketName [19:16:54]name=ofd_packets/00092302 [19:16:54]NVStorageSaveData ofd_packets/00092302 [19:16:54]File name is /storage/ofd_packets/00092302 [19:16:54]Write 326 bytes [19:16:54]NVStorageSaveData done [19:16:54]OFDSenderStorePacket done [19:16:54]KKMCreateOFDPacket done [19:16:54]NVStorageSaveData kkm_last_timestamp [19:16:54]File name is /storage/kkm_last_timestamp [19:16:54]Write 4 bytes [19:16:54]NVStorageSaveData done [19:16:54]ExternCall_PrintAddStr [19:16:54]wPrintStart [19:16:54]Write to MH i2c: 01 00 00 28 04 2C [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 07 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [19:16:54]RasterBufferAndPrint [19:16:54]line Счет N : (3)127232 [19:16:54]line ИНН: 02508201610067 [19:16:54]line Контрольно-Кассовый Чек [19:16:54]line ПРОДАЖА [19:16:54]line Товар: 4780022460452 [19:16:54]line Антифриз Yumiko gold 1кг [19:16:54]line 1.000 * 160.00 [19:16:54]line = 160.00 [19:16:54]line НДС 12% НСП 1% [19:16:54]line > о реализуемом товаре [19:16:54]line ИТОГО: 160.00 [19:16:54]line НСП 1% : 1.42 [19:16:54]line НДС 12% : 16.99 [19:16:54]line Наличными: 160.00 [19:16:54]line Безнал.: 0.00 [19:16:54]line Место: АЗС № 5 "Партнер Нефть" [19:16:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:16:54]line СНО: Общий режим [19:16:54]line Чек 110 13.09.2024 19:16 [19:16:54]line Смена: 505 ФФД: 1.0 [19:16:54]line ЗНМ: 03000000022 [19:16:54]line РНМ: 0000000000091423 [19:16:54]line Версия ККМ: 001 [19:16:54]line ФМ: 0000000000874692 [19:16:54]line ФД: 92302 [19:16:54]line ФПД: 209771565648853 [19:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191651&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92302&fm=209771565648853&tin=02508201610067®Number=0000000000091423&sum=16000 [19:16:54]line 0 [19:16:54]OFD Sender: Processing packet 92302 [packets to send 63, broken 62] [19:16:54]ProducePacketName [19:16:54]name=ofd_packets/00092302 [19:16:54]OFD Sender: To server: pG, [19:16:54]CommunicateWithHost lk.salyk.kg:30040 [19:16:54]ConnectInit lk.salyk.kg [19:16:54]written 0, free lines is 4095 [19:16:54]Connected sock=10 [19:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 73 EC 20 01 03 16 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 6E 00 00 00 F4 03 04 00 A3 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 30 00 30 50 39 04 31 54 34 [19:16:55]32 Write i2c OK [19:16:55]33 MH_I2C_Read... [19:16:55]11 04 10 00 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 [19:16:55]30 MH_I2C_Read... [19:16:55]38 Read from MH i2c: 37 01 34 07 36 00 39 [19:16:55]32 MH_I2C_Read... [19:16:55]10 04 04 00 8E 68 01 00 35 04 06 00 Read from MH i2c: BE 01 C9 07 3F 00 A7 50 8B 04 D5 00 03 00 12 00 00 00 FA 00 95 A8 8F 0D 4C 10 00 [19:16:55] [19:16:55]RasterBufferAndPrint [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]written 0, free lines is 3741 [19:16:55]MH_Cut [19:16:55]Write to MH i2c: D1 01 00 57 04 01 2D [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 01 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 01 00 57 04 00 2C [19:16:55]Write to MH i2c: 01 00 00 58 04 5C [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 95 D8 47 00 6E 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 68 01 00 F4 03 04 00 23 38 E4 66 B6 04 01 00 00 90 91 E1 27 10 D2 D6 3B [19:16:55]CommunicateWithHost err = 0 [19:16:55]CheckOFDResponse [19:16:55]1017 (14) - 77093643461234 [19:16:55]1041 (16) - 0000000000874692 [19:16:55]1040 (4) - 92302 [19:16:55]1012 (4) - 13.09.2024 13:03 [19:16:55]1206 (1) - 0 [19:16:55]OFD Sender: Remove packet 92302 [19:16:55]ProducePacketName [19:16:55]name=ofd_packets/00092302 [19:16:55]NVStorageDeleteData [19:16:55]*** Cut start [19:16:55]*** Purtial cut [19:16:55]*** Stage 1: CUTSNS_PIN = 1 [19:16:56]OFD Sender: No OFD packet to send [19:16:57]Read from MH i2c: 01 [19:16:57]MH_I2C_Read... [19:16:58]*** Stop cut motor [19:16:58]*** Cut end [19:16:58]Read from MH i2c: 01 07 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [19:16:58]process_action close_receipt done [19:16:58]requested_data is exist [19:16:58]produce_requested_data [19:16:58]requested_item fm.sn is exist - process it [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 11 00 00 [19:16:58]Write to MH i2c: E2 08 00 59 04 80 11 00 00 00 00 00 00 D7 [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 17 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 17 00 59 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [19:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:16:58]wFMCommunicate OK [19:16:58]requested_item fd.num is exist - process it [19:16:58]SAM_PROTO_GetFieldsCounters [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 13 00 00 [19:16:58]Write to MH i2c: E2 08 00 5A 04 80 13 00 00 00 00 00 00 DA [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 62 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 62 00 5A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8E 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:58]wFMCommunicate OK [19:16:58]SAM_PROTO_GetFieldsCounters done [19:16:58]requested_item shift.num is exist - process it [19:16:58]requested_item shift.opened is exist - process it [19:16:58]req_shift_opened [19:16:58]FM_GetShiftState [19:16:58]SAM_PROTO_GetShiftState [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 13 01 00 [19:16:58]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 0E 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 68 [19:16:58]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:16:58]wFMCommunicate OK [19:16:58]SAM_PROTO_GetShiftState done [19:16:58]FM_GetShiftState done [19:16:58]req_shift_opened done [19:16:58]requested_item shift.open_date is exist - process it [19:16:58]req_shift_open_date [19:16:58]req_shift_open_date done [19:16:58]produce_requested_data done [19:16:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92302,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:16:58]process_action_free close_receipt [19:16:58]json_value_free [19:16:58]json_value_free done [19:16:58]process_json_proto returns [19:16:58]Send response to host [19:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92302,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:16:58]free response buf [19:16:58]execute_script done [19:16:58]execute_script returns [19:16:58]free content buf [19:16:58]Sock 8.Close socket [19:16:58]Sock 8.Thread stoped [19:17:01]OFD Sender: No OFD packet to send [19:17:02]accept exits with 9 [19:17:02]New connection [19:17:02]New thread 3067379044 created [19:17:02]Thread 3067235684 joined [19:17:02]Waiting for new connection... [19:17:02] Sock 9.Parse request [19:17:02]Sock 9.Check first char [19:17:02]Sock 9.First char is OK [19:17:02]request: POST /json_proto HTTP/1.0 [19:17:02]Method: POST [19:17:02]URL: /json_proto [19:17:02]Method is POST - this is cgi request [19:17:02]url: /json_proto [19:17:02]query_string will be loaded in cgi processing [19:17:02]execute_cgi json_proto POST (null) [19:17:02]execute_cgi path=json_proto method=POST [19:17:02]POST find Content-Length [19:17:02]Host: 172.17.57.71:8080 [19:17:02]Content-Length: 623 [19:17:02]Content-Type: application/json [19:17:02] [19:17:02]POST finish read [19:17:02]Found Content-Length = 623 [19:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127233", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:02]execute_script... [19:17: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 : (3)127233", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:02]POST & json_proto [19:17:02]process_json_proto [19:17:02]json parsed OK: [19:17:02]protocol is kg_v1.0 [19:17:02]action value=close_receipt [19:17:02]process_action close_receipt [19:17:02]cmd_close_receipt [19:17:02]MH_GetDate [19:17:02]Write to MH i2c: F0 00 00 5C 04 4F [19:17:02]Write i2c OK [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 09 00 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 09 00 5C 04 00 AE 8F E4 66 33 3A A4 66 56 [19:17:02]GetLastDocTimeStamp 1726255011 [19:17:02]current date 1726255022 [19:17:02]FM_GetShiftState [19:17:02]SAM_PROTO_GetShiftState [19:17:02]wFMCommunicate request_size=4 [19:17:02]MH_SAM_APDU [19:17:02]CAPDU: 80 13 01 00 [19:17:02]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [19:17:02]Write i2c OK [19:17:02]MH_I2C_Read... [19:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:02]Read from MH i2c: E2 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: E2 0E 00 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 6A [19:17:02]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:02]wFMCommunicate OK [19:17:02]SAM_PROTO_GetShiftState done [19:17:02]FM_GetShiftState done [19:17:02]opened in 1726186930 [19:17:02]opened+sec_in_day 1726273330 [19:17:02]quantity*price = 14400 [19:17:02]sum+1 = 14401 [19:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 111 13.09.2024 19:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92303 ФПД: 184917612147442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191703&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92303&fm=184917612147442&tin=02508201610067®Number=0000000000091423&sum=14400 0 [19:17:04]StoreToDocumentArchive [19:17:04]shift 505 fd 92303 [19:17:04]save to /storage/0505/doc_00092303 [19:17:04]save last doc name /storage/0505/doc_00092303 to /storage/kkm_last_doc_name [19:17:04]save OK [19:17:04]Clear old archive folders... [19:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:17:04]tlvbuf is 012BE000 [19:17:04]SAM_PROTO_ClearQueue [19:17:04]wFMCommunicate request_size=4 [19:17:04]MH_SAM_APDU [19:17:04]CAPDU: 80 09 00 00 [19:17:04]Write to MH i2c: E2 08 00 6A 04 80 09 00 00 00 00 00 00 E0 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:04]Read from MH i2c: E2 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 03 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [19:17:04]RAPDU: 90 00 [19:17:04]wFMCommunicate OK [19:17:04]SAM_PROTO_ClearQueue done [19:17:04]KKMCreateOFDPacket [19:17:04]OFDProtocolAddRootSTLVToBuf [19:17:04]FM_MakeSignedData [19:17:04]FM_MakeSignedData [19:17:04]SAM_PROTO_SignData [19:17:04]wFMCommunicate request_size=4 [19:17:04]MH_SAM_APDU [19:17:04]CAPDU: 80 0D 01 02 [19:17:04]Write to MH i2c: E2 08 00 6B 04 80 0D 01 02 00 00 00 00 E8 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:04]Read from MH i2c: E2 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 03 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [19:17:04]RAPDU: 90 00 [19:17:04]wFMCommunicate OK [19:17:04]wFMCommunicate request_size=255 [19:17:04]MH_SAM_APDU [19:17:04]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AF 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [19:17:05]Write to MH i2c: E2 02 01 6C 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AF 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 D8 [19:17:05]Write i2c OK [19:17:05]MH_I2C_Read... [19:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:05]Read from MH i2c: E2 [19:17:05]MH_I2C_Read... [19:17:05]Read from MH i2c: E2 03 00 [19:17:05]MH_I2C_Read... [19:17:05]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [19:17:05]RAPDU: 90 00 [19:17:05]wFMCommunicate OK [19:17:05]wFMCommunicate request_size=34 [19:17:05]MH_SAM_APDU [19:17:05]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 68 01 00 35 04 06 00 A8 2E 7C 95 B2 F2 [19:17:05]Write to MH i2c: E2 25 00 6D 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 68 01 00 35 04 06 00 A8 2E 7C 95 B2 F2 00 00 33 [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 03 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [19:17:06]RAPDU: 90 00 [19:17:06]wFMCommunicate OK [19:17:06]wFMCommunicate request_size=4 [19:17:06]MH_SAM_APDU [19:17:06]CAPDU: 80 0D 03 02 [19:17:06]Write to MH i2c: E2 08 00 6E 04 80 0D 03 02 00 00 00 00 ED [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0B 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0B 00 6E 04 00 DA 3B CD 4E 3E 2C 78 A3 90 00 A3 [19:17:06]RAPDU: DA 3B CD 4E 3E 2C 78 A3 90 00 [19:17:06]wFMCommunicate OK [19:17:06]SAM_PROTO_SignData done [19:17:06]FM_MakeSignedData done [19:17:06]CreateOFDProtocolMessage [19:17:06]wFMCommunicate request_size=4 [19:17:06]MH_SAM_APDU [19:17:06]CAPDU: 80 11 00 00 [19:17:06]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 17 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [19:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:06]wFMCommunicate OK [19:17:06]CreateOFDProtocolMessage done [19:17:06]OFDSenderStorePacket 92303 [19:17:06]StoreOFDPacket docnum=92303 [19:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 88 EE 1F 01 37 06 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AF 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 68 01 00 35 04 06 00 A8 2E 7C 95 B2 F2 DA 3B CD 4E 3E 2C 78 A3 [19:17:06]CheckFolder [19:17:06]dirname=/storage/ofd_packets [19:17:06]CheckFolder done [19:17:06]ProducePacketName [19:17:06]name=ofd_packets/00092303 [19:17:06]NVStorageSaveData ofd_packets/00092303 [19:17:06]File name is /storage/ofd_packets/00092303 [19:17:06]Write 325 bytes [19:17:06]NVStorageSaveData done [19:17:06]OFDSenderStorePacket done [19:17:06]KKMCreateOFDPacket done [19:17:06]NVStorageSaveData kkm_last_timestamp [19:17:06]File name is /storage/kkm_last_timestamp [19:17:06]Write 4 bytes [19:17:06]NVStorageSaveData done [19:17:06]ExternCall_PrintAddStr [19:17:06]wPrintStart [19:17:06]Write to MH i2c: 01 00 00 70 04 74 [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: 01 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: 01 07 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [19:17:06]RasterBufferAndPrint [19:17:06]line Счет N : (3)127233 [19:17:06]line ИНН: 02508201610067 [19:17:06]line Контрольно-Кассовый Чек [19:17:06]line ПРОДАЖА [19:17:06]line Товар: 48743587 [19:17:06]line Сигареты Winston XStyle Silver [19:17:06]line 1.000 * 144.00 [19:17:06]line = 144.00 [19:17:06]line НДС 12% НСП 1% [19:17:06]line > о реализуемом товаре [19:17:06]line ИТОГО: 144.00 [19:17:06]line НСП 1% : 1.27 [19:17:06]line НДС 12% : 15.29 [19:17:06]line Наличными: 144.00 [19:17:06]line Безнал.: 0.00 [19:17:06]line Место: АЗС № 5 "Партнер Нефть" [19:17:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:17:06]OFD Sender: Processing packet 92303 [packets to send 63, broken 62] [19:17:06]line СНО: Общий режим [19:17:06]ProducePacketName [19:17:06]line Чек 111 13.09.2024 19:17 [19:17:06]name=ofd_packets/00092303 [19:17:06]line Смена: 505 ФФД: 1.0 [19:17:06]OFD Sender: To server: pG, [19:17:06]line ЗНМ: 03000000022 [19:17:06]CommunicateWithHost lk.salyk.kg:30040 [19:17:06]line РНМ: 0000000000091423 [19:17:06]ConnectInit lk.salyk.kg [19:17:06]line Версия ККМ: 001 [19:17:06]line ФМ: 0000000000874692 [19:17:06]line ФД: 92303 [19:17:06]line ФПД: 184917612147442 [19:17:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191703&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92303&fm=184917612147442&tin=02508201610067®Number=0000000000091423&sum=14400 [19:17:06]line 0 [19:17:06]written 0, free lines is 4095 [19:17:06]Connected sock=10 [19:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 88 EE 1F 01 37 06 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AF 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 68 01 00 35 04 06 00 A8 2E 7C 95 B2 F2 Write to MH i2c: DA 01 3B 00 CD 00 4E 3E 2C 78 A3 [19:17:07]99 04 9D [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: 01 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: 01 07 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 45 0E F7 [19:17:07]RasterBufferAndPrint [19:17:07]line [19:17:07]line [19:17:07]line [19:17:07]line [19:17:07]line [19:17:07]written 0, free lines is 3736 [19:17:07]MH_Cut [19:17:07]Write to MH i2c: D1 01 00 A0 04 01 76 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: D1 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: D1 01 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: D1 01 00 A0 04 00 75 [19:17:07]Write to MH i2c: 01 00 00 A1 04 A5 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 42 44 47 00 F5 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 68 01 00 F4 03 04 00 2F 38 E4 66 B6 04 01 00 00 5C 5C 4D F4 43 CB 28 9F [19:17:07]CommunicateWithHost err = 0 [19:17:07]CheckOFDResponse [19:17:07]1017 (14) - 77093643461234 [19:17:07]1041 (16) - 0000000000874692 [19:17:07]1040 (4) - 92303 [19:17:07]1012 (4) - 13.09.2024 13:03 [19:17:07]1206 (1) - 0 [19:17:07]OFD Sender: Remove packet 92303 [19:17:07]ProducePacketName [19:17:07]name=ofd_packets/00092303 [19:17:07]NVStorageDeleteData [19:17:07]*** Cut start [19:17:07]*** Purtial cut [19:17:07]*** Stage 1: CUTSNS_PIN = 1 [19:17:08]OFD Sender: No OFD packet to send [19:17:09]Read from MH i2c: 01 [19:17:09]MH_I2C_Read... [19:17:09]*** Stop cut motor [19:17:09]*** Cut end [19:17:09]Read from MH i2c: 01 07 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [19:17:09]process_action close_receipt done [19:17:09]requested_data is exist [19:17:09]produce_requested_data [19:17:09]requested_item fm.sn is exist - process it [19:17:09]wFMCommunicate request_size=4 [19:17:09]MH_SAM_APDU [19:17:09]CAPDU: 80 11 00 00 [19:17:09]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:09]Read from MH i2c: E2 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 17 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 77 [19:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:09]wFMCommunicate OK [19:17:09]requested_item fd.num is exist - process it [19:17:09]SAM_PROTO_GetFieldsCounters [19:17:09]wFMCommunicate request_size=4 [19:17:09]MH_SAM_APDU [19:17:09]CAPDU: 80 13 00 00 [19:17:09]Write to MH i2c: E2 08 00 A3 04 80 13 00 00 00 00 00 00 23 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 A3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8F 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetFieldsCounters done [19:17:10]requested_item shift.num is exist - process it [19:17:10]requested_item shift.opened is exist - process it [19:17:10]req_shift_opened [19:17:10]FM_GetShiftState [19:17:10]SAM_PROTO_GetShiftState [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 13 01 00 [19:17:10]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B1 [19:17:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetShiftState done [19:17:10]FM_GetShiftState done [19:17:10]req_shift_opened done [19:17:10]requested_item shift.open_date is exist - process it [19:17:10]req_shift_open_date [19:17:10]req_shift_open_date done [19:17:10]produce_requested_data done [19:17:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92303,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:17:10]process_action_free close_receipt [19:17:10]json_value_free [19:17:10]json_value_free done [19:17:10]process_json_proto returns [19:17:10]Send response to host [19:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92303,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:17:10]free response buf [19:17:10]execute_script done [19:17:10]execute_script returns [19:17:10]free content buf [19:17:10]Sock 9.Close socket [19:17:10]Sock 9.Thread stoped [19:17:13]OFD Sender: No OFD packet to send [19:17:14]accept exits with 8 [19:17:14]New connection [19:17:14]New thread 3067235684 created [19:17:14]Thread 3067379044 joined [19:17:14]Waiting for new connection... [19:17:14] Sock 8.Parse request [19:17:14]Sock 8.Check first char [19:17:14]Sock 8.First char is OK [19:17:14]request: POST /json_proto HTTP/1.0 [19:17:14]Method: POST [19:17:14]URL: /json_proto [19:17:14]Method is POST - this is cgi request [19:17:14]url: /json_proto [19:17:14]query_string will be loaded in cgi processing [19:17:14]execute_cgi json_proto POST (null) [19:17:14]execute_cgi path=json_proto method=POST [19:17:14]POST find Content-Length [19:17:14]Host: 172.17.57.71:8080 [19:17:14]Content-Length: 642 [19:17:14]Content-Type: application/json [19:17:14] [19:17:14]POST finish read [19:17:14]Found Content-Length = 642 [19:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127234", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 2.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:14]execute_script... [19:17: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 : (3)127234", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 2.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:14]POST & json_proto [19:17:14]process_json_proto [19:17:14]json parsed OK: [19:17:14]protocol is kg_v1.0 [19:17:14]action value=close_receipt [19:17:14]process_action close_receipt [19:17:14]cmd_close_receipt [19:17:14]MH_GetDate [19:17:14]Write to MH i2c: F0 00 00 A5 04 98 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 09 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 09 00 A5 04 00 BB 8F E4 66 33 3A A4 66 AC [19:17:14]GetLastDocTimeStamp 1726255023 [19:17:14]current date 1726255035 [19:17:14]FM_GetShiftState [19:17:14]SAM_PROTO_GetShiftState [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 13 01 00 [19:17:14]Write to MH i2c: E2 08 00 A6 04 80 13 01 00 00 00 00 00 27 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 A6 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B3 [19:17:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetShiftState done [19:17:14]FM_GetShiftState done [19:17:14]opened in 1726186930 [19:17:14]opened+sec_in_day 1726273330 [19:17:14]quantity*price = 39000 [19:17:14]sum+1 = 39001 [19:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 112 13.09.2024 19:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92304 ФПД: 260194493609485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191715&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92304&fm=260194493609485&tin=02508201610067®Number=0000000000091423&sum=39000 0 [19:17:16]StoreToDocumentArchive [19:17:16]shift 505 fd 92304 [19:17:16]save to /storage/0505/doc_00092304 [19:17:16]save last doc name /storage/0505/doc_00092304 to /storage/kkm_last_doc_name [19:17:16]save OK [19:17:16]Clear old archive folders... [19:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=270 [19:17:16]tlvbuf is 012BDE10 [19:17:16]SAM_PROTO_ClearQueue [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 09 00 00 [19:17:16]Write to MH i2c: E2 08 00 B3 04 80 09 00 00 00 00 00 00 29 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [19:17:17]RAPDU: 90 00 [19:17:17]wFMCommunicate OK [19:17:17]SAM_PROTO_ClearQueue done [19:17:17]KKMCreateOFDPacket [19:17:17]OFDProtocolAddRootSTLVToBuf [19:17:17]FM_MakeSignedData [19:17:17]FM_MakeSignedData [19:17:17]SAM_PROTO_SignData [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 0D 01 02 [19:17:17]Write to MH i2c: E2 08 00 B4 04 80 0D 01 02 00 00 00 00 31 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [19:17:17]RAPDU: 90 00 [19:17:17]wFMCommunicate OK [19:17:17]wFMCommunicate request_size=255 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 BB 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:17:17]Write to MH i2c: E2 02 01 B5 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 BB 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 56 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:18]OFD Sender: No OFD packet to send [19:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [19:17:18]RAPDU: 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=29 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 90 68 01 00 35 04 06 00 EC A5 40 5D 36 0D [19:17:18]Write to MH i2c: E2 20 00 B6 04 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 90 68 01 00 35 04 06 00 EC A5 40 5D 36 0D 00 00 69 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [19:17:18]RAPDU: 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 0D 03 02 [19:17:18]Write to MH i2c: E2 08 00 B7 04 80 0D 03 02 00 00 00 00 36 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 0B 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 0B 00 B7 04 00 59 43 46 CB 88 21 54 FB 90 00 DC [19:17:18]RAPDU: 59 43 46 CB 88 21 54 FB 90 00 [19:17:18]wFMCommunicate OK [19:17:18]SAM_PROTO_SignData done [19:17:18]FM_MakeSignedData done [19:17:18]CreateOFDProtocolMessage [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 11 00 00 [19:17:18]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 17 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8D [19:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:18]wFMCommunicate OK [19:17:18]CreateOFDProtocolMessage done [19:17:18]OFDSenderStorePacket 92304 [19:17:18]StoreOFDPacket docnum=92304 [19:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 ED 44 1A 01 28 68 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 BB 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 68 01 00 35 04 06 00 EC A5 40 5D 36 0D 59 43 46 CB 88 21 54 FB [19:17:18]CheckFolder [19:17:18]dirname=/storage/ofd_packets [19:17:18]CheckFolder done [19:17:18]ProducePacketName [19:17:18]name=ofd_packets/00092304 [19:17:18]NVStorageSaveData ofd_packets/00092304 [19:17:18]File name is /storage/ofd_packets/00092304 [19:17:18]Write 320 bytes [19:17:18]NVStorageSaveData done [19:17:18]OFDSenderStorePacket done [19:17:18]KKMCreateOFDPacket done [19:17:18]NVStorageSaveData kkm_last_timestamp [19:17:18]File name is /storage/kkm_last_timestamp [19:17:18]Write 4 bytes [19:17:18]NVStorageSaveData done [19:17:18]ExternCall_PrintAddStr [19:17:18]wPrintStart [19:17:18]Write to MH i2c: 01 00 00 B9 04 BD [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 07 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [19:17:18]RasterBufferAndPrint [19:17:18]line Счет N : (3)127234 [19:17:18]line ИНН: 02508201610067 [19:17:18]line Контрольно-Кассовый Чек [19:17:18]line ПРОДАЖА [19:17:18]line Товар: 58411125749 [19:17:18]line Те самые макарон [19:17:18]line 2.000 * 195.00 [19:17:18]line = 390.00 [19:17:18]line НДС 12% НСП 1% [19:17:18]line > о реализуемом товаре [19:17:18]line ИТОГО: 390.00 [19:17:18]line НСП 1% : 3.45 [19:17:18]line НДС 12% : 41.42 [19:17:18]line Наличными: 390.00 [19:17:18]line Безнал.: 0.00 [19:17:18]line Место: АЗС № 5 "Партнер Нефть" [19:17:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:17:18]line СНО: Общий режим [19:17:18]line Чек 112 13.09.2024 19:17 [19:17:18]line Смена: 505 ФФД: 1.0 [19:17:18]line ЗНМ: 03000000022 [19:17:18]line РНМ: 0000000000091423 [19:17:18]line Версия ККМ: 001 [19:17:18]line ФМ: 0000000000874692 [19:17:18]line ФД: 92304 [19:17:18]line ФПД: 260194493609485 [19:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191715&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92304&fm=260194493609485&tin=02508201610067®Number=0000000000091423&sum=39000 [19:17:18]line 0 [19:17:18]OFD Sender: Processing packet 92304 [packets to send 63, broken 62] [19:17:18]ProducePacketName [19:17:18]name=ofd_packets/00092304 [19:17:18]OFD Sender: To server: pG, [19:17:18]CommunicateWithHost lk.salyk.kg:30040 [19:17:18]ConnectInit lk.salyk.kg [19:17:18]written 0, free lines is 4095 [19:17:18]Connected sock=10 [19:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 ED 44 1A 01 28 68 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 BB 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 Write to MH i2c: 32 01 10 00 04 00 04 E1 00 04 90 E5 68 01 00 35 04 06 00 EC [19:17:19]A5 Write i2c OK [19:17:19]40 MH_I2C_Read... [19:17:19]5D Read from MH i2c: 36 01 0D [19:17:19]59 MH_I2C_Read... [19:17:19]43 46 CB 88 21 54 FB Read from MH i2c: [19:17:19]01 07 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 80 0E 7A [19:17:19]RasterBufferAndPrint [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]written 0, free lines is 3845 [19:17:19]MH_Cut [19:17:19]Write to MH i2c: D1 01 00 E8 04 01 BE [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 01 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 01 00 E8 04 00 BD [19:17:19]Write to MH i2c: 01 00 00 E9 04 ED [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C AD 47 00 27 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 *** Cut start [19:17:19]30 30 30 30 *** Purtial cut [19:17:19]30 *** Stage 1: CUTSNS_PIN = 1 [19:17:19]30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 68 01 00 F4 03 04 00 3B 38 E4 66 B6 04 01 00 00 6E 89 6E 78 7B F0 52 0A [19:17:20]CommunicateWithHost err = 0 [19:17:20]CheckOFDResponse [19:17:20]1017 (14) - 77093643461234 [19:17:20]1041 (16) - 0000000000874692 [19:17:20]1040 (4) - 92304 [19:17:20]1012 (4) - 13.09.2024 13:03 [19:17:20]1206 (1) - 0 [19:17:20]OFD Sender: Remove packet 92304 [19:17:20]ProducePacketName [19:17:20]name=ofd_packets/00092304 [19:17:20]NVStorageDeleteData [19:17:20]OFD Sender: No OFD packet to send [19:17:21]Read from MH i2c: *** Stop cut motor [19:17:21]01 *** Cut end [19:17:21] [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [19:17:22]process_action close_receipt done [19:17:22]requested_data is exist [19:17:22]produce_requested_data [19:17:22]requested_item fm.sn is exist - process it [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 11 00 00 [19:17:22]Write to MH i2c: E2 08 00 EA 04 80 11 00 00 00 00 00 00 68 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 17 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 17 00 EA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [19:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:22]wFMCommunicate OK [19:17:22]requested_item fd.num is exist - process it [19:17:22]SAM_PROTO_GetFieldsCounters [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 00 00 [19:17:22]Write to MH i2c: E2 08 00 EB 04 80 13 00 00 00 00 00 00 6B [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 EB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 90 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 90 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetFieldsCounters done [19:17:22]requested_item shift.num is exist - process it [19:17:22]requested_item shift.opened is exist - process it [19:17:22]req_shift_opened [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F9 [19:17:22]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetShiftState done [19:17:22]FM_GetShiftState done [19:17:22]req_shift_opened done [19:17:22]requested_item shift.open_date is exist - process it [19:17:22]req_shift_open_date [19:17:22]req_shift_open_date done [19:17:22]produce_requested_data done [19:17:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92304,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:17:22]process_action_free close_receipt [19:17:22]json_value_free [19:17:22]json_value_free done [19:17:22]process_json_proto returns [19:17:22]Send response to host [19:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92304,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:17:22]free response buf [19:17:22]execute_script done [19:17:22]execute_script returns [19:17:22]free content buf [19:17:22]Sock 8.Close socket [19:17:22]Sock 8.Thread stoped [19:17:24]accept exits with 9 [19:17:24]New connection [19:17:24]New thread 3067379044 created [19:17:24]Thread 3067235684 joined [19:17:24]Waiting for new connection... [19:17:24] Sock 9.Parse request [19:17:24]Sock 9.Check first char [19:17:24]Sock 9.First char is OK [19:17:24]request: POST /json_proto HTTP/1.0 [19:17:24]Method: POST [19:17:24]URL: /json_proto [19:17:24]Method is POST - this is cgi request [19:17:24]url: /json_proto [19:17:24]query_string will be loaded in cgi processing [19:17:24]execute_cgi json_proto POST (null) [19:17:24]execute_cgi path=json_proto method=POST [19:17:24]POST find Content-Length [19:17:24]Host: 172.17.57.71:8080 [19:17:24]Content-Length: 622 [19:17:24]Content-Type: application/json [19:17:24] [19:17:24]POST finish read [19:17:24]Found Content-Length = 622 [19:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127235", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:24]execute_script... [19:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127235", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:24]POST & json_proto [19:17:24]process_json_proto [19:17:24]json parsed OK: [19:17:24]protocol is kg_v1.0 [19:17:24]action value=close_receipt [19:17:24]process_action close_receipt [19:17:24]cmd_close_receipt [19:17:24]MH_GetDate [19:17:24]Write to MH i2c: F0 00 00 ED 04 E0 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: F0 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: F0 09 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: F0 09 00 ED 04 00 C5 8F E4 66 33 3A A4 66 FE [19:17:24]GetLastDocTimeStamp 1726255035 [19:17:24]current date 1726255045 [19:17:24]FM_GetShiftState [19:17:24]SAM_PROTO_GetShiftState [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 13 01 00 [19:17:24]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0E 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 FB [19:17:24]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:24]wFMCommunicate OK [19:17:24]SAM_PROTO_GetShiftState done [19:17:24]FM_GetShiftState done [19:17:24]opened in 1726186930 [19:17:24]opened+sec_in_day 1726273330 [19:17:24]quantity*price = 15000 [19:17:24]sum+1 = 15001 [19:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 113 13.09.2024 19:17 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92305 ФПД: 152539341611785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191725&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92305&fm=152539341611785&tin=02508201610067®Number=0000000000091423&sum=15000 0 [19:17:27]StoreToDocumentArchive [19:17:27]shift 505 fd 92305 [19:17:27]save to /storage/0505/doc_00092305 [19:17:27]save last doc name /storage/0505/doc_00092305 to /storage/kkm_last_doc_name [19:17:27]save OK [19:17:27]Clear old archive folders... [19:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:17:27]tlvbuf is 012C78B0 [19:17:27]SAM_PROTO_ClearQueue [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 09 00 00 [19:17:27]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 03 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [19:17:27]RAPDU: 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_ClearQueue done [19:17:27]KKMCreateOFDPacket [19:17:27]OFDProtocolAddRootSTLVToBuf [19:17:27]FM_MakeSignedData [19:17:27]FM_MakeSignedData [19:17:27]SAM_PROTO_SignData [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 0D 01 02 [19:17:27]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 03 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [19:17:27]RAPDU: 90 00 [19:17:27]wFMCommunicate OK [19:17:27]wFMCommunicate request_size=255 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C5 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [19:17:28]Write to MH i2c: E2 02 01 FD 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C5 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 19 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=33 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 68 01 00 35 04 06 00 8A BB D5 45 63 09 [19:17:28]Write to MH i2c: E2 24 00 FE 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 68 01 00 35 04 06 00 8A BB D5 45 63 09 00 00 D4 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 0D 03 02 [19:17:28]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:29]Read from MH i2c: E2 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0B 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0B 00 FF 04 00 09 E5 1B 15 89 A7 BC 3E 90 00 C7 [19:17:29]RAPDU: 09 E5 1B 15 89 A7 BC 3E 90 00 [19:17:29]wFMCommunicate OK [19:17:29]SAM_PROTO_SignData done [19:17:29]FM_MakeSignedData done [19:17:29]CreateOFDProtocolMessage [19:17:29]wFMCommunicate request_size=4 [19:17:29]MH_SAM_APDU [19:17:29]CAPDU: 80 11 00 00 [19:17:29]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:29]Read from MH i2c: E2 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 17 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D6 [19:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:29]wFMCommunicate OK [19:17:29]CreateOFDProtocolMessage done [19:17:29]OFDSenderStorePacket 92305 [19:17:29]StoreOFDPacket docnum=92305 [19:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 8D 1A 1E 01 49 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C5 8F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 68 01 00 35 04 06 00 8A BB D5 45 63 09 09 E5 1B 15 89 A7 BC 3E [19:17:29]CheckFolder [19:17:29]dirname=/storage/ofd_packets [19:17:29]CheckFolder done [19:17:29]ProducePacketName [19:17:29]name=ofd_packets/00092305 [19:17:29]NVStorageSaveData ofd_packets/00092305 [19:17:29]File name is /storage/ofd_packets/00092305 [19:17:29]Write 324 bytes [19:17:29]NVStorageSaveData done [19:17:29]OFDSenderStorePacket done [19:17:29]KKMCreateOFDPacket done [19:17:29]NVStorageSaveData kkm_last_timestamp [19:17:29]File name is /storage/kkm_last_timestamp [19:17:29]Write 4 bytes [19:17:29]NVStorageSaveData done [19:17:29]ExternCall_PrintAddStr [19:17:29]wPrintStart [19:17:29]Write to MH i2c: 01 00 00 01 05 06 [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 07 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [19:17:29]RasterBufferAndPrint [19:17:29]line Счет N : (3)127235 [19:17:29]line ИНН: 02508201610067 [19:17:29]line Контрольно-Кассовый Чек [19:17:29]line ПРОДАЖА [19:17:29]line Товар: 4640030091645 [19:17:29]line Сигареты ESSE Exchange M [19:17:29]line 1.000 * 150.00 [19:17:29]line = 150.00 [19:17:29]line НДС 12% НСП 1% [19:17:29]line > о реализуемом товаре [19:17:29]line ИТОГО: 150.00 [19:17:29]line НСП 1% : 1.33 [19:17:29]line НДС 12% : 15.93 [19:17:29]line Наличными: 150.00 [19:17:29]line Безнал.: 0.00 [19:17:29]line Место: АЗС № 5 "Партнер Нефть" [19:17:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:17:29]line СНО: Общий режим [19:17:29]line Чек 113 13.09.2024 19:17 [19:17:29]line Смена: 505 ФФД: 1.0 [19:17:29]line ЗНМ: 03000000022 [19:17:29]line РНМ: 0000000000091423 [19:17:29]line Версия ККМ: 001 [19:17:29]line ФМ: 0000000000874692 [19:17:29]line ФД: 92305 [19:17:29]line ФПД: 152539341611785 [19:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T191725&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92305&fm=152539341611785&tin=02508201610067®Number=0000000000091423&sum=15000 [19:17:29]line 0 [19:17:29]OFD Sender: Processing packet 92305 [packets to send 63, broken 62] [19:17:29]ProducePacketName [19:17:29]name=ofd_packets/00092305 [19:17:29]OFD Sender: To server: pG, [19:17:29]CommunicateWithHost lk.salyk.kg:30040 [19:17:29]ConnectInit lk.salyk.kg [19:17:29]written 0, free lines is 4095 [19:17:29]Connected sock=10 [19:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 8D 1A 1E 01 49 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C5 8F Write to MH i2c: E4 01 66 00 0E 04 04 00 F9 01 00 00 00 B9 29 04 05 01 2E 00 [19:17:30]01 Write i2c OK [19:17:30]0D MH_I2C_Read... [19:17:30]04 10 00 30 30 30 30 30 Read from MH i2c: 30 01 30 [19:17:30]30 MH_I2C_Read... [19:17:30]30 30 30 39 31 34 Read from MH i2c: 32 01 33 07 11 00 04 [19:17:30]MH_I2C_Read... [19:17:30]10 00 30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 38 00 37 29 34 05 36 00 39 32 10 04 04 00 91 68 00 01 00 00 00 35 00 04 97 06 0D 00 D9 8A BB D5 45 63 09 09 [19:17:30]E5 RasterBufferAndPrint [19:17:30]1B line [19:17:30]15 line [19:17:30]89 line [19:17:30]A7 line [19:17:30]BC line [19:17:30]3E [19:17:30]written 0, free lines is 3780 [19:17:30]MH_Cut [19:17:30]Write to MH i2c: D1 01 00 30 05 01 07 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: D1 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: D1 01 00 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: D1 01 00 30 05 00 06 [19:17:30]Write to MH i2c: 01 00 00 31 05 36 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 35 5F 47 00 10 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 68 01 00 F4 03 04 00 46 38 E4 66 B6 04 01 00 00 7F CD A5 58 FD EA DF 19 [19:17:30]CommunicateWithHost err = 0 [19:17:30]CheckOFDResponse [19:17:30]1017 (14) - 77093643461234 [19:17:30]1041 (16) - 0000000000874692 [19:17:30]1040 (4) - 92305 [19:17:30]1012 (4) - 13.09.2024 13:04 [19:17:30]1206 (1) - 0 [19:17:30]OFD Sender: Remove packet 92305 [19:17:30]ProducePacketName [19:17:30]name=ofd_packets/00092305 [19:17:30]NVStorageDeleteData [19:17:30]*** Cut start [19:17:30]*** Purtial cut [19:17:30]*** Stage 1: CUTSNS_PIN = 1 [19:17:31]OFD Sender: No OFD packet to send [19:17:32]Read from MH i2c: 01 [19:17:32]MH_I2C_Read... [19:17:32]*** Stop cut motor [19:17:32]*** Cut end [19:17:32]Read from MH i2c: 01 07 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [19:17:32]process_action close_receipt done [19:17:32]requested_data is exist [19:17:32]produce_requested_data [19:17:32]requested_item fm.sn is exist - process it [19:17:32]wFMCommunicate request_size=4 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 11 00 00 [19:17:32]Write to MH i2c: E2 08 00 32 05 80 11 00 00 00 00 00 00 B1 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 17 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 17 00 32 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [19:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:17:32]wFMCommunicate OK [19:17:32]requested_item fd.num is exist - process it [19:17:32]SAM_PROTO_GetFieldsCounters [19:17:32]wFMCommunicate request_size=4 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 13 00 00 [19:17:32]Write to MH i2c: E2 08 00 33 05 80 13 00 00 00 00 00 00 B4 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 62 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 62 00 33 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 91 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 91 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetFieldsCounters done [19:17:33]requested_item shift.num is exist - process it [19:17:33]requested_item shift.opened is exist - process it [19:17:33]req_shift_opened [19:17:33]FM_GetShiftState [19:17:33]SAM_PROTO_GetShiftState [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 01 00 [19:17:33]Write to MH i2c: E2 08 00 34 05 80 13 01 00 00 00 00 00 B6 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 34 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 42 [19:17:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetShiftState done [19:17:33]FM_GetShiftState done [19:17:33]req_shift_opened done [19:17:33]requested_item shift.open_date is exist - process it [19:17:33]req_shift_open_date [19:17:33]req_shift_open_date done [19:17:33]produce_requested_data done [19:17:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92305,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:17:33]process_action_free close_receipt [19:17:33]json_value_free [19:17:33]json_value_free done [19:17:33]process_json_proto returns [19:17:33]Send response to host [19:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92305,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:17:33]free response buf [19:17:33]execute_script done [19:17:33]execute_script returns [19:17:33]free content buf [19:17:33]Sock 9.Close socket [19:17:33]Sock 9.Thread stoped [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:06]accept exits with 8 [19:20:06]New connection [19:20:06]New thread 3067235684 created [19:20:06]Thread 3067379044 joined [19:20:06]Waiting for new connection... [19:20:06] Sock 8.Parse request [19:20:06]Sock 8.Check first char [19:20:06]Sock 8.First char is OK [19:20:06]request: POST /json_proto HTTP/1.0 [19:20:06]Method: POST [19:20:06]URL: /json_proto [19:20:06]Method is POST - this is cgi request [19:20:06]url: /json_proto [19:20:06]query_string will be loaded in cgi processing [19:20:06]execute_cgi json_proto POST (null) [19:20:06]execute_cgi path=json_proto method=POST [19:20:06]POST find Content-Length [19:20:06]Host: 172.17.57.71:8080 [19:20:06]Content-Length: 824 [19:20:06]Content-Type: application/json [19:20:06] [19:20:06]POST finish read [19:20:06]Found Content-Length = 824 [19:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127236", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:06]execute_script... [19:20:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127236", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:06]POST & json_proto [19:20:06]process_json_proto [19:20:06]json parsed OK: [19:20:06]protocol is kg_v1.0 [19:20:06]action value=close_receipt [19:20:06]process_action close_receipt [19:20:06]cmd_close_receipt [19:20:06]MH_GetDate [19:20:06]Write to MH i2c: F0 00 00 35 05 29 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 09 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 09 00 35 05 00 67 90 E4 66 33 3A A4 66 EA [19:20:06]GetLastDocTimeStamp 1726255045 [19:20:06]current date 1726255207 [19:20:06]FM_GetShiftState [19:20:06]SAM_PROTO_GetShiftState [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 13 01 00 [19:20:06]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 44 [19:20:06]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_GetShiftState done [19:20:06]FM_GetShiftState done [19:20:06]opened in 1726186930 [19:20:06]opened+sec_in_day 1726273330 [19:20:06]quantity*price = 14100 [19:20:06]sum+1 = 14101 [19:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 0.00 Безнал.: 141.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 114 13.09.2024 19:20 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92306 ФПД: 240573530374957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192007&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92306&fm=240573530374957&tin=02508201610067®Number=0000000000091423&sum=14100 0 [19:20:07]StoreToDocumentArchive [19:20:07]shift 505 fd 92306 [19:20:07]save to /storage/0505/doc_00092306 [19:20:07]save last doc name /storage/0505/doc_00092306 to /storage/kkm_last_doc_name [19:20:07]save OK [19:20:07]Clear old archive folders... [19:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:20:07]tlvbuf is 01357710 [19:20:07]SAM_PROTO_ClearQueue [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 09 00 00 [19:20:07]Write to MH i2c: E2 08 00 43 05 80 09 00 00 00 00 00 00 BA [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 43 05 00 90 00 BC [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]SAM_PROTO_ClearQueue done [19:20:07]KKMCreateOFDPacket [19:20:07]OFDProtocolAddRootSTLVToBuf [19:20:07]FM_MakeSignedData [19:20:07]FM_MakeSignedData [19:20:07]SAM_PROTO_SignData [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 01 02 [19:20:07]Write to MH i2c: E2 08 00 44 05 80 0D 01 02 00 00 00 00 C2 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]wFMCommunicate request_size=255 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:20:07]Write to MH i2c: E2 02 01 45 05 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 18 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]wFMCommunicate request_size=53 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 68 01 00 35 04 06 00 DA CC E3 D2 03 2D [19:20:07]Write to MH i2c: E2 38 00 46 05 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 68 01 00 35 04 06 00 DA CC E3 D2 03 2D 00 00 3E [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:08]Read from MH i2c: E2 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 03 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [19:20:08]RAPDU: 90 00 [19:20:08]wFMCommunicate OK [19:20:08]wFMCommunicate request_size=4 [19:20:08]MH_SAM_APDU [19:20:08]CAPDU: 80 0D 03 02 [19:20:08]Write to MH i2c: E2 08 00 47 05 80 0D 03 02 00 00 00 00 C7 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:08]Read from MH i2c: E2 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 0B 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 0B 00 47 05 00 F2 F8 75 7A BE BB 16 01 90 00 31 [19:20:08]RAPDU: F2 F8 75 7A BE BB 16 01 90 00 [19:20:08]wFMCommunicate OK [19:20:08]SAM_PROTO_SignData done [19:20:08]FM_MakeSignedData done [19:20:08]CreateOFDProtocolMessage [19:20:08]wFMCommunicate request_size=4 [19:20:08]MH_SAM_APDU [19:20:08]CAPDU: 80 11 00 00 [19:20:08]Write to MH i2c: E2 08 00 48 05 80 11 00 00 00 00 00 00 C7 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:08]Read from MH i2c: E2 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 17 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 17 00 48 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1E [19:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:20:08]wFMCommunicate OK [19:20:08]CreateOFDProtocolMessage done [19:20:08]OFDSenderStorePacket 92306 [19:20:08]StoreOFDPacket docnum=92306 [19:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 C1 15 32 01 30 A7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 68 01 00 35 04 06 00 DA CC E3 D2 03 2D F2 F8 75 7A BE BB 16 01 [19:20:08]CheckFolder [19:20:08]dirname=/storage/ofd_packets [19:20:08]CheckFolder done [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00092306 [19:20:08]NVStorageSaveData ofd_packets/00092306 [19:20:08]File name is /storage/ofd_packets/00092306 [19:20:08]Write 344 bytes [19:20:08]NVStorageSaveData done [19:20:08]OFDSenderStorePacket done [19:20:08]KKMCreateOFDPacket done [19:20:08]NVStorageSaveData kkm_last_timestamp [19:20:08]File name is /storage/kkm_last_timestamp [19:20:08]Write 4 bytes [19:20:08]NVStorageSaveData done [19:20:08]ExternCall_PrintAddStr [19:20:08]wPrintStart [19:20:08]Write to MH i2c: 01 00 00 49 05 4E [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 FF 0F 63 [19:20:08]RasterBufferAndPrint [19:20:08]line Счет N : (3)127236 [19:20:08]line ИНН: 02508201610067 [19:20:08]line Контрольно-Кассовый Чек [19:20:08]line ПРОДАЖА [19:20:08]line Товар: 4870216764968 [19:20:08]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [19:20:08]line 1.000 * 141.00 [19:20:08]line = 141.00 [19:20:08]line НДС 12% НСП 1% [19:20:08]line > о реализуемом товаре [19:20:08]line ИТОГО: 141.00 [19:20:08]line НСП 1% : 1.25 [19:20:08]line НДС 12% : 14.97 [19:20:08]line Наличными: 0.00 [19:20:08]line Безнал.: 141.00 [19:20:08]line Место: АЗС № 5 "Партнер Нефть" [19:20:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:20:08]line СНО: Общий режим [19:20:08]line Чек 114 13.09.2024 19:20 [19:20:08]line Смена: 505 ФФД: 1.0 [19:20:08]line ЗНМ: 03000000022 [19:20:08]line РНМ: 0000000000091423 [19:20:08]line Версия ККМ: 001 [19:20:08]line Платежная система: О! деньги [19:20:08]line ФМ: 0000000000874692 [19:20:08]line ФД: 92306 [19:20:08]line ФПД: 240573530374957 [19:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192007&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92306&fm=240573530374957&tin=02508201610067®Number=0000000000091423&sum=14100 [19:20:08]line 0 [19:20:08]OFD Sender: Processing packet 92306 [packets to send 63, broken 62] [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00092306 [19:20:08]OFD Sender: To server: pG, [19:20:08]CommunicateWithHost lk.salyk.kg:30040 [19:20:08]ConnectInit lk.salyk.kg [19:20:08]written 0, free lines is 4095 [19:20:08]Connected sock=10 [19:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 C1 15 32 01 30 A7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 68 01 00 35 04 06 00 DA CC E3 D2 03 2D F2 F8 75 7A BE BB 16 01 [19:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 5A 3C 47 00 D1 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 34 36 39 32 10 04 04 00 92 68 01 00 F4 03 04 00 E4 38 E4 66 B6 04 01 00 00 93 C1 D8 D4 4C 8F 9B 7B [19:20:08]CommunicateWithHost err = 0 [19:20:08]CheckOFDResponse [19:20:08]1017 (14) - 77093643461234 [19:20:08]1041 (16) - 0000000000874692 [19:20:08]1040 (4) - 92306 [19:20:08]1012 (4) - 13.09.2024 13:06 [19:20:08]1206 (1) - 0 [19:20:08]OFD Sender: Remove packet 92306 [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00092306 [19:20:08]NVStorageDeleteData [19:20:08]Write to MH i2c: 01 00 00 74 05 79 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 F1 0C 7D [19:20:08]RasterBufferAndPrint [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]written 0, free lines is 3320 [19:20:08]MH_Cut [19:20:08]Write to MH i2c: D1 01 00 7B 05 01 52 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 01 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 01 00 7B 05 00 51 [19:20:08]Write to MH i2c: 01 00 00 7C 05 81 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:09]OFD Sender: No OFD packet to send [19:20:09]*** Cut start [19:20:09]*** Purtial cut [19:20:09]*** Stage 1: CUTSNS_PIN = 1 [19:20:11]Read from MH i2c: 01 [19:20:11]MH_I2C_Read... [19:20:11]*** Stop cut motor [19:20:11]*** Cut end [19:20:11]Read from MH i2c: 01 07 00 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [19:20:11]process_action close_receipt done [19:20:11]requested_data is exist [19:20:11]produce_requested_data [19:20:11]requested_item fm.sn is exist - process it [19:20:11]wFMCommunicate request_size=4 [19:20:11]MH_SAM_APDU [19:20:11]CAPDU: 80 11 00 00 [19:20:11]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:11]Read from MH i2c: E2 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: E2 17 00 [19:20:11]MH_I2C_Read... [19:20:11]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 34 36 39 32 90 00 53 [19:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:20:11]wFMCommunicate OK [19:20:11]requested_item fd.num is exist - process it [19:20:11]SAM_PROTO_GetFieldsCounters [19:20:11]wFMCommunicate request_size=4 [19:20:11]MH_SAM_APDU [19:20:11]CAPDU: 80 13 00 00 [19:20:11]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: E2 [19:20:11]MH_I2C_Read... [19:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:11]Read from MH i2c: E2 62 00 [19:20:11]MH_I2C_Read... [19:20:11]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 92 68 01 00 0E 04 04 00 F9 01 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 69 [19:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 92 68 01 00 0E 04 04 00 F9 01 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 [19:20:11]wFMCommunicate OK [19:20:11]SAM_PROTO_GetFieldsCounters done [19:20:11]requested_item shift.num is exist - process it [19:20:11]requested_item shift.opened is exist - process it [19:20:11]req_shift_opened [19:20:11]FM_GetShiftState [19:20:11]SAM_PROTO_GetShiftState [19:20:11]wFMCommunicate request_size=4 [19:20:11]MH_SAM_APDU [19:20:11]CAPDU: 80 13 01 00 [19:20:11]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:11]Read from MH i2c: E2 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: E2 0E 00 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8D [19:20:11]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:20:11]wFMCommunicate OK [19:20:11]SAM_PROTO_GetShiftState done [19:20:11]FM_GetShiftState done [19:20:11]req_shift_opened done [19:20:11]requested_item shift.open_date is exist - process it [19:20:11]req_shift_open_date [19:20:11]req_shift_open_date done [19:20:11]produce_requested_data done [19:20:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92306,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:20:11]process_action_free close_receipt [19:20:11]json_value_free [19:20:11]json_value_free done [19:20:11]process_json_proto returns [19:20:11]Send response to host [19:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92306,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:20:11]free response buf [19:20:11]execute_script done [19:20:11]execute_script returns [19:20:11]free content buf [19:20:11]Sock 8.Close socket [19:20:11]Sock 8.Thread stoped [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:43]accept exits with 9 [19:21:43]New connection [19:21:43]New thread 3067379044 created [19:21:43]Thread 3067235684 joined [19:21:43]Waiting for new connection... [19:21:43] Sock 9.Parse request [19:21:43]Sock 9.Check first char [19:21:43]Sock 9.First char is OK [19:21:43]request: POST /json_proto HTTP/1.0 [19:21:43]Method: POST [19:21:43]URL: /json_proto [19:21:43]Method is POST - this is cgi request [19:21:43]url: /json_proto [19:21:43]query_string will be loaded in cgi processing [19:21:43]execute_cgi json_proto POST (null) [19:21:43]execute_cgi path=json_proto method=POST [19:21:43]POST find Content-Length [19:21:43]Host: 172.17.57.71:8080 [19:21:43]Content-Length: 621 [19:21:43]Content-Type: application/json [19:21:43] [19:21:43]POST finish read [19:21:43]Found Content-Length = 621 [19:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127237", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:43]execute_script... [19: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 : (3)127237", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:43]POST & json_proto [19:21:43]process_json_proto [19:21:43]json parsed OK: [19:21:43]protocol is kg_v1.0 [19:21:43]action value=close_receipt [19:21:43]process_action close_receipt [19:21:43]cmd_close_receipt [19:21:43]MH_GetDate [19:21:43]Write to MH i2c: F0 00 00 80 05 74 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: F0 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: F0 09 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: F0 09 00 80 05 00 C8 90 E4 66 33 3A A4 66 96 [19:21:43]GetLastDocTimeStamp 1726255207 [19:21:43]current date 1726255304 [19:21:43]FM_GetShiftState [19:21:43]SAM_PROTO_GetShiftState [19:21:43]wFMCommunicate request_size=4 [19:21:43]MH_SAM_APDU [19:21:43]CAPDU: 80 13 01 00 [19:21:43]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:43]Read from MH i2c: E2 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 0E 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8F [19:21:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:21:43]wFMCommunicate OK [19:21:43]SAM_PROTO_GetShiftState done [19:21:43]FM_GetShiftState done [19:21:43]opened in 1726186930 [19:21:43]opened+sec_in_day 1726273330 [19:21:43]quantity*price = 14900 [19:21:43]sum+1 = 14901 [19:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 115 13.09.2024 19:21 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92307 ФПД: 71853937768028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192144&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92307&fm=71853937768028&tin=02508201610067®Number=0000000000091423&sum=14900 0 [19:21:44]StoreToDocumentArchive [19:21:44]shift 505 fd 92307 [19:21:44]save to /storage/0505/doc_00092307 [19:21:44]save last doc name /storage/0505/doc_00092307 to /storage/kkm_last_doc_name [19:21:44]save OK [19:21:44]Clear old archive folders... [19:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:21:44]tlvbuf is 0143A8A0 [19:21:44]SAM_PROTO_ClearQueue [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 09 00 00 [19:21:44]Write to MH i2c: E2 08 00 8E 05 80 09 00 00 00 00 00 00 05 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]SAM_PROTO_ClearQueue done [19:21:44]KKMCreateOFDPacket [19:21:44]OFDProtocolAddRootSTLVToBuf [19:21:44]FM_MakeSignedData [19:21:44]FM_MakeSignedData [19:21:44]SAM_PROTO_SignData [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 01 02 [19:21:44]Write to MH i2c: E2 08 00 8F 05 80 0D 01 02 00 00 00 00 0D [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=255 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C8 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [19:21:44]Write to MH i2c: E2 02 01 90 05 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C8 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 B1 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 03 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [19:21:45]RAPDU: 90 00 [19:21:45]wFMCommunicate OK [19:21:45]wFMCommunicate request_size=32 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 93 68 01 00 35 04 06 00 41 59 CC 6F B6 5C [19:21:45]Write to MH i2c: E2 23 00 91 05 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 93 68 01 00 35 04 06 00 41 59 CC 6F B6 5C 00 00 54 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 03 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [19:21:45]RAPDU: 90 00 [19:21:45]wFMCommunicate OK [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 0D 03 02 [19:21:45]Write to MH i2c: E2 08 00 92 05 80 0D 03 02 00 00 00 00 12 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0B 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0B 00 92 05 00 2C 8A AF 7A 05 5E 8B 7E 90 00 5E [19:21:45]RAPDU: 2C 8A AF 7A 05 5E 8B 7E 90 00 [19:21:45]wFMCommunicate OK [19:21:45]SAM_PROTO_SignData done [19:21:45]FM_MakeSignedData done [19:21:45]CreateOFDProtocolMessage [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 11 00 00 [19:21:45]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 17 00 [19:21:45]MH_I2C_Read... [19:21: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 34 36 39 32 90 00 69 [19:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:21:45]wFMCommunicate OK [19:21:45]CreateOFDProtocolMessage done [19:21:45]OFDSenderStorePacket 92307 [19:21:45]StoreOFDPacket docnum=92307 [19:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 13 A6 1D 01 84 62 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C8 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 68 01 00 35 04 06 00 41 59 CC 6F B6 5C 2C 8A AF 7A 05 5E 8B 7E [19:21:45]CheckFolder [19:21:45]dirname=/storage/ofd_packets [19:21:45]CheckFolder done [19:21:45]ProducePacketName [19:21:45]name=ofd_packets/00092307 [19:21:45]NVStorageSaveData ofd_packets/00092307 [19:21:45]File name is /storage/ofd_packets/00092307 [19:21:45]Write 323 bytes [19:21:45]NVStorageSaveData done [19:21:45]OFDSenderStorePacket done [19:21:45]KKMCreateOFDPacket done [19:21:45]NVStorageSaveData kkm_last_timestamp [19:21:45]File name is /storage/kkm_last_timestamp [19:21:45]Write 4 bytes [19:21:45]NVStorageSaveData done [19:21:45]ExternCall_PrintAddStr [19:21:45]wPrintStart [19:21:45]Write to MH i2c: 01 00 00 94 05 99 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [19:21:45]RasterBufferAndPrint [19:21:45]line Счет N : (3)127237 [19:21:45]line ИНН: 02508201610067 [19:21:45]line Контрольно-Кассовый Чек [19:21:45]line ПРОДАЖА [19:21:45]line Товар: 48744119 [19:21:45]line Сигареты Winston Xstyle Dual [19:21:45]line 1.000 * 149.00 [19:21:45]line = 149.00 [19:21:45]line НДС 12% НСП 1% [19:21:45]line > о реализуемом товаре [19:21:45]line ИТОГО: 149.00 [19:21:45]line НСП 1% : 1.32 [19:21:45]line НДС 12% : 15.82 [19:21:45]line Наличными: 149.00 [19:21:45]line Безнал.: 0.00 [19:21:45]line Место: АЗС № 5 "Партнер Нефть" [19:21:45]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:21:45]line СНО: Общий режим [19:21:45]line Чек 115 13.09.2024 19:21 [19:21:45]line Смена: 505 ФФД: 1.0 [19:21:45]line ЗНМ: 03000000022 [19:21:45]line РНМ: 0000000000091423 [19:21:45]line Версия ККМ: 001 [19:21:45]line ФМ: 0000000000874692 [19:21:45]line ФД: 92307 [19:21:45]line ФПД: 71853937768028 [19:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192144&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92307&fm=71853937768028&tin=02508201610067®Number=0000000000091423&sum=14900 [19:21:45]line 0 [19:21:45]written 0, free lines is 4095 [19:21:45]OFD Sender: Processing packet 92307 [packets to send 63, broken 62] [19:21:45]ProducePacketName [19:21:45]name=ofd_packets/00092307 [19:21:45]OFD Sender: To server: pG, [19:21:45]CommunicateWithHost lk.salyk.kg:30040 [19:21:45]ConnectInit lk.salyk.kg [19:21:45]Connected sock=11 [19: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 34 36 39 32 25 01 00 00 13 A6 1D 01 84 62 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C8 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 93 68 01 00 35 04 06 00 41 59 CC 6F B6 5C 2C 8A AF 7A 05 5E 8B 7E [19:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EC CB 47 00 CF 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 34 36 39 32 10 04 04 00 93 68 01 00 F4 03 04 00 45 39 E4 66 B6 04 01 00 00 19 C9 C4 8A B5 37 72 5C [19:21:45]CommunicateWithHost err = 0 [19:21:45]CheckOFDResponse [19:21:45]1017 (14) - 77093643461234 [19:21:45]1041 (16) - 0000000000874692 [19:21:45]1040 (4) - 92307 [19:21:45]1012 (4) - 13.09.2024 13:08 [19:21:45]1206 (1) - 0 [19:21:45]OFD Sender: Remove packet 92307 [19:21:45]ProducePacketName [19:21:45]name=ofd_packets/00092307 [19:21:45]NVStorageDeleteData [19:21:45]Write to MH i2c: 01 00 00 BC 05 C1 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 15 0D EA [19:21:45]RasterBufferAndPrint [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]line [19:21:45]written 0, free lines is 3354 [19:21:45]MH_Cut [19:21:45]Write to MH i2c: D1 01 00 C3 05 01 9A [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 01 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: D1 01 00 C3 05 00 99 [19:21:45]Write to MH i2c: 01 00 00 C4 05 C9 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:46]OFD Sender: No OFD packet to send [19:21:46]*** Cut start [19:21:46]*** Purtial cut [19:21:46]*** Stage 1: CUTSNS_PIN = 1 [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]*** Stop cut motor [19:21:48]*** Cut end [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [19:21:48]process_action close_receipt done [19:21:48]requested_data is exist [19:21:48]produce_requested_data [19:21:48]requested_item fm.sn is exist - process it [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 11 00 00 [19:21:48]Write to MH i2c: E2 08 00 C5 05 80 11 00 00 00 00 00 00 44 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 [19:21:48]MH_I2C_Read... [19:21:48]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 34 36 39 32 90 00 9B [19:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:21:48]wFMCommunicate OK [19:21:48]requested_item fd.num is exist - process it [19:21:48]SAM_PROTO_GetFieldsCounters [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 13 00 00 [19:21:48]Write to MH i2c: E2 08 00 C6 05 80 13 00 00 00 00 00 00 47 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 62 00 [19:21:48]MH_I2C_Read... [19:21:48]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 93 68 01 00 0E 04 04 00 F9 01 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 B5 [19:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 93 68 01 00 0E 04 04 00 F9 01 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 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_GetFieldsCounters done [19:21:48]requested_item shift.num is exist - process it [19:21:48]requested_item shift.opened is exist - process it [19:21:48]req_shift_opened [19:21:48]FM_GetShiftState [19:21:48]SAM_PROTO_GetShiftState [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 13 01 00 [19:21:48]Write to MH i2c: E2 08 00 C7 05 80 13 01 00 00 00 00 00 49 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0E 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0E 00 C7 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D5 [19:21:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_GetShiftState done [19:21:48]FM_GetShiftState done [19:21:48]req_shift_opened done [19:21:48]requested_item shift.open_date is exist - process it [19:21:48]req_shift_open_date [19:21:48]req_shift_open_date done [19:21:48]produce_requested_data done [19:21:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92307,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:21:48]process_action_free close_receipt [19:21:48]json_value_free [19:21:48]json_value_free done [19:21:48]process_json_proto returns [19:21:48]Send response to host [19:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92307,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:21:48]free response buf [19:21:48]execute_script done [19:21:48]execute_script returns [19:21:48]free content buf [19:21:48]Sock 9.Close socket [19:21:48]Sock 9.Thread stoped [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:10]accept exits with 8 [19:22:10]New connection [19:22:10]New thread 3067235684 created [19:22:10]Thread 3067379044 joined [19:22:10]Waiting for new connection... [19:22:10] Sock 8.Parse request [19:22:10]Sock 8.Check first char [19:22:10]Sock 8.First char is OK [19:22:10]request: POST /json_proto HTTP/1.0 [19:22:10]Method: POST [19:22:10]URL: /json_proto [19:22:10]Method is POST - this is cgi request [19:22:10]url: /json_proto [19:22:10]query_string will be loaded in cgi processing [19:22:10]execute_cgi json_proto POST (null) [19:22:10]execute_cgi path=json_proto method=POST [19:22:10]POST find Content-Length [19:22:10]Host: 172.17.57.71:8080 [19:22:10]Content-Length: 651 [19:22:10]Content-Type: application/json [19:22:10] [19:22:10]POST finish read [19:22:10]Found Content-Length = 651 [19:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127238", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:10]execute_script... [19:22: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 : (3)127238", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:10]POST & json_proto [19:22:10]process_json_proto [19:22:10]json parsed OK: [19:22:10]protocol is kg_v1.0 [19:22:10]action value=close_receipt [19:22:10]process_action close_receipt [19:22:10]cmd_close_receipt [19:22:10]MH_GetDate [19:22:10]Write to MH i2c: F0 00 00 C8 05 BC [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 C8 05 00 E3 90 E4 66 33 3A A4 66 F9 [19:22:10]GetLastDocTimeStamp 1726255304 [19:22:10]current date 1726255331 [19:22:10]FM_GetShiftState [19:22:10]SAM_PROTO_GetShiftState [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 13 01 00 [19:22:10]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 D7 [19:22:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:22:10]wFMCommunicate OK [19:22:10]SAM_PROTO_GetShiftState done [19:22:10]FM_GetShiftState done [19:22:10]opened in 1726186930 [19:22:10]opened+sec_in_day 1726273330 [19:22:10]quantity*price = 14100 [19:22:10]sum+1 = 14101 [19:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 116 13.09.2024 19:22 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92308 ФПД: 236714373352928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192211&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92308&fm=236714373352928&tin=02508201610067®Number=0000000000091423&sum=14100 0 [19:22:11]StoreToDocumentArchive [19:22:11]shift 505 fd 92308 [19:22:11]save to /storage/0505/doc_00092308 [19:22:11]save last doc name /storage/0505/doc_00092308 to /storage/kkm_last_doc_name [19:22:11]save OK [19:22:11]Clear old archive folders... [19:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=287 [19:22:11]tlvbuf is B6FC0810 [19:22:11]SAM_PROTO_ClearQueue [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 09 00 00 [19:22:11]Write to MH i2c: E2 08 00 D6 05 80 09 00 00 00 00 00 00 4D [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_ClearQueue done [19:22:11]KKMCreateOFDPacket [19:22:11]OFDProtocolAddRootSTLVToBuf [19:22:11]FM_MakeSignedData [19:22:11]FM_MakeSignedData [19:22:11]SAM_PROTO_SignData [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 0D 01 02 [19:22:11]Write to MH i2c: E2 08 00 D7 05 80 0D 01 02 00 00 00 00 55 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]wFMCommunicate request_size=255 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E3 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [19:22:11]Write to MH i2c: E2 02 01 D8 05 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E3 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 70 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=46 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 68 01 00 35 04 06 00 D7 4A 5C 23 0D E0 [19:22:12]Write to MH i2c: E2 31 00 D9 05 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 68 01 00 35 04 06 00 D7 4A 5C 23 0D E0 00 00 6D [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 03 02 [19:22:12]Write to MH i2c: E2 08 00 DA 05 80 0D 03 02 00 00 00 00 5A [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 DA 05 00 E6 F1 92 2B 8B E9 A8 5C 90 00 67 [19:22:12]RAPDU: E6 F1 92 2B 8B E9 A8 5C 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_SignData done [19:22:12]FM_MakeSignedData done [19:22:12]CreateOFDProtocolMessage [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 11 00 00 [19:22:12]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B1 [19:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:22:12]wFMCommunicate OK [19:22:12]CreateOFDProtocolMessage done [19:22:12]OFDSenderStorePacket 92308 [19:22:12]StoreOFDPacket docnum=92308 [19:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 9A DE 2B 01 B1 CA 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E3 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 68 01 00 35 04 06 00 D7 4A 5C 23 0D E0 E6 F1 92 2B 8B E9 A8 5C [19:22:12]CheckFolder [19:22:12]dirname=/storage/ofd_packets [19:22:12]CheckFolder done [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00092308 [19:22:12]NVStorageSaveData ofd_packets/00092308 [19:22:12]File name is /storage/ofd_packets/00092308 [19:22:12]Write 337 bytes [19:22:12]NVStorageSaveData done [19:22:12]OFDSenderStorePacket done [19:22:12]KKMCreateOFDPacket done [19:22:12]NVStorageSaveData kkm_last_timestamp [19:22:12]File name is /storage/kkm_last_timestamp [19:22:12]Write 4 bytes [19:22:12]NVStorageSaveData done [19:22:12]ExternCall_PrintAddStr [19:22:12]wPrintStart [19:22:12]Write to MH i2c: 01 00 00 DC 05 E1 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [19:22:12]RasterBufferAndPrint [19:22:12]line Счет N : (3)127238 [19:22:12]line ИНН: 02508201610067 [19:22:12]line Контрольно-Кассовый Чек [19:22:12]line ПРОДАЖА [19:22:12]line Товар: 4870216765088 [19:22:12]line Нагр.Таб.Палоч. HEETS Purple Wave [19:22:12]line 1.000 * 141.00 [19:22:12]line = 141.00 [19:22:12]line НДС 12% НСП 1% [19:22:12]line > о реализуемом товаре [19:22:12]line ИТОГО: 141.00 [19:22:12]line НСП 1% : 1.25 [19:22:12]line НДС 12% : 14.97 [19:22:12]line Наличными: 141.00 [19:22:12]line Безнал.: 0.00 [19:22:12]line Место: АЗС № 5 "Партнер Нефть" [19:22:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:22:12]line СНО: Общий режим [19:22:12]line Чек 116 13.09.2024 19:22 [19:22:12]line Смена: 505 ФФД: 1.0 [19:22:12]line ЗНМ: 03000000022 [19:22:12]line РНМ: 0000000000091423 [19:22:12]line Версия ККМ: 001 [19:22:12]line ФМ: 0000000000874692 [19:22:12]line ФД: 92308 [19:22:12]line ФПД: 236714373352928 [19:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T192211&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92308&fm=236714373352928&tin=02508201610067®Number=0000000000091423&sum=14100 [19:22:12]line 0 [19:22:12]OFD Sender: Processing packet 92308 [packets to send 63, broken 62] [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00092308 [19:22:12]OFD Sender: To server: pG, [19:22:12]CommunicateWithHost lk.salyk.kg:30040 [19:22:12]ConnectInit lk.salyk.kg [19:22:12]written 0, free lines is 4095 [19:22:12]Connected sock=10 [19:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 9A DE 2B 01 B1 CA 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E3 90 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 68 01 00 35 04 06 00 D7 4A 5C 23 0D E0 E6 F1 92 2B 8B E9 A8 5C [19:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 12 8E 47 00 76 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 94 68 01 00 F4 03 04 00 61 39 E4 66 B6 04 01 00 00 7E 19 9D 09 17 DB 8C F2 [19:22:12]CommunicateWithHost err = 0 [19:22:12]CheckOFDResponse [19:22:12]1017 (14) - 77093643461234 [19:22:12]1041 (16) - 0000000000874692 [19:22:12]1040 (4) - 92308 [19:22:12]1012 (4) - 13.09.2024 13:08 [19:22:12]1206 (1) - 0 [19:22:12]OFD Sender: Remove packet 92308 [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00092308 [19:22:12]NVStorageDeleteData [19:22:13]Write to MH i2c: 01 00 00 05 06 0B [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 04 0D 23 [19:22:13]RasterBufferAndPrint [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]written 0, free lines is 3338 [19:22:13]MH_Cut [19:22:13]Write to MH i2c: D1 01 00 0C 06 01 E4 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 0C 06 00 E3 [19:22:13]Write to MH i2c: 01 00 00 0D 06 13 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]OFD Sender: No OFD packet to send [19:22:13]*** Cut start [19:22:13]*** Purtial cut [19:22:13]*** Stage 1: CUTSNS_PIN = 1 [19:22:15]Read from MH i2c: 01 [19:22:15]MH_I2C_Read... [19:22:15]*** Stop cut motor [19:22:15]*** Cut end [19:22:15]Read from MH i2c: 01 07 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [19:22:15]process_action close_receipt done [19:22:15]requested_data is exist [19:22:15]produce_requested_data [19:22:15]requested_item fm.sn is exist - process it [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 11 00 00 [19:22:15]Write to MH i2c: E2 08 00 0E 06 80 11 00 00 00 00 00 00 8E [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 17 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 17 00 0E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E5 [19:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:22:15]wFMCommunicate OK [19:22:15]requested_item fd.num is exist - process it [19:22:15]SAM_PROTO_GetFieldsCounters [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 13 00 00 [19:22:15]Write to MH i2c: E2 08 00 0F 06 80 13 00 00 00 00 00 00 91 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 62 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 62 00 0F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 94 68 01 00 0E 04 04 00 F9 01 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 03 [19:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 94 68 01 00 0E 04 04 00 F9 01 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 [19:22:15]wFMCommunicate OK [19:22:15]SAM_PROTO_GetFieldsCounters done [19:22:15]requested_item shift.num is exist - process it [19:22:15]requested_item shift.opened is exist - process it [19:22:15]req_shift_opened [19:22:15]FM_GetShiftState [19:22:15]SAM_PROTO_GetShiftState [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 13 01 00 [19:22:15]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 0E 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1F [19:22:15]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:22:15]wFMCommunicate OK [19:22:15]SAM_PROTO_GetShiftState done [19:22:15]FM_GetShiftState done [19:22:15]req_shift_opened done [19:22:15]requested_item shift.open_date is exist - process it [19:22:15]req_shift_open_date [19:22:15]req_shift_open_date done [19:22:15]produce_requested_data done [19:22:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92308,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:22:15]process_action_free close_receipt [19:22:15]json_value_free [19:22:15]json_value_free done [19:22:15]process_json_proto returns [19:22:15]Send response to host [19:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92308,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:22:15]free response buf [19:22:15]execute_script done [19:22:15]execute_script returns [19:22:15]free content buf [19:22:15]Sock 8.Close socket [19:22:15]Sock 8.Thread stoped [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]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:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:57]accept exits with 9 [19:31:57]New connection [19:31:57]New thread 3067379044 created [19:31:57]Thread 3067235684 joined [19:31:57]Waiting for new connection... [19:31:57] Sock 9.Parse request [19:31:57]Sock 9.Check first char [19:31:57]Sock 9.First char is OK [19:31:57]request: POST /json_proto HTTP/1.0 [19:31:57]Method: POST [19:31:57]URL: /json_proto [19:31:57]Method is POST - this is cgi request [19:31:57]url: /json_proto [19:31:57]query_string will be loaded in cgi processing [19:31:57]execute_cgi json_proto POST (null) [19:31:57]execute_cgi path=json_proto method=POST [19:31:57]POST find Content-Length [19:31:57]Host: 172.17.57.71:8080 [19:31:57]Content-Length: 654 [19:31:57]Content-Type: application/json [19:31:57] [19:31:57]POST finish read [19:31:57]Found Content-Length = 654 [19:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127239", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:57]execute_script... [19:31: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 : (3)127239", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:57]POST & json_proto [19:31:57]process_json_proto [19:31:57]json parsed OK: [19:31:57]protocol is kg_v1.0 [19:31:57]action value=close_receipt [19:31:57]process_action close_receipt [19:31:57]cmd_close_receipt [19:31:57]MH_GetDate [19:31:57]Write to MH i2c: F0 00 00 11 06 06 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: F0 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: F0 09 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: F0 09 00 11 06 00 2E 93 E4 66 33 3A A4 66 91 [19:31:57]GetLastDocTimeStamp 1726255331 [19:31:57]current date 1726255918 [19:31:57]FM_GetShiftState [19:31:57]SAM_PROTO_GetShiftState [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 13 01 00 [19:31:57]Write to MH i2c: E2 08 00 12 06 80 13 01 00 00 00 00 00 95 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 12 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 21 [19:31:57]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_GetShiftState done [19:31:57]FM_GetShiftState done [19:31:57]opened in 1726186930 [19:31:57]opened+sec_in_day 1726273330 [19:31:57]quantity*price = 7700 [19:31:57]sum+1 = 7701 [19:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 117 13.09.2024 19:31 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92309 ФПД: 2049037145374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T193158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92309&fm=2049037145374&tin=02508201610067®Number=0000000000091423&sum=7700 0 [19:31:58]StoreToDocumentArchive [19:31:58]shift 505 fd 92309 [19:31:58]save to /storage/0505/doc_00092309 [19:31:58]save last doc name /storage/0505/doc_00092309 to /storage/kkm_last_doc_name [19:31:58]save OK [19:31:58]Clear old archive folders... [19:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:31:58]tlvbuf is 013B1AB0 [19:31:58]SAM_PROTO_ClearQueue [19:31:58]wFMCommunicate request_size=4 [19:31:58]MH_SAM_APDU [19:31:58]CAPDU: 80 09 00 00 [19:31:58]Write to MH i2c: E2 08 00 1F 06 80 09 00 00 00 00 00 00 97 [19:31:58]Write i2c OK [19:31:58]MH_I2C_Read... [19:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:58]Read from MH i2c: E2 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [19:31:58]RAPDU: 90 00 [19:31:58]wFMCommunicate OK [19:31:58]SAM_PROTO_ClearQueue done [19:31:58]KKMCreateOFDPacket [19:31:58]OFDProtocolAddRootSTLVToBuf [19:31:58]FM_MakeSignedData [19:31:58]FM_MakeSignedData [19:31:58]SAM_PROTO_SignData [19:31:58]wFMCommunicate request_size=4 [19:31:58]MH_SAM_APDU [19:31:58]CAPDU: 80 0D 01 02 [19:31:58]Write to MH i2c: E2 08 00 20 06 80 0D 01 02 00 00 00 00 9F [19:31:58]Write i2c OK [19:31:58]MH_I2C_Read... [19:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:58]Read from MH i2c: E2 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [19:31:58]RAPDU: 90 00 [19:31:58]wFMCommunicate OK [19:31:58]wFMCommunicate request_size=255 [19:31:58]MH_SAM_APDU [19:31:58]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 2E 93 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:31:58]Write to MH i2c: E2 02 01 21 06 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 2E 93 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AE [19:31:58]Write i2c OK [19:31:58]MH_I2C_Read... [19:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:58]Read from MH i2c: E2 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 [19:31:58]MH_I2C_Read... [19:31:58]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [19:31:58]RAPDU: 90 00 [19:31:58]wFMCommunicate OK [19:31:58]wFMCommunicate request_size=52 [19:31:58]MH_SAM_APDU [19:31:58]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 68 01 00 35 04 06 00 01 DD 14 21 95 1E [19:31:58]Write to MH i2c: E2 37 00 22 06 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 68 01 00 35 04 06 00 01 DD 14 21 95 1E 00 00 27 [19:31:58]Write i2c OK [19:31:58]MH_I2C_Read... [19:31:58]OFD Sender: No OFD packet to send [19:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 03 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [19:31:59]RAPDU: 90 00 [19:31:59]wFMCommunicate OK [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 0D 03 02 [19:31:59]Write to MH i2c: E2 08 00 23 06 80 0D 03 02 00 00 00 00 A4 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0B 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0B 00 23 06 00 AA 81 09 52 16 E9 C8 F6 90 00 E8 [19:31:59]RAPDU: AA 81 09 52 16 E9 C8 F6 90 00 [19:31:59]wFMCommunicate OK [19:31:59]SAM_PROTO_SignData done [19:31:59]FM_MakeSignedData done [19:31:59]CreateOFDProtocolMessage [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 11 00 00 [19:31:59]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FB [19:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:31:59]wFMCommunicate OK [19:31:59]CreateOFDProtocolMessage done [19:31:59]OFDSenderStorePacket 92309 [19:31:59]StoreOFDPacket docnum=92309 [19:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 5B 54 31 01 5E 64 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 2E 93 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 68 01 00 35 04 06 00 01 DD 14 21 95 1E AA 81 09 52 16 E9 C8 F6 [19:31:59]CheckFolder [19:31:59]dirname=/storage/ofd_packets [19:31:59]CheckFolder done [19:31:59]ProducePacketName [19:31:59]name=ofd_packets/00092309 [19:31:59]NVStorageSaveData ofd_packets/00092309 [19:31:59]File name is /storage/ofd_packets/00092309 [19:31:59]Write 343 bytes [19:31:59]NVStorageSaveData done [19:31:59]OFDSenderStorePacket done [19:31:59]KKMCreateOFDPacket done [19:31:59]NVStorageSaveData kkm_last_timestamp [19:31:59]File name is /storage/kkm_last_timestamp [19:31:59]Write 4 bytes [19:31:59]NVStorageSaveData done [19:31:59]ExternCall_PrintAddStr [19:31:59]wPrintStart [19:31:59]Write to MH i2c: 01 00 00 25 06 2B [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [19:31:59]RasterBufferAndPrint [19:31:59]line Счет N : (3)127239 [19:31:59]line ИНН: 02508201610067 [19:31:59]line Контрольно-Кассовый Чек [19:31:59]line ПРОДАЖА [19:31:59]line Товар: 4700000480050 [19:31:59]line Напиток Nitro Energy эн green ж/б 0,45л [19:31:59]line 1.000 * 77.00 [19:31:59]line = 77.00 [19:31:59]line НДС 12% НСП 1% [19:31:59]line > о реализуемом товаре [19:31:59]line ИТОГО: 77.00 [19:31:59]line НСП 1% : 0.68 [19:31:59]line НДС 12% : 8.18 [19:31:59]line Наличными: 77.00 [19:31:59]line Безнал.: 0.00 [19:31:59]line Место: АЗС № 5 "Партнер Нефть" [19:31:59]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:31:59]line СНО: Общий режим [19:31:59]line Чек 117 13.09.2024 19:31 [19:31:59]line Смена: 505 ФФД: 1.0 [19:31:59]line ЗНМ: 03000000022 [19:31:59]line РНМ: 0000000000091423 [19:31:59]line Версия ККМ: 001 [19:31:59]line ФМ: 0000000000874692 [19:31:59]line ФД: 92309 [19:31:59]line ФПД: 2049037145374 [19:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T193158&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92309&fm=2049037145374&tin=02508201610067®Number=0000000000091423&sum=7700 [19:31:59]OFD Sender: Processing packet 92309 [packets to send 63, broken 62] [19:31:59]ProducePacketName [19:31:59]name=ofd_packets/00092309 [19:31:59]OFD Sender: To server: pG, [19:31:59]CommunicateWithHost lk.salyk.kg:30040 [19:31:59]ConnectInit lk.salyk.kg [19:31:59]line 0 [19:31:59]written 0, free lines is 4095 [19:31:59]Connected sock=8 [19:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 5B 54 31 01 5E 64 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 2E 93 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 68 01 00 35 04 06 00 01 DD 14 21 95 1E AA 81 09 52 16 E9 C8 F6 [19:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 17 4E 47 00 2A B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 95 68 01 00 F4 03 04 00 AB 3B E4 66 B6 04 01 00 00 2E F3 98 73 7E 60 D9 AF [19:31:59]CommunicateWithHost err = 0 [19:31:59]CheckOFDResponse [19:31:59]1017 (14) - 77093643461234 [19:31:59]1041 (16) - 0000000000874692 [19:31:59]1040 (4) - 92309 [19:31:59]1012 (4) - 13.09.2024 13:18 [19:31:59]1206 (1) - 0 [19:31:59]OFD Sender: Remove packet 92309 [19:31:59]ProducePacketName [19:31:59]name=ofd_packets/00092309 [19:31:59]NVStorageDeleteData [19:31:59]Write to MH i2c: 01 00 00 4E 06 54 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 06 0D 6E [19:31:59]RasterBufferAndPrint [19:31:59]line [19:31:59]line [19:31:59]line [19:31:59]line [19:31:59]line [19:31:59]written 0, free lines is 3342 [19:31:59]MH_Cut [19:31:59]Write to MH i2c: D1 01 00 55 06 01 2D [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: D1 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: D1 01 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: D1 01 00 55 06 00 2C [19:31:59]Write to MH i2c: 01 00 00 56 06 5C [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:32:00]OFD Sender: No OFD packet to send [19:32:00]*** Cut start [19:32:00]*** Purtial cut [19:32:00]*** Stage 1: CUTSNS_PIN = 1 [19:32:02]Read from MH i2c: 01 [19:32:02]MH_I2C_Read... [19:32:02]*** Stop cut motor [19:32:02]*** Cut end [19:32:02]Read from MH i2c: 01 07 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [19:32:02]process_action close_receipt done [19:32:02]requested_data is exist [19:32:02]produce_requested_data [19:32:02]requested_item fm.sn is exist - process it [19:32:02]wFMCommunicate request_size=4 [19:32:02]MH_SAM_APDU [19:32:02]CAPDU: 80 11 00 00 [19:32:02]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [19:32:02]Write i2c OK [19:32:02]MH_I2C_Read... [19:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:02]Read from MH i2c: E2 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 17 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [19:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:32:02]wFMCommunicate OK [19:32:02]requested_item fd.num is exist - process it [19:32:02]SAM_PROTO_GetFieldsCounters [19:32:02]wFMCommunicate request_size=4 [19:32:02]MH_SAM_APDU [19:32:02]CAPDU: 80 13 00 00 [19:32:02]Write to MH i2c: E2 08 00 58 06 80 13 00 00 00 00 00 00 DA [19:32:02]Write i2c OK [19:32:02]MH_I2C_Read... [19:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:02]Read from MH i2c: E2 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 62 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 62 00 58 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 95 68 01 00 0E 04 04 00 F9 01 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 50 [19:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 95 68 01 00 0E 04 04 00 F9 01 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 [19:32:02]wFMCommunicate OK [19:32:02]SAM_PROTO_GetFieldsCounters done [19:32:02]requested_item shift.num is exist - process it [19:32:02]requested_item shift.opened is exist - process it [19:32:02]req_shift_opened [19:32:02]FM_GetShiftState [19:32:02]SAM_PROTO_GetShiftState [19:32:02]wFMCommunicate request_size=4 [19:32:02]MH_SAM_APDU [19:32:02]CAPDU: 80 13 01 00 [19:32:02]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [19:32:02]Write i2c OK [19:32:02]MH_I2C_Read... [19:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:02]Read from MH i2c: E2 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 0E 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 68 [19:32:02]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:32:02]wFMCommunicate OK [19:32:02]SAM_PROTO_GetShiftState done [19:32:02]FM_GetShiftState done [19:32:02]req_shift_opened done [19:32:02]requested_item shift.open_date is exist - process it [19:32:02]req_shift_open_date [19:32:02]req_shift_open_date done [19:32:02]produce_requested_data done [19:32:02]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92309,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:32:02]process_action_free close_receipt [19:32:02]json_value_free [19:32:02]json_value_free done [19:32:02]process_json_proto returns [19:32:02]Send response to host [19:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92309,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:32:02]free response buf [19:32:02]execute_script done [19:32:02]execute_script returns [19:32:02]free content buf [19:32:02]Sock 9.Close socket [19:32:02]Sock 9.Thread stoped [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35: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:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]accept exits with 10 [19:44:45]New connection [19:44:45]New thread 3067235684 created [19:44:45]Thread 3067379044 joined [19:44:45]Waiting for new connection... [19:44:45] Sock 10.Parse request [19:44:45]Sock 10.Check first char [19:44:45]Sock 10.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.57.71:8080 [19:44:45]Content-Length: 852 [19:44:45]Content-Type: application/json [19:44:45] [19:44:45]POST finish read [19:44:45]Found Content-Length = 852 [19:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127240", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "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 : (3)127240", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "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 5A 06 4F [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 5A 06 00 2E 96 E4 66 33 3A A4 66 DD [19:44:45]GetLastDocTimeStamp 1726255918 [19:44:45]current date 1726256686 [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 5B 06 80 13 01 00 00 00 00 00 DE [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 5B 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 6A [19:44:45]RAPDU: 09 00 01 B2 85 E3 66 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 1726186930 [19:44:45]opened+sec_in_day 1726273330 [19:44:45]quantity*price = 5000 [19:44:45]sum+1 = 5001 [19:44:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 118 13.09.2024 19:44 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92310 ФПД: 3201649379202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T194446&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92310&fm=3201649379202&tin=02508201610067®Number=0000000000091423&sum=10500 0 [19:44:46]StoreToDocumentArchive [19:44:46]shift 505 fd 92310 [19:44:46]save to /storage/0505/doc_00092310 [19:44:46]save last doc name /storage/0505/doc_00092310 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=374 [19:44:46]tlvbuf is 01439260 [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 68 06 80 09 00 00 00 00 00 00 E0 [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 68 06 00 90 00 E2 [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 69 06 80 0D 01 02 00 00 00 00 E8 [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 [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 03 00 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [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 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 [19:44:47]Write to MH i2c: E2 02 01 6A 06 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 00 00 7D [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 6A 06 00 90 00 E4 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=133 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 2E 96 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 68 01 00 35 04 06 00 02 E9 71 2C 87 82 [19:44:47]Write to MH i2c: E2 88 00 6B 06 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 2E 96 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 68 01 00 35 04 06 00 02 E9 71 2C 87 82 00 00 B0 [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 6B 06 00 90 00 E5 [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 6C 06 80 0D 03 02 00 00 00 00 ED [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 6C 06 00 DD 17 4C 25 42 E0 F1 C7 90 00 2D [19:44:47]RAPDU: DD 17 4C 25 42 E0 F1 C7 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 6D 06 80 11 00 00 00 00 00 00 ED [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 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [19:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:44:47]wFMCommunicate OK [19:44:47]CreateOFDProtocolMessage done [19:44:47]OFDSenderStorePacket 92310 [19:44:47]StoreOFDPacket docnum=92310 [19:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8A 01 00 00 F6 32 82 01 6E 4D 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 2E 96 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 68 01 00 35 04 06 00 02 E9 71 2C 87 82 DD 17 4C 25 42 E0 F1 C7 [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/00092310 [19:44:47]NVStorageSaveData ofd_packets/00092310 [19:44:47]File name is /storage/ofd_packets/00092310 [19:44:47]Write 424 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 6E 06 74 [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 6E 06 00 00 00 00 00 FF 0F 89 [19:44:47]RasterBufferAndPrint [19:44:47]line Счет N : (3)127240 [19:44:47]line ИНН: 02508201610067 [19:44:47]line Контрольно-Кассовый Чек [19:44:47]line ПРОДАЖА [19:44:47]line Товар: 4700000160358 [19:44:47]line Вода Легенда 1л [19:44:47]line 1.000 * 50.00 [19:44:47]line = 50.00 [19:44:47]line НДС 12% НСП 1% [19:44:47]line > о реализуемом товаре [19:44:47]line Товар: 4870112003925 [19:44:47]line Конд ULKER-Albeni 40gr (6*24) [19:44:47]line 1.000 * 55.00 [19:44:47]line = 55.00 [19:44:47]line НДС 12% НСП 1% [19:44:47]line > о реализуемом товаре [19:44:47]line ИТОГО: 105.00 [19:44:47]line НСП 1% : 0.93 [19:44:47]line НДС 12% : 11.15 [19:44:47]line Наличными: 105.00 [19:44:47]line Безнал.: 0.00 [19:44:47]line Место: АЗС № 5 "Партнер Нефть" [19:44:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:44:47]line СНО: Общий режим [19:44:47]line Чек 118 13.09.2024 19:44 [19:44:47]line Смена: 505 ФФД: 1.0 [19:44:47]line ЗНМ: 03000000022 [19:44:47]line РНМ: 0000000000091423 [19:44:47]line Версия ККМ: 001 [19:44:47]line ФМ: 0000000000874692 [19:44:47]line ФД: 92310 [19:44:47]line ФПД: 3201649379202 [19:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T194446&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92310&fm=3201649379202&tin=02508201610067®Number=0000000000091423&sum=10500 [19:44:47]line 0 [19:44:47]OFD Sender: Processing packet 92310 [packets to send 63, broken 62] [19:44:47]ProducePacketName [19:44:47]name=ofd_packets/00092310 [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=9 [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 34 36 39 32 8A 01 00 00 F6 32 82 01 6E 4D 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 2E 96 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 68 01 00 35 04 06 00 02 E9 71 2C 87 82 DD 17 4C 25 42 E0 F1 C7 [19:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E2 84 47 00 C5 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 96 68 01 00 F4 03 04 00 AC 3E E4 66 B6 04 01 00 00 58 F2 8B C4 E0 1D 08 48 [19:44:48]CommunicateWithHost err = 0 [19:44:48]CheckOFDResponse [19:44:48]1017 (14) - 77093643461234 [19:44:48]1041 (16) - 0000000000874692 [19:44:48]1040 (4) - 92310 [19:44:48]1012 (4) - 13.09.2024 13:31 [19:44:48]1206 (1) - 0 [19:44:48]OFD Sender: Remove packet 92310 [19:44:48]ProducePacketName [19:44:48]name=ofd_packets/00092310 [19:44:48]NVStorageDeleteData [19:44:48]Write to MH i2c: 01 00 00 9C 06 A2 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 D5 0C 8A [19:44:48]RasterBufferAndPrint [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]written 0, free lines is 3292 [19:44:48]MH_Cut [19:44:48]Write to MH i2c: D1 01 00 A3 06 01 7B [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 01 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 01 00 A3 06 00 7A [19:44:48]Write to MH i2c: 01 00 00 A4 06 AA [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]OFD Sender: No OFD packet to send [19:44:49]*** Cut start [19:44:49]*** Purtial cut [19:44:49]*** Stage 1: CUTSNS_PIN = 1 [19:44:51]Read from MH i2c: 01 [19:44:51]MH_I2C_Read... [19:44:51]*** Stop cut motor [19:44:51]*** Cut end [19:44:51]Read from MH i2c: 01 07 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [19:44:51]process_action close_receipt done [19:44:51]requested_data is exist [19:44:51]produce_requested_data [19:44:51]requested_item fm.sn is exist - process it [19:44:51]wFMCommunicate request_size=4 [19:44:51]MH_SAM_APDU [19:44:51]CAPDU: 80 11 00 00 [19:44:51]Write to MH i2c: E2 08 00 A5 06 80 11 00 00 00 00 00 00 25 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:51]Read from MH i2c: E2 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 17 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 17 00 A5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [19:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:44:51]wFMCommunicate OK [19:44:51]requested_item fd.num is exist - process it [19:44:51]SAM_PROTO_GetFieldsCounters [19:44:51]wFMCommunicate request_size=4 [19:44:51]MH_SAM_APDU [19:44:51]CAPDU: 80 13 00 00 [19:44:51]Write to MH i2c: E2 08 00 A6 06 80 13 00 00 00 00 00 00 28 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:51]Read from MH i2c: E2 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 62 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 62 00 A6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 96 68 01 00 0E 04 04 00 F9 01 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 A2 [19:44:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 96 68 01 00 0E 04 04 00 F9 01 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 [19:44:51]wFMCommunicate OK [19:44:51]SAM_PROTO_GetFieldsCounters done [19:44:51]requested_item shift.num is exist - process it [19:44:51]requested_item shift.opened is exist - process it [19:44:51]req_shift_opened [19:44:51]FM_GetShiftState [19:44:51]SAM_PROTO_GetShiftState [19:44:51]wFMCommunicate request_size=4 [19:44:51]MH_SAM_APDU [19:44:51]CAPDU: 80 13 01 00 [19:44:51]Write to MH i2c: E2 08 00 A7 06 80 13 01 00 00 00 00 00 2A [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:51]Read from MH i2c: E2 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 0E 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 0E 00 A7 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B6 [19:44:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [19:44:51]wFMCommunicate OK [19:44:51]SAM_PROTO_GetShiftState done [19:44:51]FM_GetShiftState done [19:44:51]req_shift_opened done [19:44:51]requested_item shift.open_date is exist - process it [19:44:51]req_shift_open_date [19:44:51]req_shift_open_date done [19:44:51]produce_requested_data done [19:44:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92310,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [19:44:51]process_action_free close_receipt [19:44:51]json_value_free [19:44:51]json_value_free done [19:44:51]process_json_proto returns [19:44:51]Send response to host [19:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92310,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [19:44:51]free response buf [19:44:51]execute_script done [19:44:51]execute_script returns [19:44:51]free content buf [19:44:51]Sock 10.Close socket [19:44:51]Sock 10.Thread stoped [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:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]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:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01: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:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:51]accept exits with 8 [20:11:51]New connection [20:11:51]New thread 3067379044 created [20:11:51]Thread 3067235684 joined [20:11:51]Waiting for new connection... [20:11:51] Sock 8.Parse request [20:11:51]Sock 8.Check first char [20:11:51]Sock 8.First char is OK [20:11:51]request: POST /json_proto HTTP/1.0 [20:11:51]Method: POST [20:11:51]URL: /json_proto [20:11:51]Method is POST - this is cgi request [20:11:51]url: /json_proto [20:11:51]query_string will be loaded in cgi processing [20:11:51]execute_cgi json_proto POST (null) [20:11:51]execute_cgi path=json_proto method=POST [20:11:51]POST find Content-Length [20:11:51]Host: 172.17.57.71:8080 [20:11:51]Content-Length: 649 [20:11:51]Content-Type: application/json [20:11:51] [20:11:51]POST finish read [20:11:51]Found Content-Length = 649 [20:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127241", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:51]execute_script... [20:11: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 : (3)127241", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:51]POST & json_proto [20:11:51]process_json_proto [20:11:51]json parsed OK: [20:11:51]protocol is kg_v1.0 [20:11:51]action value=close_receipt [20:11:51]process_action close_receipt [20:11:51]cmd_close_receipt [20:11:51]MH_GetDate [20:11:51]Write to MH i2c: F0 00 00 A8 06 9D [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 09 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: F0 09 00 A8 06 00 88 9C E4 66 33 3A A4 66 8B [20:11:51]GetLastDocTimeStamp 1726256686 [20:11:51]current date 1726258312 [20:11:51]FM_GetShiftState [20:11:51]SAM_PROTO_GetShiftState [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 13 01 00 [20:11:51]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B8 [20:11:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:11:51]wFMCommunicate OK [20:11:51]SAM_PROTO_GetShiftState done [20:11:51]FM_GetShiftState done [20:11:51]opened in 1726186930 [20:11:51]opened+sec_in_day 1726273330 [20:11:51]quantity*price = 17000 [20:11:51]sum+1 = 17001 [20:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 119 13.09.2024 20:11 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92311 ФПД: 71423500170447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T201152&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92311&fm=71423500170447&tin=02508201610067®Number=0000000000091423&sum=17000 0 [20:11:52]StoreToDocumentArchive [20:11:52]shift 505 fd 92311 [20:11:52]save to /storage/0505/doc_00092311 [20:11:52]save last doc name /storage/0505/doc_00092311 to /storage/kkm_last_doc_name [20:11:52]save OK [20:11:52]Clear old archive folders... [20:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:11:52]tlvbuf is 0127CC80 [20:11:52]SAM_PROTO_ClearQueue [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 09 00 00 [20:11:52]Write to MH i2c: E2 08 00 B6 06 80 09 00 00 00 00 00 00 2E [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 B6 06 00 90 00 30 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]SAM_PROTO_ClearQueue done [20:11:52]KKMCreateOFDPacket [20:11:52]OFDProtocolAddRootSTLVToBuf [20:11:52]FM_MakeSignedData [20:11:52]FM_MakeSignedData [20:11:52]SAM_PROTO_SignData [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 01 02 [20:11:52]Write to MH i2c: E2 08 00 B7 06 80 0D 01 02 00 00 00 00 36 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=255 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 88 9C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [20:11:52]Write to MH i2c: E2 02 01 B8 06 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 88 9C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 3E [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=36 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 68 01 00 35 04 06 00 40 F5 94 5B 34 CF [20:11:52]Write to MH i2c: E2 27 00 B9 06 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 68 01 00 35 04 06 00 40 F5 94 5B 34 CF 00 00 89 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [20:11:52]RAPDU: 90 00 [20:11:52]wFMCommunicate OK [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 0D 03 02 [20:11:52]Write to MH i2c: E2 08 00 BA 06 80 0D 03 02 00 00 00 00 3B [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:53]Read from MH i2c: E2 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 0B 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 0B 00 BA 06 00 A2 05 2A 65 9B EA 57 D0 90 00 1E [20:11:53]RAPDU: A2 05 2A 65 9B EA 57 D0 90 00 [20:11:53]wFMCommunicate OK [20:11:53]SAM_PROTO_SignData done [20:11:53]FM_MakeSignedData done [20:11:53]CreateOFDProtocolMessage [20:11:53]wFMCommunicate request_size=4 [20:11:53]MH_SAM_APDU [20:11:53]CAPDU: 80 11 00 00 [20:11:53]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:53]Read from MH i2c: E2 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 17 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: E2 17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [20:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:11:53]wFMCommunicate OK [20:11:53]CreateOFDProtocolMessage done [20:11:53]OFDSenderStorePacket 92311 [20:11:53]StoreOFDPacket docnum=92311 [20:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 22 58 21 01 D3 2D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 88 9C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 68 01 00 35 04 06 00 40 F5 94 5B 34 CF A2 05 2A 65 9B EA 57 D0 [20:11:53]CheckFolder [20:11:53]dirname=/storage/ofd_packets [20:11:53]CheckFolder done [20:11:53]ProducePacketName [20:11:53]name=ofd_packets/00092311 [20:11:53]NVStorageSaveData ofd_packets/00092311 [20:11:53]File name is /storage/ofd_packets/00092311 [20:11:53]Write 327 bytes [20:11:53]NVStorageSaveData done [20:11:53]OFDSenderStorePacket done [20:11:53]KKMCreateOFDPacket done [20:11:53]NVStorageSaveData kkm_last_timestamp [20:11:53]File name is /storage/kkm_last_timestamp [20:11:53]Write 4 bytes [20:11:53]NVStorageSaveData done [20:11:53]ExternCall_PrintAddStr [20:11:53]wPrintStart [20:11:53]Write to MH i2c: 01 00 00 BC 06 C2 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [20:11:53]RasterBufferAndPrint [20:11:53]line Счет N : (3)127241 [20:11:53]line ИНН: 02508201610067 [20:11:53]line Контрольно-Кассовый Чек [20:11:53]line ПРОДАЖА [20:11:53]line Товар: 8901086040008 [20:11:53]line Жид/ст ПН летняя 4,5л [20:11:53]line 1.000 * 170.00 [20:11:53]line = 170.00 [20:11:53]line НДС 12% НСП 1% [20:11:53]line > о реализуемом товаре [20:11:53]line ИТОГО: 170.00 [20:11:53]line НСП 1% : 1.50 [20:11:53]line НДС 12% : 18.05 [20:11:53]line Наличными: 170.00 [20:11:53]line Безнал.: 0.00 [20:11:53]line Место: АЗС № 5 "Партнер Нефть" [20:11:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:11:53]line СНО: Общий режим [20:11:53]line Чек 119 13.09.2024 20:11 [20:11:53]line Смена: 505 ФФД: 1.0 [20:11:53]line ЗНМ: 03000000022 [20:11:53]line РНМ: 0000000000091423 [20:11:53]line Версия ККМ: 001 [20:11:53]line ФМ: 0000000000874692 [20:11:53]line ФД: 92311 [20:11:53]line ФПД: 71423500170447 [20:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T201152&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92311&fm=71423500170447&tin=02508201610067®Number=0000000000091423&sum=17000 [20:11:53]line 0 [20:11:53]OFD Sender: Processing packet 92311 [packets to send 63, broken 62] [20:11:53]ProducePacketName [20:11:53]name=ofd_packets/00092311 [20:11:53]OFD Sender: To server: pG, [20:11:53]CommunicateWithHost lk.salyk.kg:30040 [20:11:53]ConnectInit lk.salyk.kg [20:11:53]written 0, free lines is 4095 [20:11:53]Connected sock=10 [20:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 22 58 21 01 D3 2D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 88 9C E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 68 01 00 35 04 06 00 40 F5 94 5B 34 CF A2 05 2A 65 9B EA 57 D0 [20:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8E A3 47 00 7F 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 97 68 01 00 F4 03 04 00 05 45 E4 66 B6 04 01 00 00 A9 7B 17 FC 26 1E 0A AE [20:11:53]CommunicateWithHost err = 0 [20:11:53]CheckOFDResponse [20:11:53]1017 (14) - 77093643461234 [20:11:53]1041 (16) - 0000000000874692 [20:11:53]1040 (4) - 92311 [20:11:53]1012 (4) - 13.09.2024 13:58 [20:11:53]1206 (1) - 0 [20:11:53]OFD Sender: Remove packet 92311 [20:11:53]ProducePacketName [20:11:53]name=ofd_packets/00092311 [20:11:53]NVStorageDeleteData [20:11:53]Write to MH i2c: 01 00 00 E4 06 EA [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: 01 07 00 E4 06 00 00 00 00 00 0E 0D 0C [20:11:53]RasterBufferAndPrint [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]line [20:11:53]written 0, free lines is 3349 [20:11:53]MH_Cut [20:11:53]Write to MH i2c: D1 01 00 EB 06 01 C3 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 01 00 [20:11:53]MH_I2C_Read... [20:11:53]Read from MH i2c: D1 01 00 EB 06 00 C2 [20:11:53]Write to MH i2c: 01 00 00 EC 06 F2 [20:11:53]Write i2c OK [20:11:53]MH_I2C_Read... [20:11:54]OFD Sender: No OFD packet to send [20:11:54]*** Cut start [20:11:54]*** Purtial cut [20:11:54]*** Stage 1: CUTSNS_PIN = 1 [20:11:56]Read from MH i2c: 01 [20:11:56]MH_I2C_Read... [20:11:56]*** Stop cut motor [20:11:56]*** Cut end [20:11:56]Read from MH i2c: 01 07 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 FF 0F 07 [20:11:56]process_action close_receipt done [20:11:56]requested_data is exist [20:11:56]produce_requested_data [20:11:56]requested_item fm.sn is exist - process it [20:11:56]wFMCommunicate request_size=4 [20:11:56]MH_SAM_APDU [20:11:56]CAPDU: 80 11 00 00 [20:11:56]Write to MH i2c: E2 08 00 ED 06 80 11 00 00 00 00 00 00 6D [20:11:56]Write i2c OK [20:11:56]MH_I2C_Read... [20:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:56]Read from MH i2c: E2 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 17 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 17 00 ED 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C4 [20:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:11:56]wFMCommunicate OK [20:11:56]requested_item fd.num is exist - process it [20:11:56]SAM_PROTO_GetFieldsCounters [20:11:56]wFMCommunicate request_size=4 [20:11:56]MH_SAM_APDU [20:11:56]CAPDU: 80 13 00 00 [20:11:56]Write to MH i2c: E2 08 00 EE 06 80 13 00 00 00 00 00 00 70 [20:11:56]Write i2c OK [20:11:56]MH_I2C_Read... [20:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:56]Read from MH i2c: E2 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 62 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 62 00 EE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 97 68 01 00 0E 04 04 00 F9 01 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 EE [20:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 97 68 01 00 0E 04 04 00 F9 01 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 [20:11:56]wFMCommunicate OK [20:11:56]SAM_PROTO_GetFieldsCounters done [20:11:56]requested_item shift.num is exist - process it [20:11:56]requested_item shift.opened is exist - process it [20:11:56]req_shift_opened [20:11:56]FM_GetShiftState [20:11:56]SAM_PROTO_GetShiftState [20:11:56]wFMCommunicate request_size=4 [20:11:56]MH_SAM_APDU [20:11:56]CAPDU: 80 13 01 00 [20:11:56]Write to MH i2c: E2 08 00 EF 06 80 13 01 00 00 00 00 00 72 [20:11:56]Write i2c OK [20:11:56]MH_I2C_Read... [20:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:56]Read from MH i2c: E2 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 0E 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 0E 00 EF 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 FE [20:11:56]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:11:56]wFMCommunicate OK [20:11:56]SAM_PROTO_GetShiftState done [20:11:56]FM_GetShiftState done [20:11:56]req_shift_opened done [20:11:56]requested_item shift.open_date is exist - process it [20:11:56]req_shift_open_date [20:11:56]req_shift_open_date done [20:11:56]produce_requested_data done [20:11:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92311,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:11:56]process_action_free close_receipt [20:11:56]json_value_free [20:11:56]json_value_free done [20:11:56]process_json_proto returns [20:11:56]Send response to host [20:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92311,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:11:56]free response buf [20:11:56]execute_script done [20:11:56]execute_script returns [20:11:56]free content buf [20:11:56]Sock 8.Close socket [20:11:56]Sock 8.Thread stoped [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:02]accept exits with 9 [20:15:02]New connection [20:15:02]New thread 3067235684 created [20:15:02]Thread 3067379044 joined [20:15:02]Waiting for new connection... [20:15:02] Sock 9.Parse request [20:15:02]Sock 9.Check first char [20:15:02]Sock 9.First char is OK [20:15:02]request: POST /json_proto HTTP/1.0 [20:15:02]Method: POST [20:15:02]URL: /json_proto [20:15:02]Method is POST - this is cgi request [20:15:02]url: /json_proto [20:15:02]query_string will be loaded in cgi processing [20:15:02]execute_cgi json_proto POST (null) [20:15:02]execute_cgi path=json_proto method=POST [20:15:02]POST find Content-Length [20:15:02]Host: 172.17.57.71:8080 [20:15:02]Content-Length: 678 [20:15:02]Content-Type: application/json [20:15:02] [20:15:02]POST finish read [20:15:02]Found Content-Length = 678 [20:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127242", "tax_sys" : 0, "items" : [ { "code": "4680037724078", "name": "\u0422\u0440\u043E\u0441 \u0431\u0443\u043A\u0441\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u044B\u0439 4500\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:02]execute_script... [20:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127242", "tax_sys" : 0, "items" : [ { "code": "4680037724078", "name": "\u0422\u0440\u043E\u0441 \u0431\u0443\u043A\u0441\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u044B\u0439 4500\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:02]POST & json_proto [20:15:02]process_json_proto [20:15:02]json parsed OK: [20:15:02]protocol is kg_v1.0 [20:15:02]action value=close_receipt [20:15:02]process_action close_receipt [20:15:02]cmd_close_receipt [20:15:02]MH_GetDate [20:15:02]Write to MH i2c: F0 00 00 F0 06 E5 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: F0 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: F0 09 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: F0 09 00 F0 06 00 47 9D E4 66 33 3A A4 66 93 [20:15:02]GetLastDocTimeStamp 1726258312 [20:15:02]current date 1726258503 [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 F1 06 80 13 01 00 00 00 00 00 74 [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 F1 06 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 00 [20:15:02]RAPDU: 09 00 01 B2 85 E3 66 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]opened in 1726186930 [20:15:02]opened+sec_in_day 1726273330 [20:15:02]quantity*price = 81500 [20:15:02]sum+1 = 81501 [20:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 815.00 НСП 1% : 7.21 НДС 12% : 86.55 Наличными: 815.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 120 13.09.2024 20:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92312 ФПД: 81444288188836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T201503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92312&fm=81444288188836&tin=02508201610067®Number=0000000000091423&sum=81500 0 [20:15:03]StoreToDocumentArchive [20:15:03]shift 505 fd 92312 [20:15:03]save to /storage/0505/doc_00092312 [20:15:03]save last doc name /storage/0505/doc_00092312 to /storage/kkm_last_doc_name [20:15:03]save OK [20:15:03]Clear old archive folders... [20:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=286 [20:15:03]tlvbuf is 013B1AB0 [20:15:03]SAM_PROTO_ClearQueue [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 09 00 00 [20:15:03]Write to MH i2c: E2 08 00 FE 06 80 09 00 00 00 00 00 00 76 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [20:15:03]RAPDU: 90 00 [20:15:03]wFMCommunicate OK [20:15:03]SAM_PROTO_ClearQueue done [20:15:03]KKMCreateOFDPacket [20:15:03]OFDProtocolAddRootSTLVToBuf [20:15:03]FM_MakeSignedData [20:15:03]FM_MakeSignedData [20:15:03]SAM_PROTO_SignData [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 0D 01 02 [20:15:03]Write to MH i2c: E2 08 00 FF 06 80 0D 01 02 00 00 00 00 7E [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 FF 06 00 90 00 79 [20:15:03]RAPDU: 90 00 [20:15:03]wFMCommunicate OK [20:15:03]wFMCommunicate request_size=255 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 78 00 00 00 F4 03 04 00 47 9D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 [20:15:03]Write to MH i2c: E2 02 01 00 07 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 78 00 00 00 F4 03 04 00 47 9D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 00 00 8B [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 00 07 00 90 00 7B [20:15:03]RAPDU: 90 00 [20:15:03]wFMCommunicate OK [20:15:03]wFMCommunicate request_size=45 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 0D 02 02 28 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 68 01 00 35 04 06 00 4A 12 B9 DD D1 A4 [20:15:03]Write to MH i2c: E2 30 00 01 07 80 0D 02 02 28 00 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 68 01 00 35 04 06 00 4A 12 B9 DD D1 A4 00 00 3F [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 03 00 01 07 00 90 00 7C [20:15:03]RAPDU: 90 00 [20:15:03]wFMCommunicate OK [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 0D 03 02 [20:15:03]Write to MH i2c: E2 08 00 02 07 80 0D 03 02 00 00 00 00 84 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 0B 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 0B 00 02 07 00 5F 39 EB 3E B0 D7 71 43 90 00 81 [20:15:03]RAPDU: 5F 39 EB 3E B0 D7 71 43 90 00 [20:15:03]wFMCommunicate OK [20:15:03]SAM_PROTO_SignData done [20:15:03]FM_MakeSignedData done [20:15:03]CreateOFDProtocolMessage [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 11 00 00 [20:15:03]Write to MH i2c: E2 08 00 03 07 80 11 00 00 00 00 00 00 84 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 17 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 17 00 03 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DB [20:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:15:04]wFMCommunicate OK [20:15:04]CreateOFDProtocolMessage done [20:15:04]OFDSenderStorePacket 92312 [20:15:04]StoreOFDPacket docnum=92312 [20:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 E0 F6 2A 01 03 DE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 78 00 00 00 F4 03 04 00 47 9D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 68 01 00 35 04 06 00 4A 12 B9 DD D1 A4 5F 39 EB 3E B0 D7 71 43 [20:15:04]CheckFolder [20:15:04]dirname=/storage/ofd_packets [20:15:04]CheckFolder done [20:15:04]ProducePacketName [20:15:04]name=ofd_packets/00092312 [20:15:04]NVStorageSaveData ofd_packets/00092312 [20:15:04]File name is /storage/ofd_packets/00092312 [20:15:04]Write 336 bytes [20:15:04]NVStorageSaveData done [20:15:04]OFDSenderStorePacket done [20:15:04]KKMCreateOFDPacket done [20:15:04]NVStorageSaveData kkm_last_timestamp [20:15:04]File name is /storage/kkm_last_timestamp [20:15:04]Write 4 bytes [20:15:04]NVStorageSaveData done [20:15:04]ExternCall_PrintAddStr [20:15:04]wPrintStart [20:15:04]Write to MH i2c: 01 00 00 04 07 0B [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 07 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 07 00 04 07 00 00 00 00 00 FF 0F 20 [20:15:04]RasterBufferAndPrint [20:15:04]line Счет N : (3)127242 [20:15:04]line ИНН: 02508201610067 [20:15:04]line Контрольно-Кассовый Чек [20:15:04]line ПРОДАЖА [20:15:04]line Товар: 4680037724078 [20:15:04]line Трос буксировочный 4500кг [20:15:04]line 1.000 * 815.00 [20:15:04]line = 815.00 [20:15:04]line НДС 12% НСП 1% [20:15:04]line > о реализуемом товаре [20:15:04]line ИТОГО: 815.00 [20:15:04]line НСП 1% : 7.21 [20:15:04]line НДС 12% : 86.55 [20:15:04]line Наличными: 815.00 [20:15:04]line Безнал.: 0.00 [20:15:04]line Место: АЗС № 5 "Партнер Нефть" [20:15:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:15:04]line СНО: Общий режим [20:15:04]line Чек 120 13.09.2024 20:15 [20:15:04]line Смена: 505 ФФД: 1.0 [20:15:04]line ЗНМ: 03000000022 [20:15:04]line РНМ: 0000000000091423 [20:15:04]line Версия ККМ: 001 [20:15:04]line ФМ: 0000000000874692 [20:15:04]line ФД: 92312 [20:15:04]line ФПД: 81444288188836 [20:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T201503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92312&fm=81444288188836&tin=02508201610067®Number=0000000000091423&sum=81500 [20:15:04]line 0 [20:15:04]OFD Sender: Processing packet 92312 [packets to send 63, broken 62] [20:15:04]ProducePacketName [20:15:04]name=ofd_packets/00092312 [20:15:04]OFD Sender: To server: pG, [20:15:04]CommunicateWithHost lk.salyk.kg:30040 [20:15:04]ConnectInit lk.salyk.kg [20:15:04]written 0, free lines is 4095 [20:15:04]Connected sock=10 [20:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 32 01 00 00 E0 F6 2A 01 03 DE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 78 00 00 00 F4 03 04 00 47 9D E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 68 01 00 35 04 06 00 4A 12 B9 DD D1 A4 5F 39 EB 3E B0 D7 71 43 [20:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 84 EB 47 00 41 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 98 68 01 00 F4 03 04 00 C4 45 E4 66 B6 04 01 00 00 78 3F E4 04 15 03 50 12 [20:15:04]CommunicateWithHost err = 0 [20:15:04]CheckOFDResponse [20:15:04]1017 (14) - 77093643461234 [20:15:04]1041 (16) - 0000000000874692 [20:15:04]1040 (4) - 92312 [20:15:04]1012 (4) - 13.09.2024 14:01 [20:15:04]1206 (1) - 0 [20:15:04]OFD Sender: Remove packet 92312 [20:15:04]ProducePacketName [20:15:04]name=ofd_packets/00092312 [20:15:04]NVStorageDeleteData [20:15:04]Write to MH i2c: 01 00 00 2C 07 33 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 07 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 24 0D 6B [20:15:04]RasterBufferAndPrint [20:15:04]line [20:15:04]line [20:15:04]line [20:15:04]line [20:15:04]line [20:15:04]written 0, free lines is 3371 [20:15:04]MH_Cut [20:15:04]Write to MH i2c: D1 01 00 33 07 01 0C [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: D1 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: D1 01 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: D1 01 00 33 07 00 0B [20:15:04]Write to MH i2c: 01 00 00 34 07 3B [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:05]OFD Sender: No OFD packet to send [20:15:05]*** Cut start [20:15:05]*** Purtial cut [20:15:05]*** Stage 1: CUTSNS_PIN = 1 [20:15:07]Read from MH i2c: 01 [20:15:07]MH_I2C_Read... [20:15:07]*** Stop cut motor [20:15:07]*** Cut end [20:15:07]Read from MH i2c: 01 07 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [20:15:07]process_action close_receipt done [20:15:07]requested_data is exist [20:15:07]produce_requested_data [20:15:07]requested_item fm.sn is exist - process it [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 11 00 00 [20:15:07]Write to MH i2c: E2 08 00 35 07 80 11 00 00 00 00 00 00 B6 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 17 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 17 00 35 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [20:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:15:07]wFMCommunicate OK [20:15:07]requested_item fd.num is exist - process it [20:15:07]SAM_PROTO_GetFieldsCounters [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 13 00 00 [20:15:07]Write to MH i2c: E2 08 00 36 07 80 13 00 00 00 00 00 00 B9 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 62 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 62 00 36 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 98 68 01 00 0E 04 04 00 F9 01 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 3B [20:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 98 68 01 00 0E 04 04 00 F9 01 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 [20:15:07]wFMCommunicate OK [20:15:07]SAM_PROTO_GetFieldsCounters done [20:15:07]requested_item shift.num is exist - process it [20:15:07]requested_item shift.opened is exist - process it [20:15:07]req_shift_opened [20:15:07]FM_GetShiftState [20:15:07]SAM_PROTO_GetShiftState [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 13 01 00 [20:15:07]Write to MH i2c: E2 08 00 37 07 80 13 01 00 00 00 00 00 BB [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 0E 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 0E 00 37 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 47 [20:15:07]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:15:07]wFMCommunicate OK [20:15:07]SAM_PROTO_GetShiftState done [20:15:07]FM_GetShiftState done [20:15:07]req_shift_opened done [20:15:07]requested_item shift.open_date is exist - process it [20:15:07]req_shift_open_date [20:15:07]req_shift_open_date done [20:15:07]produce_requested_data done [20:15:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92312,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:15:07]process_action_free close_receipt [20:15:07]json_value_free [20:15:07]json_value_free done [20:15:07]process_json_proto returns [20:15:07]Send response to host [20:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92312,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:15:07]free response buf [20:15:07]execute_script done [20:15:07]execute_script returns [20:15:07]free content buf [20:15:07]Sock 9.Close socket [20:15:07]Sock 9.Thread stoped [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [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:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:07]accept exits with 8 [20:23:07]New connection [20:23:07]New thread 3067379044 created [20:23:07]Thread 3067235684 joined [20:23:07]Waiting for new connection... [20:23:07] Sock 8.Parse request [20:23:07]Sock 8.Check first char [20:23:07]Sock 8.First char is OK [20:23:07]request: POST /json_proto HTTP/1.0 [20:23:07]Method: POST [20:23:07]URL: /json_proto [20:23:07]Method is POST - this is cgi request [20:23:07]url: /json_proto [20:23:07]query_string will be loaded in cgi processing [20:23:07]execute_cgi json_proto POST (null) [20:23:07]execute_cgi path=json_proto method=POST [20:23:07]POST find Content-Length [20:23:07]Host: 172.17.57.71:8080 [20:23:07]Content-Length: 1298 [20:23:07]Content-Type: application/json [20:23:07] [20:23:07]POST finish read [20:23:07]Found Content-Length = 1298 [20:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127243", "tax_sys" : 0, "items" : [ { "code": "8691216090477", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO StarMix 80\u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690637687419", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 Classic", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824590", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0435\u043A \u042F\u0431\u043B \u041F\u0435\u0440\u0441 \u041D\u0435\u043A\u0442 0,95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:07]execute_script... [20:23: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 : (3)127243", "tax_sys" : 0, "items" : [ { "code": "8691216090477", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO StarMix 80\u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690637687419", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 Classic", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824590", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0435\u043A \u042F\u0431\u043B \u041F\u0435\u0440\u0441 \u041D\u0435\u043A\u0442 0,95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:07]POST & json_proto [20:23:07]process_json_proto [20:23:07]json parsed OK: [20:23:07]protocol is kg_v1.0 [20:23:07]action value=close_receipt [20:23:07]process_action close_receipt [20:23:07]cmd_close_receipt [20:23:07]MH_GetDate [20:23:07]Write to MH i2c: F0 00 00 38 07 2E [20:23:07]Write i2c OK [20:23:07]MH_I2C_Read... [20:23:07]Read from MH i2c: F0 [20:23:07]MH_I2C_Read... [20:23:07]Read from MH i2c: F0 09 00 [20:23:07]MH_I2C_Read... [20:23:07]Read from MH i2c: F0 09 00 38 07 00 2C 9F E4 66 33 3A A4 66 C3 [20:23:07]GetLastDocTimeStamp 1726258503 [20:23:07]current date 1726258988 [20:23:07]FM_GetShiftState [20:23:07]SAM_PROTO_GetShiftState [20:23:07]wFMCommunicate request_size=4 [20:23:07]MH_SAM_APDU [20:23:07]CAPDU: 80 13 01 00 [20:23:07]Write to MH i2c: E2 08 00 39 07 80 13 01 00 00 00 00 00 BD [20:23:07]Write i2c OK [20:23:07]MH_I2C_Read... [20:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:07]Read from MH i2c: E2 [20:23:07]MH_I2C_Read... [20:23:07]Read from MH i2c: E2 0E 00 [20:23:07]MH_I2C_Read... [20:23:07]Read from MH i2c: E2 0E 00 39 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 49 [20:23:07]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:23:07]wFMCommunicate OK [20:23:07]SAM_PROTO_GetShiftState done [20:23:07]FM_GetShiftState done [20:23:07]opened in 1726186930 [20:23:07]opened+sec_in_day 1726273330 [20:23:07]quantity*price = 10000 [20:23:07]sum+1 = 10001 [20:23:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8690637687419 Мороженое Algida Магнат Classic 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607014824590 Любимый Нек Ябл Перс Нект 0,95л 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.09 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 121 13.09.2024 20:23 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92313 ФПД: 42410980007378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T202309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92313&fm=42410980007378&tin=02508201610067®Number=0000000000091423&sum=35000 0 [20:23:08]StoreToDocumentArchive [20:23:08]shift 505 fd 92313 [20:23:08]save to /storage/0505/doc_00092313 [20:23:08]save last doc name /storage/0505/doc_00092313 to /storage/kkm_last_doc_name [20:23:08]save OK [20:23:08]Clear old archive folders... [20:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=546 [20:23:08]tlvbuf is 01280100 [20:23:08]SAM_PROTO_ClearQueue [20:23:08]wFMCommunicate request_size=4 [20:23:08]MH_SAM_APDU [20:23:08]CAPDU: 80 09 00 00 [20:23:08]Write to MH i2c: E2 08 00 46 07 80 09 00 00 00 00 00 00 BF [20:23:08]Write i2c OK [20:23:08]MH_I2C_Read... [20:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:09]Read from MH i2c: E2 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [20:23:09]RAPDU: 90 00 [20:23:09]wFMCommunicate OK [20:23:09]SAM_PROTO_ClearQueue done [20:23:09]KKMCreateOFDPacket [20:23:09]OFDProtocolAddRootSTLVToBuf [20:23:09]FM_MakeSignedData [20:23:09]FM_MakeSignedData [20:23:09]SAM_PROTO_SignData [20:23:09]wFMCommunicate request_size=4 [20:23:09]MH_SAM_APDU [20:23:09]CAPDU: 80 0D 01 02 [20:23:09]Write to MH i2c: E2 08 00 47 07 80 0D 01 02 00 00 00 00 C7 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:09]Read from MH i2c: E2 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [20:23:09]RAPDU: 90 00 [20:23:09]wFMCommunicate OK [20:23:09]wFMCommunicate request_size=255 [20:23:09]MH_SAM_APDU [20:23:09]CAPDU: 80 0D 02 02 FA 03 00 22 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 38 36 39 30 36 33 37 36 38 37 34 31 39 06 04 2E 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 [20:23:09]Write to MH i2c: E2 02 01 48 07 80 0D 02 02 FA 00 03 00 22 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 38 36 39 30 36 33 37 36 38 37 34 31 39 06 04 2E 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 00 00 16 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:09]Read from MH i2c: E2 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [20:23:09]RAPDU: 90 00 [20:23:09]wFMCommunicate OK [20:23:09]wFMCommunicate request_size=255 [20:23:09]MH_SAM_APDU [20:23:09]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 39 30 06 04 35 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B5 D0 BA 20 D0 AF D0 B1 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 20 D0 9D D0 B5 D0 BA D1 82 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 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 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 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 79 00 00 00 F4 03 04 00 2D 9F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [20:23:09]Write to MH i2c: E2 02 01 49 07 80 0D 02 02 FA 00 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 39 30 06 04 35 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B5 D0 BA 20 D0 AF D0 B1 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 20 D0 9D D0 B5 D0 BA D1 82 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 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 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 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 79 00 00 00 F4 03 04 00 2D 9F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 97 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:09]Read from MH i2c: E2 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [20:23:09]RAPDU: 90 00 [20:23:09]wFMCommunicate OK [20:23:09]wFMCommunicate request_size=55 [20:23:09]MH_SAM_APDU [20:23:09]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 68 01 00 35 04 06 00 26 92 93 65 DD D2 [20:23:09]Write to MH i2c: E2 3A 00 4A 07 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 68 01 00 35 04 06 00 26 92 93 65 DD D2 00 00 83 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 4A 07 00 90 00 C5 [20:23:10]RAPDU: 90 00 [20:23:10]wFMCommunicate OK [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 0D 03 02 [20:23:10]Write to MH i2c: E2 08 00 4B 07 80 0D 03 02 00 00 00 00 CD [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0B 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0B 00 4B 07 00 E3 29 7F 2F CE D9 07 9C 90 00 D2 [20:23:10]RAPDU: E3 29 7F 2F CE D9 07 9C 90 00 [20:23:10]wFMCommunicate OK [20:23:10]SAM_PROTO_SignData done [20:23:10]FM_MakeSignedData done [20:23:10]CreateOFDProtocolMessage [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 11 00 00 [20:23:10]Write to MH i2c: E2 08 00 4C 07 80 11 00 00 00 00 00 00 CD [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 17 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 17 00 4C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 24 [20:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:23:10]wFMCommunicate OK [20:23:10]CreateOFDProtocolMessage done [20:23:10]OFDSenderStorePacket 92313 [20:23:10]StoreOFDPacket docnum=92313 [20:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 02 00 00 41 E8 2E 02 1A A4 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 38 36 39 30 36 33 37 36 38 37 34 31 39 06 04 2E 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 39 30 06 04 35 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B5 D0 BA 20 D0 AF D0 B1 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 20 D0 9D D0 B5 D0 BA D1 82 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 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 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 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 79 00 00 00 F4 03 04 00 2D 9F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 68 01 00 35 04 06 00 26 92 93 65 DD D2 E3 29 7F 2F CE D9 07 9C [20:23:10]CheckFolder [20:23:10]dirname=/storage/ofd_packets [20:23:10]CheckFolder done [20:23:10]ProducePacketName [20:23:10]name=ofd_packets/00092313 [20:23:10]NVStorageSaveData ofd_packets/00092313 [20:23:10]File name is /storage/ofd_packets/00092313 [20:23:10]Write 596 bytes [20:23:10]NVStorageSaveData done [20:23:10]OFDSenderStorePacket done [20:23:10]KKMCreateOFDPacket done [20:23:10]NVStorageSaveData kkm_last_timestamp [20:23:10]File name is /storage/kkm_last_timestamp [20:23:10]Write 4 bytes [20:23:10]NVStorageSaveData done [20:23:10]ExternCall_PrintAddStr [20:23:10]wPrintStart [20:23:10]Write to MH i2c: 01 00 00 4D 07 54 [20:23:10]OFD Sender: Processing packet 92313 [packets to send 63, broken 62] [20:23:10]ProducePacketName [20:23:10]name=ofd_packets/00092313 [20:23:10]OFD Sender: To server: pG, [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]CommunicateWithHost lk.salyk.kg:30040 [20:23:10]ConnectInit lk.salyk.kg [20:23:10]Read from MH i2c: 01 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [20:23:10]RasterBufferAndPrint [20:23:10]line Счет N : (3)127243 [20:23:10]line ИНН: 02508201610067 [20:23:10]line Контрольно-Кассовый Чек [20:23:10]line ПРОДАЖА [20:23:10]line Товар: 8691216090477 [20:23:10]line Жевательный мармелад HARIBO StarMix 80гр [20:23:10]line 1.000 * 100.00 [20:23:10]line = 100.00 [20:23:10]line НДС 12% НСП 1% [20:23:10]line > о реализуемом товаре [20:23:10]line Товар: 8690637687419 [20:23:10]line Мороженое Algida Магнат Classic [20:23:10]line 1.000 * 135.00 [20:23:10]line = 135.00 [20:23:10]line НДС 12% НСП 1% [20:23:10]line > о реализуемом товаре [20:23:10]line Товар: 4607014824590 [20:23:10]line Любимый Нек Ябл Перс Нект 0,95л [20:23:10]line 1.000 * 115.00 [20:23:10]line = 115.00 [20:23:10]line НДС 12% НСП 1% [20:23:10]line > о реализуемом товаре [20:23:10]line ИТОГО: 350.00 [20:23:10]line НСП 1% : 3.09 [20:23:10]line НДС 12% : 37.17 [20:23:10]line Наличными: 350.00 [20:23:10]line Безнал.: 0.00 [20:23:10]line Место: АЗС № 5 "Партнер Нефть" [20:23:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:23:10]line СНО: Общий режим [20:23:10]line Чек 121 13.09.2024 20:23 [20:23:10]line Смена: 505 ФФД: 1.0 [20:23:10]line ЗНМ: 03000000022 [20:23:10]line РНМ: 0000000000091423 [20:23:10]line Версия ККМ: 001 [20:23:10]line ФМ: 0000000000874692 [20:23:10]line ФД: 92313 [20:23:10]line ФПД: 42410980007378 [20:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T202309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92313&fm=42410980007378&tin=02508201610067®Number=0000000000091423&sum=35000 [20:23:10]line 0 [20:23:10]written 0, free lines is 4095 [20:23:10]Connected sock=10 [20: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 34 36 39 32 36 02 00 00 41 E8 2E 02 1A A4 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 38 36 39 30 36 33 37 36 38 37 34 31 39 06 04 2E 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 39 30 06 04 35 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B5 D0 BA 20 D0 AF D0 B1 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 20 D0 9D D0 B5 D0 BA D1 82 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 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 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 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 79 00 00 00 F4 03 04 00 2D 9F E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 68 01 00 35 04 06 00 26 92 93 65 DD D2 E3 29 7F 2F CE D9 07 9C [20:23:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B0 73 47 00 E3 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 99 68 01 00 F4 03 04 00 AA 47 E4 66 B6 04 01 00 00 C1 63 3E 07 F6 94 06 95 [20:23:10]CommunicateWithHost err = 0 [20:23:10]CheckOFDResponse [20:23:10]1017 (14) - 77093643461234 [20:23:10]1041 (16) - 0000000000874692 [20:23:10]1040 (4) - 92313 [20:23:10]1012 (4) - 13.09.2024 14:09 [20:23:10]1206 (1) - 0 [20:23:10]OFD Sender: Remove packet 92313 [20:23:10]ProducePacketName [20:23:10]name=ofd_packets/00092313 [20:23:10]NVStorageDeleteData [20:23:11]Write to MH i2c: 01 00 00 84 07 8B [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 58 0C F6 [20:23:11]RasterBufferAndPrint [20:23:11]line [20:23:11]line [20:23:11]line [20:23:11]line [20:23:11]line [20:23:11]written 0, free lines is 3167 [20:23:11]MH_Cut [20:23:11]Write to MH i2c: D1 01 00 8B 07 01 64 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: D1 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: D1 01 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: D1 01 00 8B 07 00 63 [20:23:11]Write to MH i2c: 01 00 00 8C 07 93 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]OFD Sender: No OFD packet to send [20:23:11]*** Cut start [20:23:11]*** Purtial cut [20:23:11]*** Stage 1: CUTSNS_PIN = 1 [20:23:13]Read from MH i2c: 01 [20:23:13]MH_I2C_Read... [20:23:13]*** Stop cut motor [20:23:13]*** Cut end [20:23:13]Read from MH i2c: 01 07 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [20:23:13]process_action close_receipt done [20:23:13]requested_data is exist [20:23:13]produce_requested_data [20:23:13]requested_item fm.sn is exist - process it [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 11 00 00 [20:23:13]Write to MH i2c: E2 08 00 8D 07 80 11 00 00 00 00 00 00 0E [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 8D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [20:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:23:13]wFMCommunicate OK [20:23:13]requested_item fd.num is exist - process it [20:23:13]SAM_PROTO_GetFieldsCounters [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 13 00 00 [20:23:13]Write to MH i2c: E2 08 00 8E 07 80 13 00 00 00 00 00 00 11 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:14]Read from MH i2c: E2 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 62 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 62 00 8E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 99 68 01 00 0E 04 04 00 F9 01 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 97 [20: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 99 68 01 00 0E 04 04 00 F9 01 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 [20:23:14]wFMCommunicate OK [20:23:14]SAM_PROTO_GetFieldsCounters done [20:23:14]requested_item shift.num is exist - process it [20:23:14]requested_item shift.opened is exist - process it [20:23:14]req_shift_opened [20:23:14]FM_GetShiftState [20:23:14]SAM_PROTO_GetShiftState [20:23:14]wFMCommunicate request_size=4 [20:23:14]MH_SAM_APDU [20:23:14]CAPDU: 80 13 01 00 [20:23:14]Write to MH i2c: E2 08 00 8F 07 80 13 01 00 00 00 00 00 13 [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:14]Read from MH i2c: E2 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 0E 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 0E 00 8F 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9F [20:23:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:23:14]wFMCommunicate OK [20:23:14]SAM_PROTO_GetShiftState done [20:23:14]FM_GetShiftState done [20:23:14]req_shift_opened done [20:23:14]requested_item shift.open_date is exist - process it [20:23:14]req_shift_open_date [20:23:14]req_shift_open_date done [20:23:14]produce_requested_data done [20:23:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92313,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:23:14]process_action_free close_receipt [20:23:14]json_value_free [20:23:14]json_value_free done [20:23:14]process_json_proto returns [20:23:14]Send response to host [20:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92313,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:23:14]free response buf [20:23:14]execute_script done [20:23:14]execute_script returns [20:23:14]free content buf [20:23:14]Sock 8.Close socket [20:23:14]Sock 8.Thread stoped [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:13]accept exits with 9 [20:33:13]New connection [20:33:13]New thread 3067235684 created [20:33:13]Thread 3067379044 joined [20:33:13]Waiting for new connection... [20:33:13] Sock 9.Parse request [20:33:13]Sock 9.Check first char [20:33:13]Sock 9.First char is OK [20:33:13]request: POST /json_proto HTTP/1.0 [20:33:13]Method: POST [20:33:13]URL: /json_proto [20:33:13]Method is POST - this is cgi request [20:33:13]url: /json_proto [20:33:13]query_string will be loaded in cgi processing [20:33:13]execute_cgi json_proto POST (null) [20:33:13]execute_cgi path=json_proto method=POST [20:33:13]POST find Content-Length [20:33:13]Host: 172.17.57.71:8080 [20:33:13]Content-Length: 859 [20:33:13]Content-Type: application/json [20:33:13] [20:33:13]POST finish read [20:33:13]Found Content-Length = 859 [20:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127244", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 438.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:13]execute_script... [20:33: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 : (3)127244", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 438.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:13]POST & json_proto [20:33:13]process_json_proto [20:33:13]json parsed OK: [20:33:13]protocol is kg_v1.0 [20:33:13]action value=close_receipt [20:33:13]process_action close_receipt [20:33:13]cmd_close_receipt [20:33:13]MH_GetDate [20:33:13]Write to MH i2c: F0 00 00 90 07 86 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: F0 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: F0 09 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: F0 09 00 90 07 00 8A A1 E4 66 33 3A A4 66 7B [20:33:13]GetLastDocTimeStamp 1726258989 [20:33:13]current date 1726259594 [20:33:13]FM_GetShiftState [20:33:13]SAM_PROTO_GetShiftState [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 13 01 00 [20:33:13]Write to MH i2c: E2 08 00 91 07 80 13 01 00 00 00 00 00 15 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0E 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0E 00 91 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A1 [20:33:13]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:33:13]wFMCommunicate OK [20:33:13]SAM_PROTO_GetShiftState done [20:33:13]FM_GetShiftState done [20:33:13]opened in 1726186930 [20:33:13]opened+sec_in_day 1726273330 [20:33:13]quantity*price = 28800 [20:33:13]sum+1 = 28801 [20:33:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 438.00 НСП 1% : 3.88 НДС 12% : 46.51 Наличными: 438.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 122 13.09.2024 20:33 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92314 ФПД: 70724829200239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T203314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92314&fm=70724829200239&tin=02508201610067®Number=0000000000091423&sum=43800 0 [20:33:14]StoreToDocumentArchive [20:33:14]shift 505 fd 92314 [20:33:14]save to /storage/0505/doc_00092314 [20:33:14]save last doc name /storage/0505/doc_00092314 to /storage/kkm_last_doc_name [20:33:14]save OK [20:33:14]Clear old archive folders... [20:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=377 [20:33:14]tlvbuf is 012D3F10 [20:33:14]SAM_PROTO_ClearQueue [20:33:14]wFMCommunicate request_size=4 [20:33:14]MH_SAM_APDU [20:33:14]CAPDU: 80 09 00 00 [20:33:14]Write to MH i2c: E2 08 00 9E 07 80 09 00 00 00 00 00 00 17 [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:14]Read from MH i2c: E2 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: E2 03 00 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [20:33:14]RAPDU: 90 00 [20:33:14]wFMCommunicate OK [20:33:14]SAM_PROTO_ClearQueue done [20:33:14]KKMCreateOFDPacket [20:33:14]OFDProtocolAddRootSTLVToBuf [20:33:14]FM_MakeSignedData [20:33:14]FM_MakeSignedData [20:33:14]SAM_PROTO_SignData [20:33:14]wFMCommunicate request_size=4 [20:33:14]MH_SAM_APDU [20:33:14]CAPDU: 80 0D 01 02 [20:33:14]Write to MH i2c: E2 08 00 9F 07 80 0D 01 02 00 00 00 00 1F [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:14]Read from MH i2c: E2 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: E2 03 00 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [20:33:14]RAPDU: 90 00 [20:33:14]wFMCommunicate OK [20:33:14]wFMCommunicate request_size=255 [20:33:14]MH_SAM_APDU [20:33:14]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE [20:33:14]Write to MH i2c: E2 02 01 A0 07 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 00 00 B7 [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 03 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [20:33:15]RAPDU: 90 00 [20:33:15]wFMCommunicate OK [20:33:15]wFMCommunicate request_size=136 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8A A1 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 68 01 00 35 04 06 00 40 52 E8 52 3F 6F [20:33:15]Write to MH i2c: E2 8B 00 A1 07 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8A A1 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 68 01 00 35 04 06 00 40 52 E8 52 3F 6F 00 00 CB [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 03 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [20:33:15]RAPDU: 90 00 [20:33:15]wFMCommunicate OK [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 0D 03 02 [20:33:15]Write to MH i2c: E2 08 00 A2 07 80 0D 03 02 00 00 00 00 24 [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0B 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0B 00 A2 07 00 3A 87 22 AC 7B 7D FD B3 90 00 5C [20:33:15]RAPDU: 3A 87 22 AC 7B 7D FD B3 90 00 [20:33:15]wFMCommunicate OK [20:33:15]SAM_PROTO_SignData done [20:33:15]FM_MakeSignedData done [20:33:15]CreateOFDProtocolMessage [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 11 00 00 [20:33:15]Write to MH i2c: E2 08 00 A3 07 80 11 00 00 00 00 00 00 24 [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 17 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 17 00 A3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7B [20:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:33:15]wFMCommunicate OK [20:33:15]CreateOFDProtocolMessage done [20:33:15]OFDSenderStorePacket 92314 [20:33:15]StoreOFDPacket docnum=92314 [20:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 5F 88 85 01 E1 FE 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8A A1 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 68 01 00 35 04 06 00 40 52 E8 52 3F 6F 3A 87 22 AC 7B 7D FD B3 [20:33:15]CheckFolder [20:33:15]dirname=/storage/ofd_packets [20:33:15]CheckFolder done [20:33:15]ProducePacketName [20:33:15]name=ofd_packets/00092314 [20:33:15]NVStorageSaveData ofd_packets/00092314 [20:33:15]File name is /storage/ofd_packets/00092314 [20:33:15]Write 427 bytes [20:33:15]NVStorageSaveData done [20:33:15]OFDSenderStorePacket done [20:33:15]KKMCreateOFDPacket done [20:33:15]NVStorageSaveData kkm_last_timestamp [20:33:15]File name is /storage/kkm_last_timestamp [20:33:15]Write 4 bytes [20:33:15]NVStorageSaveData done [20:33:15]ExternCall_PrintAddStr [20:33:15]wPrintStart [20:33:15]Write to MH i2c: 01 00 00 A4 07 AB [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: 01 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: 01 07 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 FF 0F C0 [20:33:15]RasterBufferAndPrint [20:33:15]line Счет N : (3)127244 [20:33:15]line ИНН: 02508201610067 [20:33:15]line Контрольно-Кассовый Чек [20:33:15]line ПРОДАЖА [20:33:15]line Товар: 48743587 [20:33:15]line Сигареты Winston XStyle Silver [20:33:15]line 2.000 * 144.00 [20:33:15]line = 288.00 [20:33:15]line НДС 12% НСП 1% [20:33:15]line > о реализуемом товаре [20:33:15]line Товар: 4640030091607 [20:33:15]line Сигареты ESSE Exchange [20:33:15]line 1.000 * 150.00 [20:33:15]line = 150.00 [20:33:15]line НДС 12% НСП 1% [20:33:15]line > о реализуемом товаре [20:33:15]line ИТОГО: 438.00 [20:33:15]line НСП 1% : 3.88 [20:33:15]line НДС 12% : 46.51 [20:33:15]line Наличными: 438.00 [20:33:15]line Безнал.: 0.00 [20:33:15]line Место: АЗС № 5 "Партнер Нефть" [20:33:15]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:33:15]line СНО: Общий режим [20:33:15]line Чек 122 13.09.2024 20:33 [20:33:15]line Смена: 505 ФФД: 1.0 [20:33:15]line ЗНМ: 03000000022 [20:33:15]line РНМ: 0000000000091423 [20:33:15]line Версия ККМ: 001 [20:33:15]line ФМ: 0000000000874692 [20:33:15]line ФД: 92314 [20:33:15]line ФПД: 70724829200239 [20:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T203314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92314&fm=70724829200239&tin=02508201610067®Number=0000000000091423&sum=43800 [20:33:15]line 0 [20:33:15]OFD Sender: Processing packet 92314 [packets to send 63, broken 62] [20:33:15]ProducePacketName [20:33:15]name=ofd_packets/00092314 [20:33:15]OFD Sender: To server: pG, [20:33:15]CommunicateWithHost lk.salyk.kg:30040 [20:33:15]ConnectInit lk.salyk.kg [20:33:15]written 0, free lines is 4095 [20:33:15]Connected sock=10 [20:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 5F 88 85 01 E1 FE 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8A A1 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9A 68 01 00 35 04 06 00 40 52 E8 52 3F 6F 3A 87 22 AC 7B 7D FD B3 [20:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C AE 47 00 B6 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 34 36 39 32 10 04 04 00 9A 68 01 00 F4 03 04 00 08 4A E4 66 B6 04 01 00 00 D4 50 3E F2 C8 18 6B 9B [20:33:15]CommunicateWithHost err = 0 [20:33:15]CheckOFDResponse [20:33:15]1017 (14) - 77093643461234 [20:33:15]1041 (16) - 0000000000874692 [20:33:15]1040 (4) - 92314 [20:33:15]1012 (4) - 13.09.2024 14:19 [20:33:15]1206 (1) - 0 [20:33:15]OFD Sender: Remove packet 92314 [20:33:15]ProducePacketName [20:33:15]name=ofd_packets/00092314 [20:33:15]NVStorageDeleteData [20:33:16]Write to MH i2c: 01 00 00 D3 07 DA [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 BF 0C AC [20:33:16]RasterBufferAndPrint [20:33:16]line [20:33:16]line [20:33:16]line [20:33:16]line [20:33:16]line [20:33:16]written 0, free lines is 3271 [20:33:16]MH_Cut [20:33:16]Write to MH i2c: D1 01 00 DA 07 01 B3 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: D1 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: D1 01 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: D1 01 00 DA 07 00 B2 [20:33:16]Write to MH i2c: 01 00 00 DB 07 E2 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]OFD Sender: No OFD packet to send [20:33:16]*** Cut start [20:33:16]*** Purtial cut [20:33:16]*** Stage 1: CUTSNS_PIN = 1 [20:33:18]Read from MH i2c: 01 [20:33:18]MH_I2C_Read... [20:33:18]*** Stop cut motor [20:33:18]*** Cut end [20:33:18]Read from MH i2c: 01 07 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [20:33:18]process_action close_receipt done [20:33:18]requested_data is exist [20:33:18]produce_requested_data [20:33:18]requested_item fm.sn is exist - process it [20:33:18]wFMCommunicate request_size=4 [20:33:18]MH_SAM_APDU [20:33:18]CAPDU: 80 11 00 00 [20:33:18]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [20:33:18]Write i2c OK [20:33:18]MH_I2C_Read... [20:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:18]Read from MH i2c: E2 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 17 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B4 [20:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:33:18]wFMCommunicate OK [20:33:18]requested_item fd.num is exist - process it [20:33:18]SAM_PROTO_GetFieldsCounters [20:33:18]wFMCommunicate request_size=4 [20:33:18]MH_SAM_APDU [20:33:18]CAPDU: 80 13 00 00 [20:33:18]Write to MH i2c: E2 08 00 DD 07 80 13 00 00 00 00 00 00 60 [20:33:18]Write i2c OK [20:33:18]MH_I2C_Read... [20:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:19]Read from MH i2c: E2 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 62 00 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 62 00 DD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9A 68 01 00 0E 04 04 00 F9 01 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 EA [20:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9A 68 01 00 0E 04 04 00 F9 01 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 [20:33:19]wFMCommunicate OK [20:33:19]SAM_PROTO_GetFieldsCounters done [20:33:19]requested_item shift.num is exist - process it [20:33:19]requested_item shift.opened is exist - process it [20:33:19]req_shift_opened [20:33:19]FM_GetShiftState [20:33:19]SAM_PROTO_GetShiftState [20:33:19]wFMCommunicate request_size=4 [20:33:19]MH_SAM_APDU [20:33:19]CAPDU: 80 13 01 00 [20:33:19]Write to MH i2c: E2 08 00 DE 07 80 13 01 00 00 00 00 00 62 [20:33:19]Write i2c OK [20:33:19]MH_I2C_Read... [20:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:19]Read from MH i2c: E2 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 0E 00 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 0E 00 DE 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EE [20:33:19]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:33:19]wFMCommunicate OK [20:33:19]SAM_PROTO_GetShiftState done [20:33:19]FM_GetShiftState done [20:33:19]req_shift_opened done [20:33:19]requested_item shift.open_date is exist - process it [20:33:19]req_shift_open_date [20:33:19]req_shift_open_date done [20:33:19]produce_requested_data done [20:33:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92314,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:33:19]process_action_free close_receipt [20:33:19]json_value_free [20:33:19]json_value_free done [20:33:19]process_json_proto returns [20:33:19]Send response to host [20:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92314,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:33:19]free response buf [20:33:19]execute_script done [20:33:19]execute_script returns [20:33:19]free content buf [20:33:19]Sock 9.Close socket [20:33:19]Sock 9.Thread stoped [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:54]accept exits with 8 [20:37:54]New connection [20:37:54]New thread 3067379044 created [20:37:54]Thread 3067235684 joined [20:37:54]Waiting for new connection... [20:37:54] Sock 8.Parse request [20:37:54]Sock 8.Check first char [20:37:54]Sock 8.First char is OK [20:37:54]request: POST /json_proto HTTP/1.0 [20:37:54]Method: POST [20:37:54]URL: /json_proto [20:37:54]Method is POST - this is cgi request [20:37:54]url: /json_proto [20:37:54]query_string will be loaded in cgi processing [20:37:54]execute_cgi json_proto POST (null) [20:37:54]execute_cgi path=json_proto method=POST [20:37:54]POST find Content-Length [20:37:54]Host: 172.17.57.71:8080 [20:37:54]Content-Length: 953 [20:37:54]Content-Type: application/json [20:37:54] [20:37:54]POST finish read [20:37:54]Found Content-Length = 953 [20:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127245", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:54]execute_script... [20:37: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 : (3)127245", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:54]POST & json_proto [20:37:54]process_json_proto [20:37:54]json parsed OK: [20:37:54]protocol is kg_v1.0 [20:37:54]action value=close_receipt [20:37:54]process_action close_receipt [20:37:54]cmd_close_receipt [20:37:54]MH_GetDate [20:37:54]Write to MH i2c: F0 00 00 DF 07 D5 [20:37:54]Write i2c OK [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 09 00 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 09 00 DF 07 00 A3 A2 E4 66 33 3A A4 66 E4 [20:37:54]GetLastDocTimeStamp 1726259594 [20:37:54]current date 1726259875 [20:37:54]FM_GetShiftState [20:37:54]SAM_PROTO_GetShiftState [20:37:54]wFMCommunicate request_size=4 [20:37:54]MH_SAM_APDU [20:37:54]CAPDU: 80 13 01 00 [20:37:54]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [20:37:54]Write i2c OK [20:37:54]MH_I2C_Read... [20:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:54]Read from MH i2c: E2 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: E2 0E 00 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F0 [20:37:54]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:37:54]wFMCommunicate OK [20:37:54]SAM_PROTO_GetShiftState done [20:37:54]FM_GetShiftState done [20:37:54]opened in 1726186930 [20:37:54]opened+sec_in_day 1726273330 [20:37:54]quantity*price = 9500 [20:37:54]sum+1 = 9501 [20:37:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 123 13.09.2024 20:37 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92315 ФПД: 248538645643167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T203755&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92315&fm=248538645643167&tin=02508201610067®Number=0000000000091423&sum=23900 0 [20:37:55]StoreToDocumentArchive [20:37:55]shift 505 fd 92315 [20:37:55]save to /storage/0505/doc_00092315 [20:37:55]save last doc name /storage/0505/doc_00092315 to /storage/kkm_last_doc_name [20:37:55]save OK [20:37:55]Clear old archive folders... [20:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=409 [20:37:55]tlvbuf is 012D5510 [20:37:55]SAM_PROTO_ClearQueue [20:37:55]wFMCommunicate request_size=4 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 09 00 00 [20:37:55]Write to MH i2c: E2 08 00 ED 07 80 09 00 00 00 00 00 00 66 [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:55]Read from MH i2c: E2 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [20:37:55]RAPDU: 90 00 [20:37:55]wFMCommunicate OK [20:37:55]SAM_PROTO_ClearQueue done [20:37:55]KKMCreateOFDPacket [20:37:55]OFDProtocolAddRootSTLVToBuf [20:37:55]FM_MakeSignedData [20:37:55]FM_MakeSignedData [20:37:55]SAM_PROTO_SignData [20:37:55]wFMCommunicate request_size=4 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 0D 01 02 [20:37:55]Write to MH i2c: E2 08 00 EE 07 80 0D 01 02 00 00 00 00 6E [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:55]Read from MH i2c: E2 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [20:37:55]RAPDU: 90 00 [20:37:55]wFMCommunicate OK [20:37:55]wFMCommunicate request_size=255 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [20:37:55]Write to MH i2c: E2 02 01 EF 07 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 E9 [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [20:37:56]RAPDU: 90 00 [20:37:56]wFMCommunicate OK [20:37:56]wFMCommunicate request_size=168 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 0D 02 02 A3 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A3 A2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 68 01 00 35 04 06 00 E2 0B 69 AF BF 9F [20:37:56]Write to MH i2c: E2 AB 00 F0 07 80 0D 02 02 A3 00 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A3 A2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 68 01 00 35 04 06 00 E2 0B 69 AF BF 9F 00 00 9B [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [20:37:56]RAPDU: 90 00 [20:37:56]wFMCommunicate OK [20:37:56]wFMCommunicate request_size=4 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 0D 03 02 [20:37:56]Write to MH i2c: E2 08 00 F1 07 80 0D 03 02 00 00 00 00 73 [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 0B 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 0B 00 F1 07 00 67 43 FC C9 4E D4 F2 CD 90 00 C4 [20:37:56]RAPDU: 67 43 FC C9 4E D4 F2 CD 90 00 [20:37:56]wFMCommunicate OK [20:37:56]SAM_PROTO_SignData done [20:37:56]FM_MakeSignedData done [20:37:56]CreateOFDProtocolMessage [20:37:56]wFMCommunicate request_size=4 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 11 00 00 [20:37:56]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 17 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CA [20:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:37:56]wFMCommunicate OK [20:37:56]CreateOFDProtocolMessage done [20:37:56]OFDSenderStorePacket 92315 [20:37:56]StoreOFDPacket docnum=92315 [20:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AD 01 00 00 47 F7 A5 01 1E F3 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A3 A2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 68 01 00 35 04 06 00 E2 0B 69 AF BF 9F 67 43 FC C9 4E D4 F2 CD [20:37:56]CheckFolder [20:37:56]dirname=/storage/ofd_packets [20:37:56]CheckFolder done [20:37:56]ProducePacketName [20:37:56]name=ofd_packets/00092315 [20:37:56]NVStorageSaveData ofd_packets/00092315 [20:37:56]File name is /storage/ofd_packets/00092315 [20:37:56]Write 459 bytes [20:37:56]NVStorageSaveData done [20:37:56]OFDSenderStorePacket done [20:37:56]KKMCreateOFDPacket done [20:37:56]NVStorageSaveData kkm_last_timestamp [20:37:56]File name is /storage/kkm_last_timestamp [20:37:56]Write 4 bytes [20:37:56]NVStorageSaveData done [20:37:56]ExternCall_PrintAddStr [20:37:56]wPrintStart [20:37:56]Write to MH i2c: 01 00 00 F3 07 FA [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [20:37:56]RasterBufferAndPrint [20:37:56]line Счет N : (3)127245 [20:37:56]line ИНН: 02508201610067 [20:37:56]line Контрольно-Кассовый Чек [20:37:56]line ПРОДАЖА [20:37:56]line Товар: 4700000481965 [20:37:56]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [20:37:56]line 1.000 * 95.00 [20:37:56]line = 95.00 [20:37:56]line НДС 12% НСП 1% [20:37:56]line > о реализуемом товаре [20:37:56]line Товар: 48747059 [20:37:56]line Сигареты Winston Legend Blue [20:37:56]line 1.000 * 144.00 [20:37:56]line = 144.00 [20:37:56]line НДС 12% НСП 1% [20:37:56]line > о реализуемом товаре [20:37:56]line ИТОГО: 239.00 [20:37:56]line НСП 1% : 2.11 [20:37:56]line НДС 12% : 25.38 [20:37:56]line Наличными: 239.00 [20:37:56]line Безнал.: 0.00 [20:37:56]line Место: АЗС № 5 "Партнер Нефть" [20:37:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:37:56]line СНО: Общий режим [20:37:56]line Чек 123 13.09.2024 20:37 [20:37:56]line Смена: 505 ФФД: 1.0 [20:37:56]line ЗНМ: 03000000022 [20:37:56]line РНМ: 0000000000091423 [20:37:56]line Версия ККМ: 001 [20:37:56]line ФМ: 0000000000874692 [20:37:56]line ФД: 92315 [20:37:56]line ФПД: 248538645643167 [20:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T203755&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92315&fm=248538645643167&tin=02508201610067®Number=0000000000091423&sum=23900 [20:37:56]line 0 [20:37:56]OFD Sender: Processing packet 92315 [packets to send 63, broken 62] [20:37:56]ProducePacketName [20:37:56]name=ofd_packets/00092315 [20:37:56]OFD Sender: To server: pG, [20:37:56]CommunicateWithHost lk.salyk.kg:30040 [20:37:56]ConnectInit lk.salyk.kg [20:37:56]written 0, free lines is 4095 [20:37:56]Connected sock=11 [20:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AD 01 00 00 47 F7 A5 01 1E F3 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A3 A2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9B 68 01 00 35 04 06 00 E2 0B 69 AF BF 9F 67 43 FC C9 4E D4 F2 CD [20:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0E 54 47 00 54 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 34 36 39 32 10 04 04 00 9B 68 01 00 F4 03 04 00 21 4B E4 66 B6 04 01 00 00 B5 E7 18 CE 24 6F 1F B1 [20:37:57]CommunicateWithHost err = 0 [20:37:57]CheckOFDResponse [20:37:57]1017 (14) - 77093643461234 [20:37:57]1041 (16) - 0000000000874692 [20:37:57]1040 (4) - 92315 [20:37:57]1012 (4) - 13.09.2024 14:24 [20:37:57]1206 (1) - 0 [20:37:57]OFD Sender: Remove packet 92315 [20:37:57]ProducePacketName [20:37:57]name=ofd_packets/00092315 [20:37:57]NVStorageDeleteData [20:37:57]Write to MH i2c: 01 00 00 23 08 2B [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 07 00 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 B4 0C F2 [20:37:57]RasterBufferAndPrint [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]written 0, free lines is 3260 [20:37:57]MH_Cut [20:37:57]Write to MH i2c: D1 01 00 2A 08 01 04 [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 01 00 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 01 00 2A 08 00 03 [20:37:57]Write to MH i2c: 01 00 00 2B 08 33 [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]OFD Sender: No OFD packet to send [20:37:57]*** Cut start [20:37:57]*** Purtial cut [20:37:57]*** Stage 1: CUTSNS_PIN = 1 [20:37:59]Read from MH i2c: 01 [20:38:00]MH_I2C_Read... [20:38:00]*** Stop cut motor [20:38:00]*** Cut end [20:38:00]Read from MH i2c: 01 07 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [20:38:00]process_action close_receipt done [20:38:00]requested_data is exist [20:38:00]produce_requested_data [20:38:00]requested_item fm.sn is exist - process it [20:38:00]wFMCommunicate request_size=4 [20:38:00]MH_SAM_APDU [20:38:00]CAPDU: 80 11 00 00 [20:38:00]Write to MH i2c: E2 08 00 2C 08 80 11 00 00 00 00 00 00 AE [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 17 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 17 00 2C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 05 [20:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:38:00]wFMCommunicate OK [20:38:00]requested_item fd.num is exist - process it [20:38:00]SAM_PROTO_GetFieldsCounters [20:38:00]wFMCommunicate request_size=4 [20:38:00]MH_SAM_APDU [20:38:00]CAPDU: 80 13 00 00 [20:38:00]Write to MH i2c: E2 08 00 2D 08 80 13 00 00 00 00 00 00 B1 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 62 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 62 00 2D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9B 68 01 00 0E 04 04 00 F9 01 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 3F [20: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9B 68 01 00 0E 04 04 00 F9 01 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 [20:38:00]wFMCommunicate OK [20:38:00]SAM_PROTO_GetFieldsCounters done [20:38:00]requested_item shift.num is exist - process it [20:38:00]requested_item shift.opened is exist - process it [20:38:00]req_shift_opened [20:38:00]FM_GetShiftState [20:38:00]SAM_PROTO_GetShiftState [20:38:00]wFMCommunicate request_size=4 [20:38:00]MH_SAM_APDU [20:38:00]CAPDU: 80 13 01 00 [20:38:00]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 0E 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 3F [20:38:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:38:00]wFMCommunicate OK [20:38:00]SAM_PROTO_GetShiftState done [20:38:00]FM_GetShiftState done [20:38:00]req_shift_opened done [20:38:00]requested_item shift.open_date is exist - process it [20:38:00]req_shift_open_date [20:38:00]req_shift_open_date done [20:38:00]produce_requested_data done [20:38:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92315,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:38:00]process_action_free close_receipt [20:38:00]json_value_free [20:38:00]json_value_free done [20:38:00]process_json_proto returns [20:38:00]Send response to host [20:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92315,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:38:00]free response buf [20:38:00]execute_script done [20:38:00]execute_script returns [20:38:00]free content buf [20:38:00]Sock 8.Close socket [20:38:00]Sock 8.Thread stoped [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:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:31]accept exits with 9 [20:50:31]New connection [20:50:31]New thread 3067235684 created [20:50:31]Thread 3067379044 joined [20:50:31]Waiting for new connection... [20:50:31] Sock 9.Parse request [20:50:31]Sock 9.Check first char [20:50:31]Sock 9.First char is OK [20:50:31]request: POST /json_proto HTTP/1.0 [20:50:31]Method: POST [20:50:31]URL: /json_proto [20:50:31]Method is POST - this is cgi request [20:50:31]url: /json_proto [20:50:31]query_string will be loaded in cgi processing [20:50:31]execute_cgi json_proto POST (null) [20:50:31]execute_cgi path=json_proto method=POST [20:50:31]POST find Content-Length [20:50:31]Host: 172.17.57.71:8080 [20:50:31]Content-Length: 923 [20:50:31]Content-Type: application/json [20:50:31] [20:50:31]POST finish read [20:50:31]Found Content-Length = 923 [20:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127246", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:31]execute_script... [20:50: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 : (3)127246", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:31]POST & json_proto [20:50:31]process_json_proto [20:50:31]json parsed OK: [20:50:31]protocol is kg_v1.0 [20:50:31]action value=close_receipt [20:50:31]process_action close_receipt [20:50:31]cmd_close_receipt [20:50:31]MH_GetDate [20:50:31]Write to MH i2c: F0 00 00 2F 08 26 [20:50:31]Write i2c OK [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: F0 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: F0 09 00 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: F0 09 00 2F 08 00 98 A5 E4 66 33 3A A4 66 2D [20:50:31]GetLastDocTimeStamp 1726259875 [20:50:31]current date 1726260632 [20:50:31]FM_GetShiftState [20:50:31]SAM_PROTO_GetShiftState [20:50:31]wFMCommunicate request_size=4 [20:50:31]MH_SAM_APDU [20:50:31]CAPDU: 80 13 01 00 [20:50:31]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [20:50:31]Write i2c OK [20:50:31]MH_I2C_Read... [20:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:31]Read from MH i2c: E2 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 0E 00 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 41 [20:50:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:50:31]wFMCommunicate OK [20:50:31]SAM_PROTO_GetShiftState done [20:50:31]FM_GetShiftState done [20:50:31]opened in 1726186930 [20:50:31]opened+sec_in_day 1726273330 [20:50:31]quantity*price = 5000 [20:50:31]sum+1 = 5001 [20:50:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 124 13.09.2024 20:50 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92316 ФПД: 97642292699954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T205032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92316&fm=97642292699954&tin=02508201610067®Number=0000000000091423&sum=20000 0 [20:50:32]StoreToDocumentArchive [20:50:32]shift 505 fd 92316 [20:50:32]save to /storage/0505/doc_00092316 [20:50:32]save last doc name /storage/0505/doc_00092316 to /storage/kkm_last_doc_name [20:50:32]save OK [20:50:32]Clear old archive folders... [20:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=388 [20:50:32]tlvbuf is 0127CF80 [20:50:32]SAM_PROTO_ClearQueue [20:50:32]wFMCommunicate request_size=4 [20:50:32]MH_SAM_APDU [20:50:32]CAPDU: 80 09 00 00 [20:50:32]Write to MH i2c: E2 08 00 3D 08 80 09 00 00 00 00 00 00 B7 [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:32]Read from MH i2c: E2 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 03 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [20:50:32]RAPDU: 90 00 [20:50:32]wFMCommunicate OK [20:50:32]SAM_PROTO_ClearQueue done [20:50:32]KKMCreateOFDPacket [20:50:32]OFDProtocolAddRootSTLVToBuf [20:50:32]FM_MakeSignedData [20:50:32]FM_MakeSignedData [20:50:32]SAM_PROTO_SignData [20:50:32]wFMCommunicate request_size=4 [20:50:32]MH_SAM_APDU [20:50:32]CAPDU: 80 0D 01 02 [20:50:32]Write to MH i2c: E2 08 00 3E 08 80 0D 01 02 00 00 00 00 BF [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:32]Read from MH i2c: E2 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 03 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [20:50:32]RAPDU: 90 00 [20:50:32]wFMCommunicate OK [20:50:32]wFMCommunicate request_size=255 [20:50:32]MH_SAM_APDU [20:50:32]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 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 [20:50:32]Write to MH i2c: E2 02 01 3F 08 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 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 00 00 22 [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [20:50:33]RAPDU: 90 00 [20:50:33]wFMCommunicate OK [20:50:33]wFMCommunicate request_size=147 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 0D 02 02 8E F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 98 A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 68 01 00 35 04 06 00 58 CE 1E 2B E3 32 [20:50:33]Write to MH i2c: E2 96 00 40 08 80 0D 02 02 8E 00 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 98 A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 68 01 00 35 04 06 00 58 CE 1E 2B E3 32 00 00 02 [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:33]OFD Sender: No OFD packet to send [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [20:50:33]RAPDU: 90 00 [20:50:33]wFMCommunicate OK [20:50:33]wFMCommunicate request_size=4 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 0D 03 02 [20:50:33]Write to MH i2c: E2 08 00 41 08 80 0D 03 02 00 00 00 00 C4 [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 0B 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 0B 00 41 08 00 C9 95 81 63 55 D2 0B 31 90 00 6A [20:50:33]RAPDU: C9 95 81 63 55 D2 0B 31 90 00 [20:50:33]wFMCommunicate OK [20:50:33]SAM_PROTO_SignData done [20:50:33]FM_MakeSignedData done [20:50:33]CreateOFDProtocolMessage [20:50:33]wFMCommunicate request_size=4 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 11 00 00 [20:50:33]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 17 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1B [20:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:50:33]wFMCommunicate OK [20:50:33]CreateOFDProtocolMessage done [20:50:33]OFDSenderStorePacket 92316 [20:50:33]StoreOFDPacket docnum=92316 [20:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 7B 79 90 01 00 FB 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 98 A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 68 01 00 35 04 06 00 58 CE 1E 2B E3 32 C9 95 81 63 55 D2 0B 31 [20:50:33]CheckFolder [20:50:33]dirname=/storage/ofd_packets [20:50:33]CheckFolder done [20:50:33]ProducePacketName [20:50:33]name=ofd_packets/00092316 [20:50:33]NVStorageSaveData ofd_packets/00092316 [20:50:33]File name is /storage/ofd_packets/00092316 [20:50:33]Write 438 bytes [20:50:33]NVStorageSaveData done [20:50:33]OFDSenderStorePacket done [20:50:33]KKMCreateOFDPacket done [20:50:33]NVStorageSaveData kkm_last_timestamp [20:50:33]File name is /storage/kkm_last_timestamp [20:50:33]Write 4 bytes [20:50:33]NVStorageSaveData done [20:50:33]ExternCall_PrintAddStr [20:50:33]wPrintStart [20:50:33]Write to MH i2c: 01 00 00 43 08 4B [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: 01 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: 01 07 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 FF 0F 60 [20:50:33]RasterBufferAndPrint [20:50:33]line Счет N : (3)127246 [20:50:33]line ИНН: 02508201610067 [20:50:33]line Контрольно-Кассовый Чек [20:50:33]line ПРОДАЖА [20:50:33]line Товар: 4700000160358 [20:50:33]line Вода Легенда 1л [20:50:33]line 1.000 * 50.00 [20:50:33]line = 50.00 [20:50:33]line НДС 12% НСП 1% [20:50:33]line > о реализуемом товаре [20:50:33]line Товар: 5449000189325 [20:50:33]line Холодный чай Fuse персик 0,5л [20:50:33]line 2.000 * 75.00 [20:50:33]line = 150.00 [20:50:33]line НДС 12% НСП 1% [20:50:33]line > о реализуемом товаре [20:50:33]line ИТОГО: 200.00 [20:50:33]line НСП 1% : 1.77 [20:50:33]line НДС 12% : 21.24 [20:50:33]line Наличными: 200.00 [20:50:33]line Безнал.: 0.00 [20:50:33]line Место: АЗС № 5 "Партнер Нефть" [20:50:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:50:33]line СНО: Общий режим [20:50:33]line Чек 124 13.09.2024 20:50 [20:50:33]line Смена: 505 ФФД: 1.0 [20:50:33]line ЗНМ: 03000000022 [20:50:33]line РНМ: 0000000000091423 [20:50:33]line Версия ККМ: 001 [20:50:33]line ФМ: 0000000000874692 [20:50:33]line ФД: 92316 [20:50:33]line ФПД: 97642292699954 [20:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T205032&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92316&fm=97642292699954&tin=02508201610067®Number=0000000000091423&sum=20000 [20:50:33]line 0 [20:50:33]OFD Sender: Processing packet 92316 [packets to send 63, broken 62] [20:50:33]ProducePacketName [20:50:33]name=ofd_packets/00092316 [20:50:33]OFD Sender: To server: pG, [20:50:33]CommunicateWithHost lk.salyk.kg:30040 [20:50:33]ConnectInit lk.salyk.kg [20:50:33]written 0, free lines is 4095 [20:50:33]Connected sock=10 [20:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 98 01 00 00 7B 79 90 01 00 FB 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 98 A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 68 01 00 35 04 06 00 58 CE 1E 2B E3 32 C9 95 81 63 55 D2 0B 31 [20:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FD 46 47 00 75 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9C 68 01 00 F4 03 04 00 16 4E E4 66 B6 04 01 00 00 BA 14 2A CB DF 2A 2F FB [20:50:34]CommunicateWithHost err = 0 [20:50:34]CheckOFDResponse [20:50:34]1017 (14) - 77093643461234 [20:50:34]1041 (16) - 0000000000874692 [20:50:34]1040 (4) - 92316 [20:50:34]1012 (4) - 13.09.2024 14:37 [20:50:34]1206 (1) - 0 [20:50:34]OFD Sender: Remove packet 92316 [20:50:34]ProducePacketName [20:50:34]name=ofd_packets/00092316 [20:50:34]NVStorageDeleteData [20:50:34]Write to MH i2c: 01 00 00 72 08 7A [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 CC 0C 59 [20:50:34]RasterBufferAndPrint [20:50:34]line [20:50:34]line [20:50:34]line [20:50:34]line [20:50:34]line [20:50:34]written 0, free lines is 3283 [20:50:34]MH_Cut [20:50:34]Write to MH i2c: D1 01 00 79 08 01 53 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: D1 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: D1 01 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: D1 01 00 79 08 00 52 [20:50:34]Write to MH i2c: 01 00 00 7A 08 82 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]OFD Sender: No OFD packet to send [20:50:34]*** Cut start [20:50:34]*** Purtial cut [20:50:34]*** Stage 1: CUTSNS_PIN = 1 [20:50:36]Read from MH i2c: 01 [20:50:36]MH_I2C_Read... [20:50:36]*** Stop cut motor [20:50:36]*** Cut end [20:50:36]Read from MH i2c: 01 07 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 FF 0F 97 [20:50:36]process_action close_receipt done [20:50:36]requested_data is exist [20:50:36]produce_requested_data [20:50:36]requested_item fm.sn is exist - process it [20:50:36]wFMCommunicate request_size=4 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 11 00 00 [20:50:36]Write to MH i2c: E2 08 00 7B 08 80 11 00 00 00 00 00 00 FD [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:37]Read from MH i2c: E2 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 17 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 17 00 7B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 54 [20:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:50:37]wFMCommunicate OK [20:50:37]requested_item fd.num is exist - process it [20:50:37]SAM_PROTO_GetFieldsCounters [20:50:37]wFMCommunicate request_size=4 [20:50:37]MH_SAM_APDU [20:50:37]CAPDU: 80 13 00 00 [20:50:37]Write to MH i2c: E2 08 00 7C 08 80 13 00 00 00 00 00 00 00 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:37]Read from MH i2c: E2 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 62 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 62 00 7C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9C 68 01 00 0E 04 04 00 F9 01 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 92 [20:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9C 68 01 00 0E 04 04 00 F9 01 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 [20:50:37]wFMCommunicate OK [20:50:37]SAM_PROTO_GetFieldsCounters done [20:50:37]requested_item shift.num is exist - process it [20:50:37]requested_item shift.opened is exist - process it [20:50:37]req_shift_opened [20:50:37]FM_GetShiftState [20:50:37]SAM_PROTO_GetShiftState [20:50:37]wFMCommunicate request_size=4 [20:50:37]MH_SAM_APDU [20:50:37]CAPDU: 80 13 01 00 [20:50:37]Write to MH i2c: E2 08 00 7D 08 80 13 01 00 00 00 00 00 02 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:37]Read from MH i2c: E2 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 0E 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 0E 00 7D 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 8E [20:50:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:50:37]wFMCommunicate OK [20:50:37]SAM_PROTO_GetShiftState done [20:50:37]FM_GetShiftState done [20:50:37]req_shift_opened done [20:50:37]requested_item shift.open_date is exist - process it [20:50:37]req_shift_open_date [20:50:37]req_shift_open_date done [20:50:37]produce_requested_data done [20:50:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92316,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:50:37]process_action_free close_receipt [20:50:37]json_value_free [20:50:37]json_value_free done [20:50:37]process_json_proto returns [20:50:37]Send response to host [20:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92316,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:50:37]free response buf [20:50:37]execute_script done [20:50:37]execute_script returns [20:50:37]free content buf [20:50:37]Sock 9.Close socket [20:50:37]Sock 9.Thread stoped [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:21]accept exits with 8 [20:51:21]New connection [20:51:21]New thread 3067379044 created [20:51:21]Thread 3067235684 joined [20:51:21]Waiting for new connection... [20:51:21] Sock 8.Parse request [20:51:21]Sock 8.Check first char [20:51:21]Sock 8.First char is OK [20:51:21]request: POST /json_proto HTTP/1.0 [20:51:21]Method: POST [20:51:21]URL: /json_proto [20:51:21]Method is POST - this is cgi request [20:51:21]url: /json_proto [20:51:21]query_string will be loaded in cgi processing [20:51:21]execute_cgi json_proto POST (null) [20:51:21]execute_cgi path=json_proto method=POST [20:51:21]POST find Content-Length [20:51:21]Host: 172.17.57.71:8080 [20:51:21]Content-Length: 1230 [20:51:21]Content-Type: application/json [20:51:21] [20:51:21]POST finish read [20:51:21]Found Content-Length = 1230 [20:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127247", "tax_sys" : 0, "items" : [ { "code": "4780111550569", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 515.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:21]execute_script... [20:51: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 : (3)127247", "tax_sys" : 0, "items" : [ { "code": "4780111550569", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 515.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:21]POST & json_proto [20:51:21]process_json_proto [20:51:21]json parsed OK: [20:51:21]protocol is kg_v1.0 [20:51:21]action value=close_receipt [20:51:21]process_action close_receipt [20:51:21]cmd_close_receipt [20:51:21]MH_GetDate [20:51:21]Write to MH i2c: F0 00 00 7E 08 75 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 09 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 09 00 7E 08 00 CA A5 E4 66 33 3A A4 66 AE [20:51:21]GetLastDocTimeStamp 1726260632 [20:51:21]current date 1726260682 [20:51:21]FM_GetShiftState [20:51:21]SAM_PROTO_GetShiftState [20:51:21]wFMCommunicate request_size=4 [20:51:21]MH_SAM_APDU [20:51:21]CAPDU: 80 13 01 00 [20:51:21]Write to MH i2c: E2 08 00 7F 08 80 13 01 00 00 00 00 00 04 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:21]Read from MH i2c: E2 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 0E 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 0E 00 7F 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 90 [20:51:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:51:21]wFMCommunicate OK [20:51:21]SAM_PROTO_GetShiftState done [20:51:21]FM_GetShiftState done [20:51:21]opened in 1726186930 [20:51:21]opened+sec_in_day 1726273330 [20:51:21]quantity*price = 20500 [20:51:21]sum+1 = 20501 [20:51:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602441000081 Напитк Тархун 1л стекло 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 515.00 НСП 1% : 4.55 НДС 12% : 54.69 Наличными: 515.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 125 13.09.2024 20:51 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92317 ФПД: 277227648889854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T205123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92317&fm=277227648889854&tin=02508201610067®Number=0000000000091423&sum=51500 0 [20:51:22]StoreToDocumentArchive [20:51:22]shift 505 fd 92317 [20:51:22]save to /storage/0505/doc_00092317 [20:51:22]save last doc name /storage/0505/doc_00092317 to /storage/kkm_last_doc_name [20:51:22]save OK [20:51:22]Clear old archive folders... [20:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=502 [20:51:22]tlvbuf is 0127CAF0 [20:51:22]SAM_PROTO_ClearQueue [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 09 00 00 [20:51:22]Write to MH i2c: E2 08 00 8C 08 80 09 00 00 00 00 00 00 06 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [20:51:22]RAPDU: 90 00 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_ClearQueue done [20:51:22]KKMCreateOFDPacket [20:51:22]OFDProtocolAddRootSTLVToBuf [20:51:22]FM_MakeSignedData [20:51:22]FM_MakeSignedData [20:51:22]SAM_PROTO_SignData [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 0D 01 02 [20:51:22]Write to MH i2c: E2 08 00 8D 08 80 0D 01 02 00 00 00 00 0E [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=255 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 35 36 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 [20:51:23]Write to MH i2c: E2 02 01 8E 08 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 35 36 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 00 00 25 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=255 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 02 02 FA 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 CB A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 68 01 00 35 04 06 00 [20:51:23]Write to MH i2c: E2 02 01 8F 08 80 0D 02 02 FA 00 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 CB A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 68 01 00 35 04 06 00 00 00 9F [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=11 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 02 02 06 FC 23 17 88 B3 FE [20:51:23]Write to MH i2c: E2 0E 00 90 08 80 0D 02 02 06 00 FC 23 17 88 B3 FE 00 00 8D [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 03 02 [20:51:23]Write to MH i2c: E2 08 00 91 08 80 0D 03 02 00 00 00 00 14 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0B 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0B 00 91 08 00 F7 79 4E 11 7C BA CC D2 90 00 B8 [20:51:23]RAPDU: F7 79 4E 11 7C BA CC D2 90 00 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_SignData done [20:51:23]FM_MakeSignedData done [20:51:23]CreateOFDProtocolMessage [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 11 00 00 [20:51:23]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6B [20:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:51:24]wFMCommunicate OK [20:51:24]CreateOFDProtocolMessage done [20:51:24]OFDSenderStorePacket 92317 [20:51:24]StoreOFDPacket docnum=92317 [20:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 18 3A 02 02 87 07 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 35 36 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 CB A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 68 01 00 35 04 06 00 FC 23 17 88 B3 FE F7 79 4E 11 7C BA CC D2 [20:51:24]CheckFolder [20:51:24]dirname=/storage/ofd_packets [20:51:24]CheckFolder done [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00092317 [20:51:24]NVStorageSaveData ofd_packets/00092317 [20:51:24]File name is /storage/ofd_packets/00092317 [20:51:24]Write 552 bytes [20:51:24]NVStorageSaveData done [20:51:24]OFDSenderStorePacket done [20:51:24]KKMCreateOFDPacket done [20:51:24]NVStorageSaveData kkm_last_timestamp [20:51:24]File name is /storage/kkm_last_timestamp [20:51:24]Write 4 bytes [20:51:24]NVStorageSaveData done [20:51:24]ExternCall_PrintAddStr [20:51:24]wPrintStart [20:51:24]Write to MH i2c: 01 00 00 93 08 9B [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [20:51:24]RasterBufferAndPrint [20:51:24]line Счет N : (3)127247 [20:51:24]line ИНН: 02508201610067 [20:51:24]line Контрольно-Кассовый Чек [20:51:24]line ПРОДАЖА [20:51:24]line Товар: 4780111550569 [20:51:24]line Напит Дюшес 1л стекло [20:51:24]line 1.000 * 205.00 [20:51:24]line = 205.00 [20:51:24]line НДС 12% НСП 1% [20:51:24]line > о реализуемом товаре [20:51:24]line Товар: 4602441000081 [20:51:24]line Напитк Тархун 1л стекло [20:51:24]line 1.000 * 205.00 [20:51:24]line = 205.00 [20:51:24]line НДС 12% НСП 1% [20:51:24]line > о реализуемом товаре [20:51:24]line Товар: 5449000054227 [20:51:24]line Напиток Кока-Кола 1л [20:51:24]line 1.000 * 105.00 [20:51:24]line = 105.00 [20:51:24]line НДС 12% НСП 1% [20:51:24]line > о реализуемом товаре [20:51:24]line ИТОГО: 515.00 [20:51:24]line НСП 1% : 4.55 [20:51:24]line НДС 12% : 54.69 [20:51:24]line Наличными: 515.00 [20:51:24]line Безнал.: 0.00 [20:51:24]line Место: АЗС № 5 "Партнер Нефть" [20:51:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:51:24]line СНО: Общий режим [20:51:24]line Чек 125 13.09.2024 20:51 [20:51:24]line Смена: 505 ФФД: 1.0 [20:51:24]line ЗНМ: 03000000022 [20:51:24]line РНМ: 0000000000091423 [20:51:24]line Версия ККМ: 001 [20:51:24]line ФМ: 0000000000874692 [20:51:24]line ФД: 92317 [20:51:24]line ФПД: 277227648889854 [20:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T205123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92317&fm=277227648889854&tin=02508201610067®Number=0000000000091423&sum=51500 [20:51:24]line 0 [20:51:24]OFD Sender: Processing packet 92317 [packets to send 63, broken 62] [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00092317 [20:51:24]OFD Sender: To server: pG, [20:51:24]CommunicateWithHost lk.salyk.kg:30040 [20:51:24]ConnectInit lk.salyk.kg [20:51:24]written 0, free lines is 4095 [20:51:24]Connected sock=10 [20:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 18 3A 02 02 87 07 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 35 36 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 CB A5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9D 68 01 00 35 04 06 00 FC 23 17 88 B3 FE F7 79 4E 11 7C BA CC D2 [20:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 24 C6 47 00 A4 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 34 36 39 32 10 04 04 00 9D 68 01 00 F4 03 04 00 48 4E E4 66 B6 04 01 00 00 C7 3E 75 08 74 02 09 4F [20:51:24]CommunicateWithHost err = 0 [20:51:24]CheckOFDResponse [20:51:24]1017 (14) - 77093643461234 [20:51:24]1041 (16) - 0000000000874692 [20:51:24]1040 (4) - 92317 [20:51:24]1012 (4) - 13.09.2024 14:38 [20:51:24]1206 (1) - 0 [20:51:24]OFD Sender: Remove packet 92317 [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00092317 [20:51:24]NVStorageDeleteData [20:51:24]Write to MH i2c: 01 00 00 C7 08 CF [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 93 0C 75 [20:51:24]RasterBufferAndPrint [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]written 0, free lines is 3225 [20:51:24]MH_Cut [20:51:24]Write to MH i2c: D1 01 00 CE 08 01 A8 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 CE 08 00 A7 [20:51:24]Write to MH i2c: 01 00 00 CF 08 D7 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:25]OFD Sender: No OFD packet to send [20:51:25]*** Cut start [20:51:25]*** Purtial cut [20:51:25]*** Stage 1: CUTSNS_PIN = 1 [20:51:27]Read from MH i2c: 01 [20:51:27]MH_I2C_Read... [20:51:27]*** Stop cut motor [20:51:27]*** Cut end [20:51:27]Read from MH i2c: 01 07 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [20:51:27]process_action close_receipt done [20:51:27]requested_data is exist [20:51:27]produce_requested_data [20:51:27]requested_item fm.sn is exist - process it [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 11 00 00 [20:51:27]Write to MH i2c: E2 08 00 D0 08 80 11 00 00 00 00 00 00 52 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 D0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A9 [20:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:51:27]wFMCommunicate OK [20:51:27]requested_item fd.num is exist - process it [20:51:27]SAM_PROTO_GetFieldsCounters [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 00 00 [20:51:27]Write to MH i2c: E2 08 00 D1 08 80 13 00 00 00 00 00 00 55 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 D1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9D 68 01 00 0E 04 04 00 F9 01 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 EB [20:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9D 68 01 00 0E 04 04 00 F9 01 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 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetFieldsCounters done [20:51:27]requested_item shift.num is exist - process it [20:51:27]requested_item shift.opened is exist - process it [20:51:27]req_shift_opened [20:51:27]FM_GetShiftState [20:51:27]SAM_PROTO_GetShiftState [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 01 00 [20:51:27]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E3 [20:51:27]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetShiftState done [20:51:27]FM_GetShiftState done [20:51:27]req_shift_opened done [20:51:27]requested_item shift.open_date is exist - process it [20:51:27]req_shift_open_date [20:51:27]req_shift_open_date done [20:51:27]produce_requested_data done [20:51:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92317,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [20:51:27]process_action_free close_receipt [20:51:27]json_value_free [20:51:27]json_value_free done [20:51:27]process_json_proto returns [20:51:27]Send response to host [20:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92317,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [20:51:27]free response buf [20:51:27]execute_script done [20:51:27]execute_script returns [20:51:27]free content buf [20:51:27]Sock 8.Close socket [20:51:27]Sock 8.Thread stoped [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:21]accept exits with 9 [21:02:21]New connection [21:02:21]New thread 3067235684 created [21:02:21]Thread 3067379044 joined [21:02:21]Waiting for new connection... [21:02:21] Sock 9.Parse request [21:02:21]Sock 9.Check first char [21:02:21]Sock 9.First char is OK [21:02:21]request: POST /json_proto HTTP/1.0 [21:02:21]Method: POST [21:02:21]URL: /json_proto [21:02:21]Method is POST - this is cgi request [21:02:21]url: /json_proto [21:02:21]query_string will be loaded in cgi processing [21:02:21]execute_cgi json_proto POST (null) [21:02:21]execute_cgi path=json_proto method=POST [21:02:21]POST find Content-Length [21:02:21]Host: 172.17.57.71:8080 [21:02:21]Content-Length: 819 [21:02:21]Content-Type: application/json [21:02:21] [21:02:21]POST finish read [21:02:21]Found Content-Length = 819 [21:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:21]execute_script... [21:02: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)647145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:21]POST & json_proto [21:02:21]process_json_proto [21:02:21]json parsed OK: [21:02:21]protocol is kg_v1.0 [21:02:21]action value=close_receipt [21:02:21]process_action close_receipt [21:02:21]cmd_close_receipt [21:02:21]MH_GetDate [21:02:21]Write to MH i2c: F0 00 00 D3 08 CA [21:02:21]Write i2c OK [21:02:21]MH_I2C_Read... [21:02:21]Read from MH i2c: F0 [21:02:21]MH_I2C_Read... [21:02:21]Read from MH i2c: F0 09 00 [21:02:21]MH_I2C_Read... [21:02:21]Read from MH i2c: F0 09 00 D3 08 00 5E A8 E4 66 33 3A A4 66 9A [21:02:21]GetLastDocTimeStamp 1726260683 [21:02:21]current date 1726261342 [21:02:21]FM_GetShiftState [21:02:21]SAM_PROTO_GetShiftState [21:02:21]wFMCommunicate request_size=4 [21:02:21]MH_SAM_APDU [21:02:21]CAPDU: 80 13 01 00 [21:02:21]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [21:02:21]Write i2c OK [21:02:21]MH_I2C_Read... [21:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:21]Read from MH i2c: E2 [21:02:21]MH_I2C_Read... [21:02:21]Read from MH i2c: E2 0E 00 [21:02:21]MH_I2C_Read... [21:02:21]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E5 [21:02:21]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:02:21]wFMCommunicate OK [21:02:21]SAM_PROTO_GetShiftState done [21:02:21]FM_GetShiftState done [21:02:21]opened in 1726186930 [21:02:21]opened+sec_in_day 1726273330 [21:02:21]quantity*price = 100060 [21:02:21]sum+1 = 100062 [21:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 126 13.09.2024 21:02 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92318 ФПД: 47775844815310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210222&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92318&fm=47775844815310&tin=02508201610067®Number=0000000000091423&sum=100061 [21:02:22]StoreToDocumentArchive [21:02:22]shift 505 fd 92318 [21:02:22]save to /storage/0505/doc_00092318 [21:02:22]save last doc name /storage/0505/doc_00092318 to /storage/kkm_last_doc_name [21:02:22]save OK [21:02:22]Clear old archive folders... [21:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:22]tlvbuf is 01280100 [21:02:22]SAM_PROTO_ClearQueue [21:02:22]wFMCommunicate request_size=4 [21:02:22]MH_SAM_APDU [21:02:22]CAPDU: 80 09 00 00 [21:02:22]Write to MH i2c: E2 08 00 E1 08 80 09 00 00 00 00 00 00 5B [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:22]Read from MH i2c: E2 03 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [21:02:22]RAPDU: 90 00 [21:02:22]wFMCommunicate OK [21:02:22]SAM_PROTO_ClearQueue done [21:02:22]KKMCreateOFDPacket [21:02:22]OFDProtocolAddRootSTLVToBuf [21:02:22]FM_MakeSignedData [21:02:22]FM_MakeSignedData [21:02:22]SAM_PROTO_SignData [21:02:22]wFMCommunicate request_size=4 [21:02:22]MH_SAM_APDU [21:02:22]CAPDU: 80 0D 01 02 [21:02:22]Write to MH i2c: E2 08 00 E2 08 80 0D 01 02 00 00 00 00 63 [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [21:02:22]RAPDU: 90 00 [21:02:22]wFMCommunicate OK [21:02:22]wFMCommunicate request_size=255 [21:02:22]MH_SAM_APDU [21: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 68 01 00 35 04 06 00 2B [21:02:22]Write to MH i2c: E2 02 01 E3 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 68 01 00 35 04 06 00 2B 00 00 CA [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [21:02:22]RAPDU: 90 00 [21:02:22]wFMCommunicate OK [21:02:22]wFMCommunicate request_size=10 [21:02:22]MH_SAM_APDU [21:02:22]CAPDU: 80 0D 02 02 05 73 AE 42 51 CE [21:02:22]Write to MH i2c: E2 0D 00 E4 08 80 0D 02 02 05 00 73 AE 42 51 CE 00 00 F2 [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [21:02:22]RAPDU: 90 00 [21:02:22]wFMCommunicate OK [21:02:22]wFMCommunicate request_size=4 [21:02:22]MH_SAM_APDU [21:02:22]CAPDU: 80 0D 03 02 [21:02:22]Write to MH i2c: E2 08 00 E5 08 80 0D 03 02 00 00 00 00 68 [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 0B 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 0B 00 E5 08 00 68 57 75 E3 A1 E0 39 52 90 00 8C [21:02:22]RAPDU: 68 57 75 E3 A1 E0 39 52 90 00 [21:02:22]wFMCommunicate OK [21:02:22]SAM_PROTO_SignData done [21:02:22]FM_MakeSignedData done [21:02:22]CreateOFDProtocolMessage [21:02:22]wFMCommunicate request_size=4 [21:02:22]MH_SAM_APDU [21:02:22]CAPDU: 80 11 00 00 [21:02:22]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [21:02:22]Write i2c OK [21:02:22]MH_I2C_Read... [21:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:22]Read from MH i2c: E2 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 17 00 [21:02:22]MH_I2C_Read... [21:02:22]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [21:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:02:22]wFMCommunicate OK [21:02:22]CreateOFDProtocolMessage done [21:02:22]OFDSenderStorePacket 92318 [21:02:22]StoreOFDPacket docnum=92318 [21:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 39 36 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 68 01 00 35 04 06 00 2B 73 AE 42 51 CE 68 57 75 E3 A1 E0 39 52 [21:02:22]CheckFolder [21:02:22]dirname=/storage/ofd_packets [21:02:22]CheckFolder done [21:02:22]ProducePacketName [21:02:22]name=ofd_packets/00092318 [21:02:22]NVStorageSaveData ofd_packets/00092318 [21:02:22]File name is /storage/ofd_packets/00092318 [21:02:22]Write 301 bytes [21:02:22]NVStorageSaveData done [21:02:22]OFDSenderStorePacket done [21:02:22]KKMCreateOFDPacket done [21:02:22]NVStorageSaveData kkm_last_timestamp [21:02:22]File name is /storage/kkm_last_timestamp [21:02:22]Write 4 bytes [21:02:22]NVStorageSaveData done [21:02:22]ExternCall_PrintAddStr [21:02:22]wPrintStart [21:02:22]Write to MH i2c: 01 00 00 E7 08 EF [21:02:23]Write i2c OK [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [21:02:23]RasterBufferAndPrint [21:02:23]line Счет N : (1)647145 [21:02:23]line ИНН: 02508201610067 [21:02:23]line Контрольно-Кассовый Чек [21:02:23]line ПРОДАЖА [21:02:23]line ТРК (МРК, ГНК) : 32 [21:02:23]line Товар: 2710124500 [21:02:23]line Аи-95-К-5 [21:02:23]line 13.540 * 73.90 [21:02:23]line = 1000.61 [21:02:23]line НДС 12% НСП 1% [21:02:23]line > о реализуемом товаре [21:02:23]line ИТОГО: 1000.61 [21:02:23]line НСП 1% : 8.85 [21:02:23]line НДС 12% : 106.26 [21:02:23]line Наличными: 0.00 [21:02:23]line Безнал.: 1000.61 [21:02:23]line Место: АЗС № 5 "Партнер Нефть" [21:02:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:02:23]line СНО: Общий режим [21:02:23]line Чек 126 13.09.2024 21:02 [21:02:23]line Смена: 505 ФФД: 1.0 [21:02:23]line ЗНМ: 03000000022 [21:02:23]line РНМ: 0000000000091423 [21:02:23]line Версия ККМ: 001 [21:02:23]line Платежная система: Бакай Банк [21:02:23]line ФМ: 0000000000874692 [21:02:23]line ФД: 92318 [21:02:23]line ФПД: 47775844815310 [21:02:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210222&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92318&fm=47775844815310&tin=02508201610067®Number=0000000000091423&sum=100061 [21:02:23]OFD Sender: Processing packet 92318 [packets to send 63, broken 62] [21:02:23]ProducePacketName [21:02:23]name=ofd_packets/00092318 [21:02:23]OFD Sender: To server: pG, [21:02:23]CommunicateWithHost lk.salyk.kg:30040 [21:02:23]ConnectInit lk.salyk.kg [21:02:23]written 0, free lines is 4095 [21:02:23]Connected sock=10 [21: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 34 36 39 32 0F 01 00 00 39 36 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5E A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 68 01 00 35 04 06 00 2B 73 AE 42 51 CE 68 57 75 E3 A1 E0 39 52 [21:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D3 15 47 00 CA 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9E 68 01 00 F4 03 04 00 DB 50 E4 66 B6 04 01 00 00 92 FB 1B F9 87 4F A4 3A [21:02:23]CommunicateWithHost err = 0 [21:02:23]CheckOFDResponse [21:02:23]1017 (14) - 77093643461234 [21:02:23]1041 (16) - 0000000000874692 [21:02:23]1040 (4) - 92318 [21:02:23]1012 (4) - 13.09.2024 14:48 [21:02:23]1206 (1) - 0 [21:02:23]OFD Sender: Remove packet 92318 [21:02:23]ProducePacketName [21:02:23]name=ofd_packets/00092318 [21:02:23]NVStorageDeleteData [21:02:23]Write to MH i2c: 01 00 00 11 09 1A [21:02:23]Write i2c OK [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 F9 0C 26 [21:02:23]RasterBufferAndPrint [21:02:23]line [21:02:23]line [21:02:23]line [21:02:23]line [21:02:23]line [21:02:23]written 0, free lines is 3326 [21:02:23]MH_Cut [21:02:23]Write to MH i2c: D1 01 00 18 09 01 F3 [21:02:23]Write i2c OK [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: D1 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: D1 01 00 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: D1 01 00 18 09 00 F2 [21:02:23]Write to MH i2c: 01 00 00 19 09 22 [21:02:23]Write i2c OK [21:02:23]MH_I2C_Read... [21:02:24]OFD Sender: No OFD packet to send [21:02:24]*** Cut start [21:02:24]*** Purtial cut [21:02:24]*** Stage 1: CUTSNS_PIN = 1 [21:02:26]Read from MH i2c: 01 [21:02:26]MH_I2C_Read... [21:02:26]*** Stop cut motor [21:02:26]*** Cut end [21:02:26]Read from MH i2c: 01 07 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [21:02:26]process_action close_receipt done [21:02:26]requested_data is exist [21:02:26]produce_requested_data [21:02:26]requested_item fm.sn is exist - process it [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 11 00 00 [21:02:26]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 17 00 [21:02:26]MH_I2C_Read... [21:02:26]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 34 36 39 32 90 00 F4 [21:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:02:26]wFMCommunicate OK [21:02:26]requested_item fd.num is exist - process it [21:02:26]SAM_PROTO_GetFieldsCounters [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 13 00 00 [21:02:26]Write to MH i2c: E2 08 00 1B 09 80 13 00 00 00 00 00 00 A0 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 62 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 62 00 1B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9E 68 01 00 0E 04 04 00 F9 01 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 3A [21:02:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9E 68 01 00 0E 04 04 00 F9 01 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 [21:02:26]wFMCommunicate OK [21:02:26]SAM_PROTO_GetFieldsCounters done [21:02:26]requested_item shift.num is exist - process it [21:02:26]requested_item shift.opened is exist - process it [21:02:26]req_shift_opened [21:02:26]FM_GetShiftState [21:02:26]SAM_PROTO_GetShiftState [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 13 01 00 [21:02:26]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 0E 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2E [21:02:26]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:02:26]wFMCommunicate OK [21:02:26]SAM_PROTO_GetShiftState done [21:02:26]FM_GetShiftState done [21:02:26]req_shift_opened done [21:02:26]requested_item shift.open_date is exist - process it [21:02:26]req_shift_open_date [21:02:26]req_shift_open_date done [21:02:26]produce_requested_data done [21:02:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92318,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:02:26]process_action_free close_receipt [21:02:26]json_value_free [21:02:26]json_value_free done [21:02:26]process_json_proto returns [21:02:26]Send response to host [21:02:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92318,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:02:26]free response buf [21:02:26]execute_script done [21:02:26]execute_script returns [21:02:26]free content buf [21:02:26]Sock 9.Close socket [21:02:26]Sock 9.Thread stoped [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:39]accept exits with 8 [21:04:39]New connection [21:04:39]New thread 3067379044 created [21:04:39]Thread 3067235684 joined [21:04:39]Waiting for new connection... [21:04:39] Sock 8.Parse request [21:04:39]Sock 8.Check first char [21:04:39]Sock 8.First char is OK [21:04:39]request: POST /json_proto HTTP/1.0 [21:04:39]Method: POST [21:04:39]URL: /json_proto [21:04:39]Method is POST - this is cgi request [21:04:39]url: /json_proto [21:04:39]query_string will be loaded in cgi processing [21:04:39]execute_cgi json_proto POST (null) [21:04:39]execute_cgi path=json_proto method=POST [21:04:39]POST find Content-Length [21:04:39]Host: 172.17.57.71:8080 [21:04:39]Content-Length: 701 [21:04:39]Content-Type: application/json [21:04:39] [21:04:39]POST finish read [21:04:39]Found Content-Length = 701 [21:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127248", "tax_sys" : 0, "items" : [ { "code": "8809010072357", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:39]execute_script... [21: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 : (3)127248", "tax_sys" : 0, "items" : [ { "code": "8809010072357", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:39]POST & json_proto [21:04:39]process_json_proto [21:04:39]json parsed OK: [21:04:39]protocol is kg_v1.0 [21:04:39]action value=close_receipt [21:04:39]process_action close_receipt [21:04:39]cmd_close_receipt [21:04:39]MH_GetDate [21:04:39]Write to MH i2c: F0 00 00 1D 09 15 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 09 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 09 00 1D 09 00 E8 A8 E4 66 33 3A A4 66 6F [21:04:39]GetLastDocTimeStamp 1726261342 [21:04:39]current date 1726261480 [21:04:39]FM_GetShiftState [21:04:39]SAM_PROTO_GetShiftState [21:04:39]wFMCommunicate request_size=4 [21:04:39]MH_SAM_APDU [21:04:39]CAPDU: 80 13 01 00 [21:04:39]Write to MH i2c: E2 08 00 1E 09 80 13 01 00 00 00 00 00 A4 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:39]Read from MH i2c: E2 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 0E 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 0E 00 1E 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 30 [21:04:39]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:04:39]wFMCommunicate OK [21:04:39]SAM_PROTO_GetShiftState done [21:04:39]FM_GetShiftState done [21:04:39]opened in 1726186930 [21:04:39]opened+sec_in_day 1726273330 [21:04:39]quantity*price = 19000 [21:04:39]sum+1 = 19001 [21:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 127 13.09.2024 21:04 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92319 ФПД: 50003967020671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92319&fm=50003967020671&tin=02508201610067®Number=0000000000091423&sum=19000 0 [21:04:40]StoreToDocumentArchive [21:04:40]shift 505 fd 92319 [21:04:40]save to /storage/0505/doc_00092319 [21:04:40]save last doc name /storage/0505/doc_00092319 to /storage/kkm_last_doc_name [21:04:40]save OK [21:04:40]Clear old archive folders... [21:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=297 [21:04:40]tlvbuf is 013533F0 [21:04:40]SAM_PROTO_ClearQueue [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 09 00 00 [21:04:40]Write to MH i2c: E2 08 00 2B 09 80 09 00 00 00 00 00 00 A6 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]SAM_PROTO_ClearQueue done [21:04:40]KKMCreateOFDPacket [21:04:40]OFDProtocolAddRootSTLVToBuf [21:04:40]FM_MakeSignedData [21:04:40]FM_MakeSignedData [21:04:40]SAM_PROTO_SignData [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 01 02 [21:04:40]Write to MH i2c: E2 08 00 2C 09 80 0D 01 02 00 00 00 00 AE [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=255 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 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 E8 A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [21:04:40]Write to MH i2c: E2 02 01 2D 09 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 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 E8 A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 26 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=56 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 68 01 00 35 04 06 00 2D 7A 74 B1 0E 7F [21:04:40]Write to MH i2c: E2 3B 00 2E 09 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 68 01 00 35 04 06 00 2D 7A 74 B1 0E 7F 00 00 9B [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 03 02 [21:04:40]Write to MH i2c: E2 08 00 2F 09 80 0D 03 02 00 00 00 00 B3 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0B 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0B 00 2F 09 00 C8 0F F6 D1 5F 0A 56 03 90 00 14 [21:04:41]RAPDU: C8 0F F6 D1 5F 0A 56 03 90 00 [21:04:41]wFMCommunicate OK [21:04:41]SAM_PROTO_SignData done [21:04:41]FM_MakeSignedData done [21:04:41]CreateOFDProtocolMessage [21:04:41]wFMCommunicate request_size=4 [21:04:41]MH_SAM_APDU [21:04:41]CAPDU: 80 11 00 00 [21:04:41]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 17 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0A [21:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:04:41]wFMCommunicate OK [21:04:41]CreateOFDProtocolMessage done [21:04:41]OFDSenderStorePacket 92319 [21:04:41]StoreOFDPacket docnum=92319 [21:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 C5 83 35 01 5A A0 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 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 E8 A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 68 01 00 35 04 06 00 2D 7A 74 B1 0E 7F C8 0F F6 D1 5F 0A 56 03 [21:04:41]CheckFolder [21:04:41]dirname=/storage/ofd_packets [21:04:41]CheckFolder done [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00092319 [21:04:41]NVStorageSaveData ofd_packets/00092319 [21:04:41]File name is /storage/ofd_packets/00092319 [21:04:41]Write 347 bytes [21:04:41]NVStorageSaveData done [21:04:41]OFDSenderStorePacket done [21:04:41]KKMCreateOFDPacket done [21:04:41]NVStorageSaveData kkm_last_timestamp [21:04:41]File name is /storage/kkm_last_timestamp [21:04:41]Write 4 bytes [21:04:41]NVStorageSaveData done [21:04:41]ExternCall_PrintAddStr [21:04:41]wPrintStart [21:04:41]Write to MH i2c: 01 00 00 31 09 3A [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [21:04:41]RasterBufferAndPrint [21:04:41]line Счет N : (3)127248 [21:04:41]line ИНН: 02508201610067 [21:04:41]line Контрольно-Кассовый Чек [21:04:41]line ПРОДАЖА [21:04:41]line Товар: 8809010072357 [21:04:41]line Салфетка NEW KUMO микрофиб желтая [21:04:41]line 1.000 * 190.00 [21:04:41]line = 190.00 [21:04:41]line НДС 12% НСП 1% [21:04:41]line > о реализуемом товаре [21:04:41]line ИТОГО: 190.00 [21:04:41]line НСП 1% : 1.68 [21:04:41]line НДС 12% : 20.18 [21:04:41]line Наличными: 190.00 [21:04:41]line Безнал.: 0.00 [21:04:41]line Место: АЗС № 5 "Партнер Нефть" [21:04:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:04:41]line СНО: Общий режим [21:04:41]line Чек 127 13.09.2024 21:04 [21:04:41]line Смена: 505 ФФД: 1.0 [21:04:41]line ЗНМ: 03000000022 [21:04:41]line РНМ: 0000000000091423 [21:04:41]line Версия ККМ: 001 [21:04:41]line ФМ: 0000000000874692 [21:04:41]line ФД: 92319 [21:04:41]line ФПД: 50003967020671 [21:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92319&fm=50003967020671&tin=02508201610067®Number=0000000000091423&sum=19000 [21:04:41]OFD Sender: Processing packet 92319 [packets to send 63, broken 62] [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00092319 [21:04:41]OFD Sender: To server: pG, [21:04:41]CommunicateWithHost lk.salyk.kg:30040 [21:04:41]ConnectInit lk.salyk.kg [21:04:41]line 0 [21:04:41]written 0, free lines is 4095 [21:04:41]Connected sock=9 [21:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 C5 83 35 01 5A A0 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 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 E8 A8 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 9F 68 01 00 35 04 06 00 2D 7A 74 B1 0E 7F C8 0F F6 D1 5F 0A 56 03 [21:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BE 44 47 00 41 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 34 36 39 32 10 04 04 00 9F 68 01 00 F4 03 04 00 66 51 E4 66 B6 04 01 00 00 46 93 DD EB E9 D6 7E 80 [21:04:41]CommunicateWithHost err = 0 [21:04:41]CheckOFDResponse [21:04:41]1017 (14) - 77093643461234 [21:04:41]1041 (16) - 0000000000874692 [21:04:41]1040 (4) - 92319 [21:04:41]1012 (4) - 13.09.2024 14:51 [21:04:41]1206 (1) - 0 [21:04:41]OFD Sender: Remove packet 92319 [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00092319 [21:04:41]NVStorageDeleteData [21:04:41]Write to MH i2c: 01 00 00 5A 09 63 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 5A 09 00 00 00 00 00 19 0D 90 [21:04:41]RasterBufferAndPrint [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]written 0, free lines is 3362 [21:04:41]MH_Cut [21:04:41]Write to MH i2c: D1 01 00 61 09 01 3C [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 01 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 01 00 61 09 00 3B [21:04:41]Write to MH i2c: 01 00 00 62 09 6B [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:42]OFD Sender: No OFD packet to send [21:04:42]*** Cut start [21:04:42]*** Purtial cut [21:04:42]*** Stage 1: CUTSNS_PIN = 1 [21:04:44]Read from MH i2c: 01 [21:04:44]MH_I2C_Read... [21:04:44]*** Stop cut motor [21:04:44]*** Cut end [21:04:44]Read from MH i2c: 01 07 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [21:04:44]process_action close_receipt done [21:04:44]requested_data is exist [21:04:44]produce_requested_data [21:04:44]requested_item fm.sn is exist - process it [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 11 00 00 [21:04:44]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 17 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3D [21:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:04:44]wFMCommunicate OK [21:04:44]requested_item fd.num is exist - process it [21:04:44]SAM_PROTO_GetFieldsCounters [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 13 00 00 [21:04:44]Write to MH i2c: E2 08 00 64 09 80 13 00 00 00 00 00 00 E9 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 62 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 62 00 64 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9F 68 01 00 0E 04 04 00 F9 01 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 87 [21: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 9F 68 01 00 0E 04 04 00 F9 01 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 [21:04:44]wFMCommunicate OK [21:04:44]SAM_PROTO_GetFieldsCounters done [21:04:44]requested_item shift.num is exist - process it [21:04:44]requested_item shift.opened is exist - process it [21:04:44]req_shift_opened [21:04:44]FM_GetShiftState [21:04:44]SAM_PROTO_GetShiftState [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 13 01 00 [21:04:44]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 0E 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 77 [21:04:44]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:04:44]wFMCommunicate OK [21:04:44]SAM_PROTO_GetShiftState done [21:04:44]FM_GetShiftState done [21:04:44]req_shift_opened done [21:04:44]requested_item shift.open_date is exist - process it [21:04:44]req_shift_open_date [21:04:44]req_shift_open_date done [21:04:44]produce_requested_data done [21:04:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92319,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:04:44]process_action_free close_receipt [21:04:44]json_value_free [21:04:44]json_value_free done [21:04:44]process_json_proto returns [21:04:44]Send response to host [21:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92319,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:04:44]free response buf [21:04:44]execute_script done [21:04:44]execute_script returns [21:04:44]free content buf [21:04:44]Sock 8.Close socket [21:04:44]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:55]accept exits with 10 [21:07:55]New connection [21:07:55]New thread 3067235684 created [21:07:55]Thread 3067379044 joined [21:07:55]Waiting for new connection... [21:07:55] Sock 10.Parse request [21:07:55]Sock 10.Check first char [21:07:55]Sock 10.First char is OK [21:07:55]request: POST /json_proto HTTP/1.0 [21:07:55]Method: POST [21:07:55]URL: /json_proto [21:07:55]Method is POST - this is cgi request [21:07:55]url: /json_proto [21:07:55]query_string will be loaded in cgi processing [21:07:55]execute_cgi json_proto POST (null) [21:07:55]execute_cgi path=json_proto method=POST [21:07:55]POST find Content-Length [21:07:55]Host: 172.17.57.71:8080 [21:07:55]Content-Length: 619 [21:07:55]Content-Type: application/json [21:07:55] [21:07:55]POST finish read [21:07:55]Found Content-Length = 619 [21:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127249", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:55]execute_script... [21:07: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 : (3)127249", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:55]POST & json_proto [21:07:55]process_json_proto [21:07:55]json parsed OK: [21:07:55]protocol is kg_v1.0 [21:07:55]action value=close_receipt [21:07:55]process_action close_receipt [21:07:55]cmd_close_receipt [21:07:55]MH_GetDate [21:07:55]Write to MH i2c: F0 00 00 66 09 5E [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: F0 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: F0 09 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: F0 09 00 66 09 00 AC A9 E4 66 33 3A A4 66 7D [21:07:55]GetLastDocTimeStamp 1726261480 [21:07:55]current date 1726261676 [21:07:55]FM_GetShiftState [21:07:55]SAM_PROTO_GetShiftState [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 13 01 00 [21:07:55]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 0E 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 79 [21:07:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:07:55]wFMCommunicate OK [21:07:55]SAM_PROTO_GetShiftState done [21:07:55]FM_GetShiftState done [21:07:55]opened in 1726186930 [21:07:55]opened+sec_in_day 1726273330 [21:07:55]quantity*price = 14400 [21:07:55]sum+1 = 14401 [21:07:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 128 13.09.2024 21:07 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92320 ФПД: 126620176279068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92320&fm=126620176279068&tin=02508201610067®Number=0000000000091423&sum=14400 0 [21:07:56]StoreToDocumentArchive [21:07:56]shift 505 fd 92320 [21:07:56]save to /storage/0505/doc_00092320 [21:07:56]save last doc name /storage/0505/doc_00092320 to /storage/kkm_last_doc_name [21:07:56]save OK [21:07:56]Clear old archive folders... [21:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:07:56]tlvbuf is 01433F20 [21:07:56]SAM_PROTO_ClearQueue [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 09 00 00 [21:07:56]Write to MH i2c: E2 08 00 74 09 80 09 00 00 00 00 00 00 EF [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]SAM_PROTO_ClearQueue done [21:07:56]KKMCreateOFDPacket [21:07:56]OFDProtocolAddRootSTLVToBuf [21:07:56]FM_MakeSignedData [21:07:56]FM_MakeSignedData [21:07:56]SAM_PROTO_SignData [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 01 02 [21:07:56]Write to MH i2c: E2 08 00 75 09 80 0D 01 02 00 00 00 00 F7 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]wFMCommunicate request_size=255 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 AC A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:07:56]Write to MH i2c: E2 02 01 76 09 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 AC A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 03 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]wFMCommunicate request_size=30 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 A0 68 01 00 35 04 06 00 73 29 0E A0 E6 1C [21:07:56]Write to MH i2c: E2 21 00 77 09 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 A0 68 01 00 35 04 06 00 73 29 0E A0 E6 1C 00 00 4C [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [21:07:56]RAPDU: 90 00 [21:07:56]wFMCommunicate OK [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 0D 03 02 [21:07:56]Write to MH i2c: E2 08 00 78 09 80 0D 03 02 00 00 00 00 FC [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 0B 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 0B 00 78 09 00 FA DA 86 62 AC 57 C8 28 90 00 AC [21:07:56]RAPDU: FA DA 86 62 AC 57 C8 28 90 00 [21:07:56]wFMCommunicate OK [21:07:56]SAM_PROTO_SignData done [21:07:56]FM_MakeSignedData done [21:07:56]CreateOFDProtocolMessage [21:07:56]wFMCommunicate request_size=4 [21:07:56]MH_SAM_APDU [21:07:56]CAPDU: 80 11 00 00 [21:07:56]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:56]Read from MH i2c: E2 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 17 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 53 [21:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:07:56]wFMCommunicate OK [21:07:56]CreateOFDProtocolMessage done [21:07:56]OFDSenderStorePacket 92320 [21:07:56]StoreOFDPacket docnum=92320 [21:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 FF AD 1B 01 5E 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 AC A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 68 01 00 35 04 06 00 73 29 0E A0 E6 1C FA DA 86 62 AC 57 C8 28 [21:07:56]CheckFolder [21:07:56]dirname=/storage/ofd_packets [21:07:56]CheckFolder done [21:07:56]ProducePacketName [21:07:56]name=ofd_packets/00092320 [21:07:56]NVStorageSaveData ofd_packets/00092320 [21:07:56]File name is /storage/ofd_packets/00092320 [21:07:56]Write 321 bytes [21:07:56]NVStorageSaveData done [21:07:56]OFDSenderStorePacket done [21:07:56]KKMCreateOFDPacket done [21:07:56]NVStorageSaveData kkm_last_timestamp [21:07:56]File name is /storage/kkm_last_timestamp [21:07:56]Write 4 bytes [21:07:56]NVStorageSaveData done [21:07:56]ExternCall_PrintAddStr [21:07:56]wPrintStart [21:07:56]Write to MH i2c: 01 00 00 7A 09 83 [21:07:56]Write i2c OK [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 07 00 [21:07:56]MH_I2C_Read... [21:07:56]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [21:07:56]RasterBufferAndPrint [21:07:56]line Счет N : (3)127249 [21:07:56]line ИНН: 02508201610067 [21:07:56]line Контрольно-Кассовый Чек [21:07:56]line ПРОДАЖА [21:07:56]line Товар: 47802995 [21:07:56]line Сигареты Winston XS Silver [21:07:56]line 1.000 * 144.00 [21:07:56]line = 144.00 [21:07:56]line НДС 12% НСП 1% [21:07:56]line > о реализуемом товаре [21:07:56]line ИТОГО: 144.00 [21:07:56]line НСП 1% : 1.27 [21:07:56]line НДС 12% : 15.29 [21:07:56]line Наличными: 144.00 [21:07:56]line Безнал.: 0.00 [21:07:56]line Место: АЗС № 5 "Партнер Нефть" [21:07:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:07:56]line СНО: Общий режим [21:07:56]line Чек 128 13.09.2024 21:07 [21:07:56]line Смена: 505 ФФД: 1.0 [21:07:56]line ЗНМ: 03000000022 [21:07:56]line РНМ: 0000000000091423 [21:07:56]line Версия ККМ: 001 [21:07:56]line ФМ: 0000000000874692 [21:07:56]line ФД: 92320 [21:07:56]line ФПД: 126620176279068 [21:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210756&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92320&fm=126620176279068&tin=02508201610067®Number=0000000000091423&sum=14400 [21:07:57]OFD Sender: Processing packet 92320 [packets to send 63, broken 62] [21:07:57]ProducePacketName [21:07:57]name=ofd_packets/00092320 [21:07:57]OFD Sender: To server: pG, [21:07:57]CommunicateWithHost lk.salyk.kg:30040 [21:07:57]ConnectInit lk.salyk.kg [21:07:57]line 0 [21:07:57]written 0, free lines is 4095 [21:07:57]Connected sock=9 [21:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 FF AD 1B 01 5E 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 AC A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 68 01 00 35 04 06 00 73 29 0E A0 E6 1C FA DA 86 62 AC 57 C8 28 [21:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 78 88 47 00 FA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A0 68 01 00 F4 03 04 00 29 52 E4 66 B6 04 01 00 00 68 30 54 9B CC B0 B7 92 [21:07:57]CommunicateWithHost err = 0 [21:07:57]CheckOFDResponse [21:07:57]1017 (14) - 77093643461234 [21:07:57]1041 (16) - 0000000000874692 [21:07:57]1040 (4) - 92320 [21:07:57]1012 (4) - 13.09.2024 14:54 [21:07:57]1206 (1) - 0 [21:07:57]OFD Sender: Remove packet 92320 [21:07:57]ProducePacketName [21:07:57]name=ofd_packets/00092320 [21:07:57]NVStorageDeleteData [21:07:57]Write to MH i2c: 01 00 00 A2 09 AB [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 07 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 1D 0D DC [21:07:57]RasterBufferAndPrint [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]line [21:07:57]written 0, free lines is 3365 [21:07:57]MH_Cut [21:07:57]Write to MH i2c: D1 01 00 A9 09 01 84 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: D1 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: D1 01 00 [21:07:57]MH_I2C_Read... [21:07:57]Read from MH i2c: D1 01 00 A9 09 00 83 [21:07:57]Write to MH i2c: 01 00 00 AA 09 B3 [21:07:57]Write i2c OK [21:07:57]MH_I2C_Read... [21:07:58]OFD Sender: No OFD packet to send [21:07:58]*** Cut start [21:07:58]*** Purtial cut [21:07:58]*** Stage 1: CUTSNS_PIN = 1 [21:08:00]Read from MH i2c: 01 [21:08:00]MH_I2C_Read... [21:08:00]*** Stop cut motor [21:08:00]*** Cut end [21:08:00]Read from MH i2c: 01 07 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [21:08:00]process_action close_receipt done [21:08:00]requested_data is exist [21:08:00]produce_requested_data [21:08:00]requested_item fm.sn is exist - process it [21:08:00]wFMCommunicate request_size=4 [21:08:00]MH_SAM_APDU [21:08:00]CAPDU: 80 11 00 00 [21:08:00]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:00]Read from MH i2c: E2 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 17 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 85 [21:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:08:00]wFMCommunicate OK [21:08:00]requested_item fd.num is exist - process it [21:08:00]SAM_PROTO_GetFieldsCounters [21:08:00]wFMCommunicate request_size=4 [21:08:00]MH_SAM_APDU [21:08:00]CAPDU: 80 13 00 00 [21:08:00]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:00]Read from MH i2c: E2 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 62 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 62 00 AC 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A0 68 01 00 0E 04 04 00 F9 01 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 D3 [21:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A0 68 01 00 0E 04 04 00 F9 01 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 [21:08:00]wFMCommunicate OK [21:08:00]SAM_PROTO_GetFieldsCounters done [21:08:00]requested_item shift.num is exist - process it [21:08:00]requested_item shift.opened is exist - process it [21:08:00]req_shift_opened [21:08:00]FM_GetShiftState [21:08:00]SAM_PROTO_GetShiftState [21:08:00]wFMCommunicate request_size=4 [21:08:00]MH_SAM_APDU [21:08:00]CAPDU: 80 13 01 00 [21:08:00]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:00]Read from MH i2c: E2 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 0E 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 BF [21:08:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:08:00]wFMCommunicate OK [21:08:00]SAM_PROTO_GetShiftState done [21:08:00]FM_GetShiftState done [21:08:00]req_shift_opened done [21:08:00]requested_item shift.open_date is exist - process it [21:08:00]req_shift_open_date [21:08:00]req_shift_open_date done [21:08:00]produce_requested_data done [21:08:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92320,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:08:00]process_action_free close_receipt [21:08:00]json_value_free [21:08:00]json_value_free done [21:08:00]process_json_proto returns [21:08:00]Send response to host [21:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92320,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:08:00]free response buf [21:08:00]execute_script done [21:08:00]execute_script returns [21:08:00]free content buf [21:08:00]Sock 10.Close socket [21:08:00]Sock 10.Thread stoped [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:30]accept exits with 8 [21:08:30]New connection [21:08:30]New thread 3067379044 created [21:08:30]Thread 3067235684 joined [21:08:30]Waiting for new connection... [21:08:30] Sock 8.Parse request [21:08:30]Sock 8.Check first char [21:08:30]Sock 8.First char is OK [21:08:30]request: POST /json_proto HTTP/1.0 [21:08:30]Method: POST [21:08:30]URL: /json_proto [21:08:30]Method is POST - this is cgi request [21:08:30]url: /json_proto [21:08:30]query_string will be loaded in cgi processing [21:08:30]execute_cgi json_proto POST (null) [21:08:30]execute_cgi path=json_proto method=POST [21:08:30]POST find Content-Length [21:08:30]Host: 172.17.57.71:8080 [21:08:30]Content-Length: 808 [21:08:30]Content-Type: application/json [21:08:30] [21:08:30]POST finish read [21:08:30]Found Content-Length = 808 [21:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647147", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:30]execute_script... [21:08: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)647147", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:30]POST & json_proto [21:08:30]process_json_proto [21:08:30]json parsed OK: [21:08:30]protocol is kg_v1.0 [21:08:30]action value=close_receipt [21:08:30]process_action close_receipt [21:08:30]cmd_close_receipt [21:08:30]MH_GetDate [21:08:30]Write to MH i2c: F0 00 00 AE 09 A6 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: F0 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: F0 09 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: F0 09 00 AE 09 00 CF A9 E4 66 33 3A A4 66 E8 [21:08:30]GetLastDocTimeStamp 1726261676 [21:08:30]current date 1726261711 [21:08:30]FM_GetShiftState [21:08:30]SAM_PROTO_GetShiftState [21:08:30]wFMCommunicate request_size=4 [21:08:30]MH_SAM_APDU [21:08:30]CAPDU: 80 13 01 00 [21:08:30]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:30]Read from MH i2c: E2 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 0E 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C1 [21:08:30]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:08:30]wFMCommunicate OK [21:08:30]SAM_PROTO_GetShiftState done [21:08:30]FM_GetShiftState done [21:08:30]opened in 1726186930 [21:08:30]opened+sec_in_day 1726273330 [21:08:30]quantity*price = 100015 [21:08:30]sum+1 = 100017 [21:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 129 13.09.2024 21:08 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92321 ФПД: 215278219711608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92321&fm=215278219711608&tin=02508201610067®Number=0000000000091423&sum=100016 [21:08:31]StoreToDocumentArchive [21:08:31]shift 505 fd 92321 [21:08:31]save to /storage/0505/doc_00092321 [21:08:31]save last doc name /storage/0505/doc_00092321 to /storage/kkm_last_doc_name [21:08:31]save OK [21:08:31]Clear old archive folders... [21:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:31]tlvbuf is 012D68F0 [21:08:31]SAM_PROTO_ClearQueue [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 09 00 00 [21:08:31]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [21:08:31]RAPDU: 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_ClearQueue done [21:08:31]KKMCreateOFDPacket [21:08:31]OFDProtocolAddRootSTLVToBuf [21:08:31]FM_MakeSignedData [21:08:31]FM_MakeSignedData [21:08:31]SAM_PROTO_SignData [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 0D 01 02 [21:08:31]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [21:08:31]RAPDU: 90 00 [21:08:31]wFMCommunicate OK [21:08:31]wFMCommunicate request_size=255 [21:08:31]MH_SAM_APDU [21:08: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 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 81 00 00 00 F4 03 04 00 CF A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 68 01 00 35 04 06 00 C3 [21:08:31]Write to MH i2c: E2 02 01 BE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 81 00 00 00 F4 03 04 00 CF A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 68 01 00 35 04 06 00 C3 00 00 F0 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [21:08:31]RAPDU: 90 00 [21:08:31]wFMCommunicate OK [21:08:31]wFMCommunicate request_size=10 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 0D 02 02 05 CB 5D D0 54 78 [21:08:31]Write to MH i2c: E2 0D 00 BF 09 80 0D 02 02 05 00 CB 5D D0 54 78 00 00 10 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [21:08:31]RAPDU: 90 00 [21:08:31]wFMCommunicate OK [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 0D 03 02 [21:08:31]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0B 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0B 00 C0 09 00 85 02 AD 0E B9 15 66 5B 90 00 16 [21:08:31]RAPDU: 85 02 AD 0E B9 15 66 5B 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_SignData done [21:08:31]FM_MakeSignedData done [21:08:31]CreateOFDProtocolMessage [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 11 00 00 [21:08:31]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 17 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9B [21:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:08:31]wFMCommunicate OK [21:08:31]CreateOFDProtocolMessage done [21:08:31]OFDSenderStorePacket 92321 [21:08:31]StoreOFDPacket docnum=92321 [21:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 1B 21 07 01 73 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 81 00 00 00 F4 03 04 00 CF A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 68 01 00 35 04 06 00 C3 CB 5D D0 54 78 85 02 AD 0E B9 15 66 5B [21:08:31]CheckFolder [21:08:31]dirname=/storage/ofd_packets [21:08:31]CheckFolder done [21:08:31]ProducePacketName [21:08:31]name=ofd_packets/00092321 [21:08:31]NVStorageSaveData ofd_packets/00092321 [21:08:31]File name is /storage/ofd_packets/00092321 [21:08:31]Write 301 bytes [21:08:31]NVStorageSaveData done [21:08:31]OFDSenderStorePacket done [21:08:31]KKMCreateOFDPacket done [21:08:31]NVStorageSaveData kkm_last_timestamp [21:08:31]File name is /storage/kkm_last_timestamp [21:08:31]Write 4 bytes [21:08:31]NVStorageSaveData done [21:08:31]ExternCall_PrintAddStr [21:08:31]wPrintStart [21:08:31]Write to MH i2c: 01 00 00 C2 09 CB [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: 01 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: 01 07 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [21:08:31]RasterBufferAndPrint [21:08:31]line Счет N : (1)647147 [21:08:31]line ИНН: 02508201610067 [21:08:31]line Контрольно-Кассовый Чек [21:08:31]line ПРОДАЖА [21:08:31]line ТРК (МРК, ГНК) : 33 [21:08:31]line Товар: 2710124130 [21:08:31]line Аи-92-К-5 [21:08:31]line 14.950 * 66.90 [21:08:31]line = 1000.16 [21:08:31]line НДС 12% НСП 1% [21:08:31]line > о реализуемом товаре [21:08:31]line ИТОГО: 1000.16 [21:08:31]line НСП 1% : 8.85 [21:08:31]line НДС 12% : 106.21 [21:08:31]line Наличными: 0.00 [21:08:31]line Безнал.: 1000.16 [21:08:31]line Место: АЗС № 5 "Партнер Нефть" [21:08:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:08:31]line СНО: Общий режим [21:08:31]line Чек 129 13.09.2024 21:08 [21:08:31]line Смена: 505 ФФД: 1.0 [21:08:31]line ЗНМ: 03000000022 [21:08:31]line РНМ: 0000000000091423 [21:08:31]line Версия ККМ: 001 [21:08:31]line Платежная система: О! деньги [21:08:31]line ФМ: 0000000000874692 [21:08:31]line ФД: 92321 [21:08:31]line ФПД: 215278219711608 [21:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92321&fm=215278219711608&tin=02508201610067®Number=0000000000091423&sum=100016 [21:08:32]OFD Sender: Processing packet 92321 [packets to send 63, broken 62] [21:08:32]ProducePacketName [21:08:32]name=ofd_packets/00092321 [21:08:32]OFD Sender: To server: pG, [21:08:32]CommunicateWithHost lk.salyk.kg:30040 [21:08:32]ConnectInit lk.salyk.kg [21:08:32]written 0, free lines is 4095 [21:08:32]Connected sock=10 [21:08:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 1B 21 07 01 73 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 81 00 00 00 F4 03 04 00 CF A9 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 68 01 00 35 04 06 00 C3 CB 5D D0 54 78 85 02 AD 0E B9 15 66 5B [21:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6E A8 47 00 0D 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A1 68 01 00 F4 03 04 00 4C 52 E4 66 B6 04 01 00 00 A9 AF 62 82 F5 F2 C7 F3 [21:08:32]CommunicateWithHost err = 0 [21:08:32]CheckOFDResponse [21:08:32]1017 (14) - 77093643461234 [21:08:32]1041 (16) - 0000000000874692 [21:08:32]1040 (4) - 92321 [21:08:32]1012 (4) - 13.09.2024 14:55 [21:08:32]1206 (1) - 0 [21:08:32]OFD Sender: Remove packet 92321 [21:08:32]ProducePacketName [21:08:32]name=ofd_packets/00092321 [21:08:32]NVStorageDeleteData [21:08:32]Write to MH i2c: 01 00 00 EC 09 F5 [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: 01 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: 01 07 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 14 0D 1D [21:08:32]RasterBufferAndPrint [21:08:32]line [21:08:32]line [21:08:32]line [21:08:32]line [21:08:32]line [21:08:32]written 0, free lines is 3354 [21:08:32]MH_Cut [21:08:32]Write to MH i2c: D1 01 00 F3 09 01 CE [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: D1 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: D1 01 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: D1 01 00 F3 09 00 CD [21:08:32]Write to MH i2c: 01 00 00 F4 09 FD [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]OFD Sender: No OFD packet to send [21:08:33]*** Cut start [21:08:33]*** Purtial cut [21:08:33]*** Stage 1: CUTSNS_PIN = 1 [21:08:35]Read from MH i2c: 01 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 [21:08:35]MH_I2C_Read... [21:08:35]*** Stop cut motor [21:08:35]*** Cut end [21:08:35]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 FF 0F 12 [21:08:35]process_action close_receipt done [21:08:35]requested_data is exist [21:08:35]produce_requested_data [21:08:35]requested_item fm.sn is exist - process it [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 11 00 00 [21:08:35]Write to MH i2c: E2 08 00 F5 09 80 11 00 00 00 00 00 00 78 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 [21:08:35]MH_I2C_Read... [21:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:35]Read from MH i2c: E2 17 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 17 00 F5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [21:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:08:35]wFMCommunicate OK [21:08:35]requested_item fd.num is exist - process it [21:08:35]SAM_PROTO_GetFieldsCounters [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 13 00 00 [21:08:35]Write to MH i2c: E2 08 00 F6 09 80 13 00 00 00 00 00 00 7B [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:35]Read from MH i2c: E2 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 62 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 62 00 F6 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A1 68 01 00 0E 04 04 00 F9 01 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 21 [21:08:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A1 68 01 00 0E 04 04 00 F9 01 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 [21:08:35]wFMCommunicate OK [21:08:35]SAM_PROTO_GetFieldsCounters done [21:08:35]requested_item shift.num is exist - process it [21:08:35]requested_item shift.opened is exist - process it [21:08:35]req_shift_opened [21:08:35]FM_GetShiftState [21:08:35]SAM_PROTO_GetShiftState [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 13 01 00 [21:08:35]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:35]Read from MH i2c: E2 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 0E 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 09 [21:08:35]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:08:35]wFMCommunicate OK [21:08:35]SAM_PROTO_GetShiftState done [21:08:35]FM_GetShiftState done [21:08:35]req_shift_opened done [21:08:35]requested_item shift.open_date is exist - process it [21:08:35]req_shift_open_date [21:08:35]req_shift_open_date done [21:08:35]produce_requested_data done [21:08:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92321,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:08:35]process_action_free close_receipt [21:08:35]json_value_free [21:08:35]json_value_free done [21:08:35]process_json_proto returns [21:08:35]Send response to host [21:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92321,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:08:35]free response buf [21:08:35]execute_script done [21:08:35]execute_script returns [21:08:35]free content buf [21:08:35]Sock 8.Close socket [21:08:35]Sock 8.Thread stoped [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [21:09:31]New connection [21:09:31]New thread 3067235684 created [21:09:31]Thread 3067379044 joined [21:09:31]Waiting for new connection... [21:09:31] Sock 9.Parse request [21:09:31]Sock 9.Check first char [21:09:31]Sock 9.First char is OK [21:09:31]request: POST /json_proto HTTP/1.0 [21:09:31]Method: POST [21:09:31]URL: /json_proto [21:09:31]Method is POST - this is cgi request [21:09:31]url: /json_proto [21:09:31]query_string will be loaded in cgi processing [21:09:31]execute_cgi json_proto POST (null) [21:09:31]execute_cgi path=json_proto method=POST [21:09:31]POST find Content-Length [21:09:31]Host: 172.17.57.71:8080 [21:09:31]Content-Length: 805 [21:09:31]Content-Type: application/json [21:09:31] [21:09:31]POST finish read [21:09:31]Found Content-Length = 805 [21:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:31]execute_script... [21:09: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)647149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:31]POST & json_proto [21:09:31]process_json_proto [21:09:31]json parsed OK: [21:09:31]protocol is kg_v1.0 [21:09:31]action value=close_receipt [21:09:31]process_action close_receipt [21:09:31]cmd_close_receipt [21:09:31]MH_GetDate [21:09:31]Write to MH i2c: F0 00 00 F8 09 F0 [21:09:31]Write i2c OK [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 09 00 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 09 00 F8 09 00 0C AA E4 66 33 3A A4 66 70 [21:09:31]GetLastDocTimeStamp 1726261711 [21:09:31]current date 1726261772 [21:09:31]FM_GetShiftState [21:09:31]SAM_PROTO_GetShiftState [21:09:31]wFMCommunicate request_size=4 [21:09:31]MH_SAM_APDU [21:09:31]CAPDU: 80 13 01 00 [21:09:31]Write to MH i2c: E2 08 00 F9 09 80 13 01 00 00 00 00 00 7F [21:09:31]Write i2c OK [21:09:31]MH_I2C_Read... [21:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:31]Read from MH i2c: E2 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: E2 0E 00 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: E2 0E 00 F9 09 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0B [21:09:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:09:31]wFMCommunicate OK [21:09:31]SAM_PROTO_GetShiftState done [21:09:31]FM_GetShiftState done [21:09:31]opened in 1726186930 [21:09:31]opened+sec_in_day 1726273330 [21:09:31]quantity*price = 45023 [21:09:31]sum+1 = 45025 [21:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.24 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.24 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 130 13.09.2024 21:09 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92322 ФПД: 16921431291563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210932&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92322&fm=16921431291563&tin=02508201610067®Number=0000000000091423&sum=45024 [21:09:32]StoreToDocumentArchive [21:09:32]shift 505 fd 92322 [21:09:32]save to /storage/0505/doc_00092322 [21:09:32]save last doc name /storage/0505/doc_00092322 to /storage/kkm_last_doc_name [21:09:32]save OK [21:09:32]Clear old archive folders... [21:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:32]tlvbuf is 01391D40 [21:09:32]SAM_PROTO_ClearQueue [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 09 00 00 [21:09:32]Write to MH i2c: E2 08 00 06 0A 80 09 00 00 00 00 00 00 82 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]SAM_PROTO_ClearQueue done [21:09:32]KKMCreateOFDPacket [21:09:32]OFDProtocolAddRootSTLVToBuf [21:09:32]FM_MakeSignedData [21:09:32]FM_MakeSignedData [21:09:32]SAM_PROTO_SignData [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 01 02 [21:09:32]Write to MH i2c: E2 08 00 07 0A 80 0D 01 02 00 00 00 00 8A [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=255 [21:09:32]MH_SAM_APDU [21:09: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 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 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0C AA E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 68 01 00 35 04 06 00 0F [21:09:32]Write to MH i2c: E2 02 01 08 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 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 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0C AA E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 68 01 00 35 04 06 00 0F 00 00 C3 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=10 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 02 02 05 63 D3 E6 B6 AB [21:09:32]Write to MH i2c: E2 0D 00 09 0A 80 0D 02 02 05 00 63 D3 E6 B6 AB 00 00 14 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 03 02 [21:09:32]Write to MH i2c: E2 08 00 0A 0A 80 0D 03 02 00 00 00 00 8F [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 0B 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 0B 00 0A 0A 00 08 95 7D 97 9F 5E 16 77 90 00 CB [21:09:32]RAPDU: 08 95 7D 97 9F 5E 16 77 90 00 [21:09:32]wFMCommunicate OK [21:09:32]SAM_PROTO_SignData done [21:09:32]FM_MakeSignedData done [21:09:32]CreateOFDProtocolMessage [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 11 00 00 [21:09:32]Write to MH i2c: E2 08 00 0B 0A 80 11 00 00 00 00 00 00 8F [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 17 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 17 00 0B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [21:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:09:32]wFMCommunicate OK [21:09:32]CreateOFDProtocolMessage done [21:09:32]OFDSenderStorePacket 92322 [21:09:32]StoreOFDPacket docnum=92322 [21:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 47 BE 07 01 20 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0C AA E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 68 01 00 35 04 06 00 0F 63 D3 E6 B6 AB 08 95 7D 97 9F 5E 16 77 [21:09:32]CheckFolder [21:09:32]dirname=/storage/ofd_packets [21:09:32]CheckFolder done [21:09:32]ProducePacketName [21:09:32]name=ofd_packets/00092322 [21:09:32]NVStorageSaveData ofd_packets/00092322 [21:09:32]File name is /storage/ofd_packets/00092322 [21:09:32]Write 301 bytes [21:09:32]NVStorageSaveData done [21:09:32]OFDSenderStorePacket done [21:09:32]KKMCreateOFDPacket done [21:09:32]NVStorageSaveData kkm_last_timestamp [21:09:32]File name is /storage/kkm_last_timestamp [21:09:32]Write 4 bytes [21:09:32]NVStorageSaveData done [21:09:32]ExternCall_PrintAddStr [21:09:32]wPrintStart [21:09:32]Write to MH i2c: 01 00 00 0C 0A 16 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 07 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 FF 0F 2B [21:09:32]RasterBufferAndPrint [21:09:32]line Счет N : (1)647149 [21:09:32]line ИНН: 02508201610067 [21:09:32]line Контрольно-Кассовый Чек [21:09:32]line ПРОДАЖА [21:09:32]line ТРК (МРК, ГНК) : 13 [21:09:32]line Товар: 2710124130 [21:09:32]line Аи-92-К-5 [21:09:32]line 6.730 * 66.90 [21:09:32]line = 450.24 [21:09:32]line НДС 12% НСП 1% [21:09:32]line > о реализуемом товаре [21:09:32]line ИТОГО: 450.24 [21:09:32]line НСП 1% : 3.98 [21:09:32]line НДС 12% : 47.81 [21:09:32]line Наличными: 0.00 [21:09:32]line Безнал.: 450.24 [21:09:32]line Место: АЗС № 5 "Партнер Нефть" [21:09:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:09:32]line СНО: Общий режим [21:09:32]line Чек 130 13.09.2024 21:09 [21:09:32]line Смена: 505 ФФД: 1.0 [21:09:32]line ЗНМ: 03000000022 [21:09:32]line РНМ: 0000000000091423 [21:09:32]line Версия ККМ: 001 [21:09:32]line Платежная система: О! деньги [21:09:32]line ФМ: 0000000000874692 [21:09:32]line ФД: 92322 [21:09:32]line ФПД: 16921431291563 [21:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T210932&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92322&fm=16921431291563&tin=02508201610067®Number=0000000000091423&sum=45024 [21:09:33]written 0, free lines is 4095 [21:09:33]OFD Sender: Processing packet 92322 [packets to send 63, broken 62] [21:09:33]ProducePacketName [21:09:33]name=ofd_packets/00092322 [21:09:33]OFD Sender: To server: pG, [21:09:33]CommunicateWithHost lk.salyk.kg:30040 [21:09:33]ConnectInit lk.salyk.kg [21:09:33]Connected sock=10 [21:09:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 47 BE 07 01 20 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0C AA E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A2 68 01 00 35 04 06 00 0F 63 D3 E6 B6 AB 08 95 7D 97 9F 5E 16 77 [21:09:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B 19 47 00 BE 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 34 36 39 32 10 04 04 00 A2 68 01 00 F4 03 04 00 89 52 E4 66 B6 04 01 00 00 6F 47 C7 2A E3 8C D1 47 [21:09:33]CommunicateWithHost err = 0 [21:09:33]CheckOFDResponse [21:09:33]1017 (14) - 77093643461234 [21:09:33]1041 (16) - 0000000000874692 [21:09:33]1040 (4) - 92322 [21:09:33]1012 (4) - 13.09.2024 14:56 [21:09:33]1206 (1) - 0 [21:09:33]OFD Sender: Remove packet 92322 [21:09:33]ProducePacketName [21:09:33]name=ofd_packets/00092322 [21:09:33]NVStorageDeleteData [21:09:33]Write to MH i2c: 01 00 00 36 0A 40 [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 07 00 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 07 00 36 0A 00 00 00 00 00 08 0D 5C [21:09:33]RasterBufferAndPrint [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]written 0, free lines is 3342 [21:09:33]MH_Cut [21:09:33]Write to MH i2c: D1 01 00 3D 0A 01 19 [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 01 00 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 01 00 3D 0A 00 18 [21:09:33]Write to MH i2c: 01 00 00 3E 0A 48 [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:33]OFD Sender: No OFD packet to send [21:09:34]*** Cut start [21:09:34]*** Purtial cut [21:09:34]*** Stage 1: CUTSNS_PIN = 1 [21:09:36]Read from MH i2c: 01 [21:09:36]MH_I2C_Read... [21:09:36]*** Stop cut motor [21:09:36]*** Cut end [21:09:36]Read from MH i2c: 01 07 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: 01 07 00 3E 0A 00 00 00 00 00 FF 0F 5D [21:09:36]process_action close_receipt done [21:09:36]requested_data is exist [21:09:36]produce_requested_data [21:09:36]requested_item fm.sn is exist - process it [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 11 00 00 [21:09:36]Write to MH i2c: E2 08 00 3F 0A 80 11 00 00 00 00 00 00 C3 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 17 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 17 00 3F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1A [21:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:09:36]wFMCommunicate OK [21:09:36]requested_item fd.num is exist - process it [21:09:36]SAM_PROTO_GetFieldsCounters [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 13 00 00 [21:09:36]Write to MH i2c: E2 08 00 40 0A 80 13 00 00 00 00 00 00 C6 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 62 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 62 00 40 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A2 68 01 00 0E 04 04 00 F9 01 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 70 [21:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A2 68 01 00 0E 04 04 00 F9 01 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 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_GetFieldsCounters done [21:09:36]requested_item shift.num is exist - process it [21:09:36]requested_item shift.opened is exist - process it [21:09:36]req_shift_opened [21:09:36]FM_GetShiftState [21:09:36]SAM_PROTO_GetShiftState [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 13 01 00 [21:09:36]Write to MH i2c: E2 08 00 41 0A 80 13 01 00 00 00 00 00 C8 [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 41 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 54 [21:09:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_GetShiftState done [21:09:36]FM_GetShiftState done [21:09:36]req_shift_opened done [21:09:36]requested_item shift.open_date is exist - process it [21:09:36]req_shift_open_date [21:09:36]req_shift_open_date done [21:09:36]produce_requested_data done [21:09:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92322,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:09:36]process_action_free close_receipt [21:09:36]json_value_free [21:09:36]json_value_free done [21:09:36]process_json_proto returns [21:09:36]Send response to host [21:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92322,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:09:36]free response buf [21:09:36]execute_script done [21:09:36]execute_script returns [21:09:36]free content buf [21:09:36]Sock 9.Close socket [21:09:36]Sock 9.Thread stoped [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:31]accept exits with 8 [21:14:31]New connection [21:14:31]New thread 3067379044 created [21:14:31]Thread 3067235684 joined [21:14:31]Waiting for new connection... [21:14:31] Sock 8.Parse request [21:14:31]Sock 8.Check first char [21:14:31]Sock 8.First char is OK [21:14:31]request: POST /json_proto HTTP/1.0 [21:14:31]Method: POST [21:14:31]URL: /json_proto [21:14:31]Method is POST - this is cgi request [21:14:31]url: /json_proto [21:14:31]query_string will be loaded in cgi processing [21:14:31]execute_cgi json_proto POST (null) [21:14:31]execute_cgi path=json_proto method=POST [21:14:31]POST find Content-Length [21:14:31]Host: 172.17.57.71:8080 [21:14:31]Content-Length: 620 [21:14:31]Content-Type: application/json [21:14:31] [21:14:31]POST finish read [21:14:31]Found Content-Length = 620 [21:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127250", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:31]execute_script... [21:14: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 : (3)127250", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:31]POST & json_proto [21:14:31]process_json_proto [21:14:31]json parsed OK: [21:14:31]protocol is kg_v1.0 [21:14:31]action value=close_receipt [21:14:31]process_action close_receipt [21:14:31]cmd_close_receipt [21:14:31]MH_GetDate [21:14:31]Write to MH i2c: F0 00 00 42 0A 3B [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 09 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 09 00 42 0A 00 38 AB E4 66 33 3A A4 66 E8 [21:14:31]GetLastDocTimeStamp 1726261772 [21:14:31]current date 1726262072 [21:14:31]FM_GetShiftState [21:14:31]SAM_PROTO_GetShiftState [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 01 00 [21:14:31]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 56 [21:14:31]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetShiftState done [21:14:31]FM_GetShiftState done [21:14:31]opened in 1726186930 [21:14:31]opened+sec_in_day 1726273330 [21:14:31]quantity*price = 15000 [21:14:31]sum+1 = 15001 [21:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 131 13.09.2024 21:14 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92323 ФПД: 85733950466764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T211432&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92323&fm=85733950466764&tin=02508201610067®Number=0000000000091423&sum=15000 0 [21:14:32]StoreToDocumentArchive [21:14:32]shift 505 fd 92323 [21:14:32]save to /storage/0505/doc_00092323 [21:14:32]save last doc name /storage/0505/doc_00092323 to /storage/kkm_last_doc_name [21:14:32]save OK [21:14:32]Clear old archive folders... [21:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:14:32]tlvbuf is 01391BE0 [21:14:32]SAM_PROTO_ClearQueue [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 09 00 00 [21:14:32]Write to MH i2c: E2 08 00 50 0A 80 09 00 00 00 00 00 00 CC [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]SAM_PROTO_ClearQueue done [21:14:32]KKMCreateOFDPacket [21:14:32]OFDProtocolAddRootSTLVToBuf [21:14:32]FM_MakeSignedData [21:14:32]FM_MakeSignedData [21:14:32]SAM_PROTO_SignData [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 01 02 [21:14:32]Write to MH i2c: E2 08 00 51 0A 80 0D 01 02 00 00 00 00 D4 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]wFMCommunicate request_size=255 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 38 AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [21:14:32]Write to MH i2c: E2 02 01 52 0A 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 38 AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 00 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]wFMCommunicate request_size=31 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 A3 68 01 00 35 04 06 00 4D F9 7D A9 AA CC [21:14:32]Write to MH i2c: E2 22 00 53 0A 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 A3 68 01 00 35 04 06 00 4D F9 7D A9 AA CC 00 00 F4 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 03 02 [21:14:32]Write to MH i2c: E2 08 00 54 0A 80 0D 03 02 00 00 00 00 D9 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 0B 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 0B 00 54 0A 00 7E 7E 4F 16 4C 50 B8 49 90 00 D8 [21:14:32]RAPDU: 7E 7E 4F 16 4C 50 B8 49 90 00 [21:14:32]wFMCommunicate OK [21:14:32]SAM_PROTO_SignData done [21:14:32]FM_MakeSignedData done [21:14:32]CreateOFDProtocolMessage [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 11 00 00 [21:14:32]Write to MH i2c: E2 08 00 55 0A 80 11 00 00 00 00 00 00 D9 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 55 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 30 [21:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:14:33]wFMCommunicate OK [21:14:33]CreateOFDProtocolMessage done [21:14:33]OFDSenderStorePacket 92323 [21:14:33]StoreOFDPacket docnum=92323 [21:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 1A F2 1C 01 8C D8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 38 AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 68 01 00 35 04 06 00 4D F9 7D A9 AA CC 7E 7E 4F 16 4C 50 B8 49 [21:14:33]CheckFolder [21:14:33]dirname=/storage/ofd_packets [21:14:33]CheckFolder done [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00092323 [21:14:33]NVStorageSaveData ofd_packets/00092323 [21:14:33]File name is /storage/ofd_packets/00092323 [21:14:33]Write 322 bytes [21:14:33]NVStorageSaveData done [21:14:33]OFDSenderStorePacket done [21:14:33]KKMCreateOFDPacket done [21:14:33]NVStorageSaveData kkm_last_timestamp [21:14:33]File name is /storage/kkm_last_timestamp [21:14:33]Write 4 bytes [21:14:33]NVStorageSaveData done [21:14:33]ExternCall_PrintAddStr [21:14:33]wPrintStart [21:14:33]Write to MH i2c: 01 00 00 56 0A 60 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 56 0A 00 00 00 00 00 FF 0F 75 [21:14:33]RasterBufferAndPrint [21:14:33]line Счет N : (3)127250 [21:14:33]line ИНН: 02508201610067 [21:14:33]line Контрольно-Кассовый Чек [21:14:33]line ПРОДАЖА [21:14:33]line Товар: 4640030091607 [21:14:33]line Сигареты ESSE Exchange [21:14:33]line 1.000 * 150.00 [21:14:33]line = 150.00 [21:14:33]line НДС 12% НСП 1% [21:14:33]line > о реализуемом товаре [21:14:33]line ИТОГО: 150.00 [21:14:33]line НСП 1% : 1.33 [21:14:33]line НДС 12% : 15.93 [21:14:33]line Наличными: 150.00 [21:14:33]line Безнал.: 0.00 [21:14:33]line Место: АЗС № 5 "Партнер Нефть" [21:14:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:14:33]line СНО: Общий режим [21:14:33]line Чек 131 13.09.2024 21:14 [21:14:33]line Смена: 505 ФФД: 1.0 [21:14:33]line ЗНМ: 03000000022 [21:14:33]line РНМ: 0000000000091423 [21:14:33]line Версия ККМ: 001 [21:14:33]line ФМ: 0000000000874692 [21:14:33]line ФД: 92323 [21:14:33]line ФПД: 85733950466764 [21:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T211432&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92323&fm=85733950466764&tin=02508201610067®Number=0000000000091423&sum=15000 [21:14:33]line 0 [21:14:33]OFD Sender: Processing packet 92323 [packets to send 63, broken 62] [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00092323 [21:14:33]OFD Sender: To server: pG, [21:14:33]CommunicateWithHost lk.salyk.kg:30040 [21:14:33]ConnectInit lk.salyk.kg [21:14:33]written 0, free lines is 4095 [21:14:33]Connected sock=10 [21:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 1A F2 1C 01 8C D8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 38 AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 68 01 00 35 04 06 00 4D F9 7D A9 AA CC 7E 7E 4F 16 4C 50 B8 49 [21:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 91 0E 47 00 BE FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A3 68 01 00 F4 03 04 00 B5 53 E4 66 B6 04 01 00 00 DF AB C9 97 51 DF F2 80 [21:14:33]CommunicateWithHost err = 0 [21:14:33]CheckOFDResponse [21:14:33]1017 (14) - 77093643461234 [21:14:33]1041 (16) - 0000000000874692 [21:14:33]1040 (4) - 92323 [21:14:33]1012 (4) - 13.09.2024 15:01 [21:14:33]1206 (1) - 0 [21:14:33]OFD Sender: Remove packet 92323 [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00092323 [21:14:33]NVStorageDeleteData [21:14:33]Write to MH i2c: 01 00 00 7E 0A 88 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 26 0D C2 [21:14:33]RasterBufferAndPrint [21:14:33]line [21:14:33]line [21:14:33]line [21:14:33]line [21:14:33]line [21:14:33]written 0, free lines is 3375 [21:14:33]MH_Cut [21:14:33]Write to MH i2c: D1 01 00 85 0A 01 61 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: D1 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: D1 01 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: D1 01 00 85 0A 00 60 [21:14:33]Write to MH i2c: 01 00 00 86 0A 90 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:34]OFD Sender: No OFD packet to send [21:14:34]*** Cut start [21:14:34]*** Purtial cut [21:14:34]*** Stage 1: CUTSNS_PIN = 1 [21:14:36]Read from MH i2c: 01 [21:14:36]MH_I2C_Read... [21:14:36]*** Stop cut motor [21:14:36]*** Cut end [21:14:36]Read from MH i2c: 01 07 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [21:14:36]process_action close_receipt done [21:14:36]requested_data is exist [21:14:36]produce_requested_data [21:14:36]requested_item fm.sn is exist - process it [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 11 00 00 [21:14:36]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 17 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 62 [21:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:14:36]wFMCommunicate OK [21:14:36]requested_item fd.num is exist - process it [21:14:36]SAM_PROTO_GetFieldsCounters [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 13 00 00 [21:14:36]Write to MH i2c: E2 08 00 88 0A 80 13 00 00 00 00 00 00 0E [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 62 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 62 00 88 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A3 68 01 00 0E 04 04 00 F9 01 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 BC [21:14:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A3 68 01 00 0E 04 04 00 F9 01 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 [21:14:36]wFMCommunicate OK [21:14:36]SAM_PROTO_GetFieldsCounters done [21:14:36]requested_item shift.num is exist - process it [21:14:36]requested_item shift.opened is exist - process it [21:14:36]req_shift_opened [21:14:36]FM_GetShiftState [21:14:36]SAM_PROTO_GetShiftState [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 13 01 00 [21:14:36]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 0E 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9C [21:14:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:14:36]wFMCommunicate OK [21:14:36]SAM_PROTO_GetShiftState done [21:14:36]FM_GetShiftState done [21:14:36]req_shift_opened done [21:14:36]requested_item shift.open_date is exist - process it [21:14:36]req_shift_open_date [21:14:36]req_shift_open_date done [21:14:36]produce_requested_data done [21:14:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92323,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:14:36]process_action_free close_receipt [21:14:36]json_value_free [21:14:36]json_value_free done [21:14:36]process_json_proto returns [21:14:36]Send response to host [21:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92323,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:14:36]free response buf [21:14:36]execute_script done [21:14:36]execute_script returns [21:14:36]free content buf [21:14:36]Sock 8.Close socket [21:14:36]Sock 8.Thread stoped [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:09]accept exits with 9 [21:15:09]New connection [21:15:09]New thread 3067235684 created [21:15:09]Thread 3067379044 joined [21:15:09]Waiting for new connection... [21:15:09] Sock 9.Parse request [21:15:09]Sock 9.Check first char [21:15:09]Sock 9.First char is OK [21:15:09]request: POST /json_proto HTTP/1.0 [21:15:09]Method: POST [21:15:09]URL: /json_proto [21:15:09]Method is POST - this is cgi request [21:15:09]url: /json_proto [21:15:09]query_string will be loaded in cgi processing [21:15:09]execute_cgi json_proto POST (null) [21:15:09]execute_cgi path=json_proto method=POST [21:15:09]POST find Content-Length [21:15:09]Host: 172.17.57.71:8080 [21:15:09]Content-Length: 626 [21:15:09]Content-Type: application/json [21:15:09] [21:15:09]POST finish read [21:15:09]Found Content-Length = 626 [21:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127251", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:09]execute_script... [21:15: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 : (3)127251", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:09]POST & json_proto [21:15:09]process_json_proto [21:15:09]json parsed OK: [21:15:09]protocol is kg_v1.0 [21:15:09]action value=close_receipt [21:15:09]process_action close_receipt [21:15:09]cmd_close_receipt [21:15:09]MH_GetDate [21:15:09]Write to MH i2c: F0 00 00 8A 0A 83 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: F0 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: F0 09 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: F0 09 00 8A 0A 00 5E AB E4 66 33 3A A4 66 56 [21:15:09]GetLastDocTimeStamp 1726262072 [21:15:09]current date 1726262110 [21:15:09]FM_GetShiftState [21:15:09]SAM_PROTO_GetShiftState [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 13 01 00 [21:15:09]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0E 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9E [21:15:09]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_GetShiftState done [21:15:09]FM_GetShiftState done [21:15:09]opened in 1726186930 [21:15:09]opened+sec_in_day 1726273330 [21:15:09]quantity*price = 15000 [21:15:09]sum+1 = 15001 [21:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 132 13.09.2024 21:15 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92324 ФПД: 38441716196091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T211510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92324&fm=38441716196091&tin=02508201610067®Number=0000000000091423&sum=15000 0 [21:15:10]StoreToDocumentArchive [21:15:10]shift 505 fd 92324 [21:15:10]save to /storage/0505/doc_00092324 [21:15:10]save last doc name /storage/0505/doc_00092324 to /storage/kkm_last_doc_name [21:15:10]save OK [21:15:10]Clear old archive folders... [21:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:15:10]tlvbuf is 01440480 [21:15:10]SAM_PROTO_ClearQueue [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 09 00 00 [21:15:10]Write to MH i2c: E2 08 00 98 0A 80 09 00 00 00 00 00 00 14 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [21:15:10]RAPDU: 90 00 [21:15:10]wFMCommunicate OK [21:15:10]SAM_PROTO_ClearQueue done [21:15:10]KKMCreateOFDPacket [21:15:10]OFDProtocolAddRootSTLVToBuf [21:15:10]FM_MakeSignedData [21:15:10]FM_MakeSignedData [21:15:10]SAM_PROTO_SignData [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 0D 01 02 [21:15:10]Write to MH i2c: E2 08 00 99 0A 80 0D 01 02 00 00 00 00 1C [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [21:15:10]RAPDU: 90 00 [21:15:10]wFMCommunicate OK [21:15:10]wFMCommunicate request_size=255 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [21:15:10]Write to MH i2c: E2 02 01 9A 0A 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 0C [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [21:15:10]RAPDU: 90 00 [21:15:10]wFMCommunicate OK [21:15:10]wFMCommunicate request_size=37 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 68 01 00 35 04 06 00 22 F6 68 D6 A2 FB [21:15:10]Write to MH i2c: E2 28 00 9B 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 68 01 00 35 04 06 00 22 F6 68 D6 A2 FB 00 00 7A [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [21:15:11]RAPDU: 90 00 [21:15:11]wFMCommunicate OK [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 0D 03 02 [21:15:11]Write to MH i2c: E2 08 00 9C 0A 80 0D 03 02 00 00 00 00 21 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 0B 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 0B 00 9C 0A 00 1A 9B 86 A1 F4 9C AF FE 90 00 3B [21:15:11]RAPDU: 1A 9B 86 A1 F4 9C AF FE 90 00 [21:15:11]wFMCommunicate OK [21:15:11]SAM_PROTO_SignData done [21:15:11]FM_MakeSignedData done [21:15:11]CreateOFDProtocolMessage [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 11 00 00 [21:15:11]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 17 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 78 [21:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:15:11]wFMCommunicate OK [21:15:11]CreateOFDProtocolMessage done [21:15:11]OFDSenderStorePacket 92324 [21:15:11]StoreOFDPacket docnum=92324 [21:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 80 7B 22 01 76 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 68 01 00 35 04 06 00 22 F6 68 D6 A2 FB 1A 9B 86 A1 F4 9C AF FE [21:15:11]CheckFolder [21:15:11]dirname=/storage/ofd_packets [21:15:11]CheckFolder done [21:15:11]ProducePacketName [21:15:11]name=ofd_packets/00092324 [21:15:11]NVStorageSaveData ofd_packets/00092324 [21:15:11]File name is /storage/ofd_packets/00092324 [21:15:11]Write 328 bytes [21:15:11]NVStorageSaveData done [21:15:11]OFDSenderStorePacket done [21:15:11]KKMCreateOFDPacket done [21:15:11]NVStorageSaveData kkm_last_timestamp [21:15:11]File name is /storage/kkm_last_timestamp [21:15:11]Write 4 bytes [21:15:11]NVStorageSaveData done [21:15:11]ExternCall_PrintAddStr [21:15:11]wPrintStart [21:15:11]Write to MH i2c: 01 00 00 9E 0A A8 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [21:15:11]RasterBufferAndPrint [21:15:11]line Счет N : (3)127251 [21:15:11]line ИНН: 02508201610067 [21:15:11]line Контрольно-Кассовый Чек [21:15:11]line ПРОДАЖА [21:15:11]line Товар: 4640030092499 [21:15:11]line Сигареты ESSE SENSE Himalaya [21:15:11]line 1.000 * 150.00 [21:15:11]line = 150.00 [21:15:11]line НДС 12% НСП 1% [21:15:11]line > о реализуемом товаре [21:15:11]line ИТОГО: 150.00 [21:15:11]line НСП 1% : 1.33 [21:15:11]line НДС 12% : 15.93 [21:15:11]line Наличными: 150.00 [21:15:11]line Безнал.: 0.00 [21:15:11]line Место: АЗС № 5 "Партнер Нефть" [21:15:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:15:11]line СНО: Общий режим [21:15:11]line Чек 132 13.09.2024 21:15 [21:15:11]line Смена: 505 ФФД: 1.0 [21:15:11]line ЗНМ: 03000000022 [21:15:11]line РНМ: 0000000000091423 [21:15:11]line Версия ККМ: 001 [21:15:11]line ФМ: 0000000000874692 [21:15:11]line ФД: 92324 [21:15:11]line ФПД: 38441716196091 [21:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T211510&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92324&fm=38441716196091&tin=02508201610067®Number=0000000000091423&sum=15000 [21:15:11]line 0 [21:15:11]written 0, free lines is 4095 [21:15:11]OFD Sender: Processing packet 92324 [packets to send 63, broken 62] [21:15:11]ProducePacketName [21:15:11]name=ofd_packets/00092324 [21:15:11]OFD Sender: To server: pG, [21:15:11]CommunicateWithHost lk.salyk.kg:30040 [21:15:11]ConnectInit lk.salyk.kg [21:15:11]Connected sock=10 [21:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 80 7B 22 01 76 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E AB E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A4 68 01 00 35 04 06 00 22 F6 68 D6 A2 FB 1A 9B 86 A1 F4 9C AF FE [21:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 31 C2 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 34 36 39 32 10 04 04 00 A4 68 01 00 F4 03 04 00 DB 53 E4 66 B6 04 01 00 00 CD 84 61 A5 8B 62 26 D0 [21:15:11]CommunicateWithHost err = 0 [21:15:11]CheckOFDResponse [21:15:11]1017 (14) - 77093643461234 [21:15:11]1041 (16) - 0000000000874692 [21:15:11]1040 (4) - 92324 [21:15:11]1012 (4) - 13.09.2024 15:01 [21:15:11]1206 (1) - 0 [21:15:11]OFD Sender: Remove packet 92324 [21:15:11]ProducePacketName [21:15:11]name=ofd_packets/00092324 [21:15:11]NVStorageDeleteData [21:15:11]Write to MH i2c: 01 00 00 C7 0A D1 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 11 0D F6 [21:15:11]RasterBufferAndPrint [21:15:11]line [21:15:11]line [21:15:11]line [21:15:11]line [21:15:11]line [21:15:11]written 0, free lines is 3352 [21:15:11]MH_Cut [21:15:11]Write to MH i2c: D1 01 00 CE 0A 01 AA [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: D1 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: D1 01 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: D1 01 00 CE 0A 00 A9 [21:15:11]Write to MH i2c: 01 00 00 CF 0A D9 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]OFD Sender: No OFD packet to send [21:15:12]*** Cut start [21:15:12]*** Purtial cut [21:15:12]*** Stage 1: CUTSNS_PIN = 1 [21:15:14]Read from MH i2c: 01 [21:15:14]MH_I2C_Read... [21:15:14]*** Stop cut motor [21:15:14]*** Cut end [21:15:14]Read from MH i2c: 01 07 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FF 0F EE [21:15:14]process_action close_receipt done [21:15:14]requested_data is exist [21:15:14]produce_requested_data [21:15:14]requested_item fm.sn is exist - process it [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 11 00 00 [21:15:14]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 17 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AB [21:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:15:14]wFMCommunicate OK [21:15:14]requested_item fd.num is exist - process it [21:15:14]SAM_PROTO_GetFieldsCounters [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 13 00 00 [21:15:14]Write to MH i2c: E2 08 00 D1 0A 80 13 00 00 00 00 00 00 57 [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 62 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 62 00 D1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A4 68 01 00 0E 04 04 00 F9 01 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 [21:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A4 68 01 00 0E 04 04 00 F9 01 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 [21:15:14]wFMCommunicate OK [21:15:14]SAM_PROTO_GetFieldsCounters done [21:15:14]requested_item shift.num is exist - process it [21:15:14]requested_item shift.opened is exist - process it [21:15:14]req_shift_opened [21:15:14]FM_GetShiftState [21:15:14]SAM_PROTO_GetShiftState [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 13 01 00 [21:15:14]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 0E 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E5 [21:15:14]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:15:14]wFMCommunicate OK [21:15:14]SAM_PROTO_GetShiftState done [21:15:14]FM_GetShiftState done [21:15:14]req_shift_opened done [21:15:14]requested_item shift.open_date is exist - process it [21:15:14]req_shift_open_date [21:15:14]req_shift_open_date done [21:15:14]produce_requested_data done [21:15:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92324,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:15:14]process_action_free close_receipt [21:15:14]json_value_free [21:15:14]json_value_free done [21:15:14]process_json_proto returns [21:15:14]Send response to host [21:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92324,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:15:14]free response buf [21:15:14]execute_script done [21:15:14]execute_script returns [21:15:14]free content buf [21:15:14]Sock 9.Close socket [21:15:14]Sock 9.Thread stoped [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [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:36]accept exits with 8 [21:21:36]New connection [21:21:36]New thread 3067379044 created [21:21:36]Thread 3067235684 joined [21:21:36]Waiting for new connection... [21:21:36] Sock 8.Parse request [21:21:36]Sock 8.Check first char [21:21:36]Sock 8.First char is OK [21:21:36]request: POST /json_proto HTTP/1.0 [21:21:36]Method: POST [21:21:36]URL: /json_proto [21:21:36]Method is POST - this is cgi request [21:21:36]url: /json_proto [21:21:36]query_string will be loaded in cgi processing [21:21:36]execute_cgi json_proto POST (null) [21:21:36]execute_cgi path=json_proto method=POST [21:21:36]POST find Content-Length [21:21:36]Host: 172.17.57.71:8080 [21:21:36]Content-Length: 750 [21:21:36]Content-Type: application/json [21:21:36] [21:21:36]POST finish read [21:21:36]Found Content-Length = 750 [21:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127252", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:36]execute_script... [21: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 : (3)127252", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:36]POST & json_proto [21:21:36]process_json_proto [21:21:36]json parsed OK: [21:21:36]protocol is kg_v1.0 [21:21:36]action value=close_receipt [21:21:36]process_action close_receipt [21:21:36]cmd_close_receipt [21:21:36]MH_GetDate [21:21:36]Write to MH i2c: F0 00 00 D3 0A CC [21:21:36]Write i2c OK [21:21:36]MH_I2C_Read... [21:21:36]Read from MH i2c: F0 [21:21:36]MH_I2C_Read... [21:21:36]Read from MH i2c: F0 09 00 [21:21:36]MH_I2C_Read... [21:21:36]Read from MH i2c: F0 09 00 D3 0A 00 E1 AC E4 66 33 3A A4 66 23 [21:21:36]GetLastDocTimeStamp 1726262110 [21:21:36]current date 1726262497 [21:21:36]FM_GetShiftState [21:21:36]SAM_PROTO_GetShiftState [21:21:36]wFMCommunicate request_size=4 [21:21:36]MH_SAM_APDU [21:21:36]CAPDU: 80 13 01 00 [21:21:36]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [21:21:36]Write i2c OK [21:21:36]MH_I2C_Read... [21:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:36]Read from MH i2c: E2 [21:21:36]MH_I2C_Read... [21:21:36]Read from MH i2c: E2 0E 00 [21:21:36]MH_I2C_Read... [21:21:36]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E7 [21:21:36]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:21:36]wFMCommunicate OK [21:21:36]SAM_PROTO_GetShiftState done [21:21:36]FM_GetShiftState done [21:21:36]opened in 1726186930 [21:21:36]opened+sec_in_day 1726273330 [21:21:36]quantity*price = 9500 [21:21:36]sum+1 = 9501 [21:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 133 13.09.2024 21:21 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92325 ФПД: 244441076890839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212137&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92325&fm=244441076890839&tin=02508201610067®Number=0000000000091423&sum=9500 0 [21:21:37]StoreToDocumentArchive [21:21:37]shift 505 fd 92325 [21:21:37]save to /storage/0505/doc_00092325 [21:21:37]save last doc name /storage/0505/doc_00092325 to /storage/kkm_last_doc_name [21:21:37]save OK [21:21:37]Clear old archive folders... [21:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=313 [21:21:37]tlvbuf is 012D61E0 [21:21:37]SAM_PROTO_ClearQueue [21:21:37]wFMCommunicate request_size=4 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 09 00 00 [21:21:37]Write to MH i2c: E2 08 00 E1 0A 80 09 00 00 00 00 00 00 5D [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:37]Read from MH i2c: E2 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [21:21:37]RAPDU: 90 00 [21:21:37]wFMCommunicate OK [21:21:37]SAM_PROTO_ClearQueue done [21:21:37]KKMCreateOFDPacket [21:21:37]OFDProtocolAddRootSTLVToBuf [21:21:37]FM_MakeSignedData [21:21:37]FM_MakeSignedData [21:21:37]SAM_PROTO_SignData [21:21:37]wFMCommunicate request_size=4 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 0D 01 02 [21:21:37]Write to MH i2c: E2 08 00 E2 0A 80 0D 01 02 00 00 00 00 65 [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:37]Read from MH i2c: E2 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [21:21:37]RAPDU: 90 00 [21:21:37]wFMCommunicate OK [21:21:37]wFMCommunicate request_size=255 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 0D 02 02 FA 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E1 AC E4 66 0E 04 04 00 [21:21:37]Write to MH i2c: E2 02 01 E3 0A 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E1 AC E4 66 0E 04 04 00 00 00 B0 [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:37]Read from MH i2c: E2 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [21:21:37]RAPDU: 90 00 [21:21:37]wFMCommunicate OK [21:21:37]wFMCommunicate request_size=72 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 0D 02 02 43 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 68 01 00 35 04 06 00 DE 51 5F 8E 7C D7 [21:21:37]Write to MH i2c: E2 4B 00 E4 0A 80 0D 02 02 43 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 68 01 00 35 04 06 00 DE 51 5F 8E 7C D7 00 00 F8 [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:37]Read from MH i2c: E2 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [21:21:37]RAPDU: 90 00 [21:21:37]wFMCommunicate OK [21:21:37]wFMCommunicate request_size=4 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 0D 03 02 [21:21:37]Write to MH i2c: E2 08 00 E5 0A 80 0D 03 02 00 00 00 00 6A [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:37]Read from MH i2c: E2 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 0B 00 [21:21:37]MH_I2C_Read... [21:21:37]Read from MH i2c: E2 0B 00 E5 0A 00 51 27 CD BB C1 28 71 C7 90 00 8C [21:21:37]RAPDU: 51 27 CD BB C1 28 71 C7 90 00 [21:21:37]wFMCommunicate OK [21:21:37]SAM_PROTO_SignData done [21:21:37]FM_MakeSignedData done [21:21:37]CreateOFDProtocolMessage [21:21:37]wFMCommunicate request_size=4 [21:21:37]MH_SAM_APDU [21:21:37]CAPDU: 80 11 00 00 [21:21:37]Write to MH i2c: E2 08 00 E6 0A 80 11 00 00 00 00 00 00 6A [21:21:37]Write i2c OK [21:21:37]MH_I2C_Read... [21:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:38]Read from MH i2c: E2 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: E2 17 00 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: E2 17 00 E6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C1 [21:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:21:38]wFMCommunicate OK [21:21:38]CreateOFDProtocolMessage done [21:21:38]OFDSenderStorePacket 92325 [21:21:38]StoreOFDPacket docnum=92325 [21:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 58 97 45 01 E5 A7 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E1 AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 68 01 00 35 04 06 00 DE 51 5F 8E 7C D7 51 27 CD BB C1 28 71 C7 [21:21:38]CheckFolder [21:21:38]dirname=/storage/ofd_packets [21:21:38]CheckFolder done [21:21:38]ProducePacketName [21:21:38]name=ofd_packets/00092325 [21:21:38]NVStorageSaveData ofd_packets/00092325 [21:21:38]File name is /storage/ofd_packets/00092325 [21:21:38]Write 363 bytes [21:21:38]NVStorageSaveData done [21:21:38]OFDSenderStorePacket done [21:21:38]KKMCreateOFDPacket done [21:21:38]NVStorageSaveData kkm_last_timestamp [21:21:38]File name is /storage/kkm_last_timestamp [21:21:38]Write 4 bytes [21:21:38]NVStorageSaveData done [21:21:38]ExternCall_PrintAddStr [21:21:38]wPrintStart [21:21:38]Write to MH i2c: 01 00 00 E7 0A F1 [21:21:38]Write i2c OK [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [21:21:38]RasterBufferAndPrint [21:21:38]line Счет N : (3)127252 [21:21:38]line ИНН: 02508201610067 [21:21:38]line Контрольно-Кассовый Чек [21:21:38]line ПРОДАЖА [21:21:38]line Товар: 4700000483297 [21:21:38]line Энергетический напиток Nitro Ананас-гуав [21:21:38]line 1.000 * 95.00 [21:21:38]line = 95.00 [21:21:38]line НДС 12% НСП 1% [21:21:38]line > о реализуемом товаре [21:21:38]line ИТОГО: 95.00 [21:21:38]line НСП 1% : 0.84 [21:21:38]line НДС 12% : 10.09 [21:21:38]line Наличными: 95.00 [21:21:38]line Безнал.: 0.00 [21:21:38]line Место: АЗС № 5 "Партнер Нефть" [21:21:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:21:38]line СНО: Общий режим [21:21:38]line Чек 133 13.09.2024 21:21 [21:21:38]line Смена: 505 ФФД: 1.0 [21:21:38]line ЗНМ: 03000000022 [21:21:38]line РНМ: 0000000000091423 [21:21:38]line Версия ККМ: 001 [21:21:38]line ФМ: 0000000000874692 [21:21:38]line ФД: 92325 [21:21:38]line ФПД: 244441076890839 [21:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212137&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92325&fm=244441076890839&tin=02508201610067®Number=0000000000091423&sum=9500 [21:21:38]line 0 [21:21:38]OFD Sender: Processing packet 92325 [packets to send 63, broken 62] [21:21:38]ProducePacketName [21:21:38]name=ofd_packets/00092325 [21:21:38]OFD Sender: To server: pG, [21:21:38]CommunicateWithHost lk.salyk.kg:30040 [21:21:38]ConnectInit lk.salyk.kg [21:21:38]written 0, free lines is 4095 [21:21:38]Connected sock=10 [21:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 58 97 45 01 E5 A7 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E1 AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 68 01 00 35 04 06 00 DE 51 5F 8E 7C D7 51 27 CD BB C1 28 71 C7 [21:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C4 34 47 00 2E 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A5 68 01 00 F4 03 04 00 5E 55 E4 66 B6 04 01 00 00 C3 9F AC 5A B8 74 F3 55 [21:21:38]CommunicateWithHost err = 0 [21:21:38]CheckOFDResponse [21:21:38]1017 (14) - 77093643461234 [21:21:38]1041 (16) - 0000000000874692 [21:21:38]1040 (4) - 92325 [21:21:38]1012 (4) - 13.09.2024 15:08 [21:21:38]1206 (1) - 0 [21:21:38]OFD Sender: Remove packet 92325 [21:21:38]ProducePacketName [21:21:38]name=ofd_packets/00092325 [21:21:38]NVStorageDeleteData [21:21:38]Write to MH i2c: 01 00 00 10 0B 1B [21:21:38]Write i2c OK [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 17 0D 46 [21:21:38]RasterBufferAndPrint [21:21:38]line [21:21:38]line [21:21:38]line [21:21:38]line [21:21:38]line [21:21:38]written 0, free lines is 3358 [21:21:38]MH_Cut [21:21:38]Write to MH i2c: D1 01 00 17 0B 01 F4 [21:21:38]Write i2c OK [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: D1 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: D1 01 00 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: D1 01 00 17 0B 00 F3 [21:21:38]Write to MH i2c: 01 00 00 18 0B 23 [21:21:38]Write i2c OK [21:21:38]MH_I2C_Read... [21:21:39]OFD Sender: No OFD packet to send [21:21:39]*** Cut start [21:21:39]*** Purtial cut [21:21:39]*** Stage 1: CUTSNS_PIN = 1 [21:21:41]Read from MH i2c: 01 [21:21:41]MH_I2C_Read... [21:21:41]*** Stop cut motor [21:21:41]*** Cut end [21:21:41]Read from MH i2c: 01 07 00 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [21:21:41]process_action close_receipt done [21:21:41]requested_data is exist [21:21:41]produce_requested_data [21:21:41]requested_item fm.sn is exist - process it [21:21:41]wFMCommunicate request_size=4 [21:21:41]MH_SAM_APDU [21:21:41]CAPDU: 80 11 00 00 [21:21:41]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [21:21:41]Write i2c OK [21:21:41]MH_I2C_Read... [21:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:41]Read from MH i2c: E2 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 17 00 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F5 [21:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:21:41]wFMCommunicate OK [21:21:41]requested_item fd.num is exist - process it [21:21:41]SAM_PROTO_GetFieldsCounters [21:21:41]wFMCommunicate request_size=4 [21:21:41]MH_SAM_APDU [21:21:41]CAPDU: 80 13 00 00 [21:21:41]Write to MH i2c: E2 08 00 1A 0B 80 13 00 00 00 00 00 00 A1 [21:21:41]Write i2c OK [21:21:41]MH_I2C_Read... [21:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:41]Read from MH i2c: E2 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 62 00 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 62 00 1A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A5 68 01 00 0E 04 04 00 F9 01 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 57 [21:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A5 68 01 00 0E 04 04 00 F9 01 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 [21:21:41]wFMCommunicate OK [21:21:41]SAM_PROTO_GetFieldsCounters done [21:21:41]requested_item shift.num is exist - process it [21:21:41]requested_item shift.opened is exist - process it [21:21:41]req_shift_opened [21:21:41]FM_GetShiftState [21:21:41]SAM_PROTO_GetShiftState [21:21:41]wFMCommunicate request_size=4 [21:21:41]MH_SAM_APDU [21:21:41]CAPDU: 80 13 01 00 [21:21:41]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [21:21:41]Write i2c OK [21:21:41]MH_I2C_Read... [21:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:41]Read from MH i2c: E2 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 0E 00 [21:21:41]MH_I2C_Read... [21:21:41]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 2F [21:21:41]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:21:41]wFMCommunicate OK [21:21:41]SAM_PROTO_GetShiftState done [21:21:41]FM_GetShiftState done [21:21:41]req_shift_opened done [21:21:41]requested_item shift.open_date is exist - process it [21:21:41]req_shift_open_date [21:21:41]req_shift_open_date done [21:21:41]produce_requested_data done [21:21:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92325,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:21:41]process_action_free close_receipt [21:21:41]json_value_free [21:21:41]json_value_free done [21:21:41]process_json_proto returns [21:21:41]Send response to host [21:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92325,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:21:41]free response buf [21:21:41]execute_script done [21:21:41]execute_script returns [21:21:41]free content buf [21:21:41]Sock 8.Close socket [21:21:41]Sock 8.Thread stoped [21:21:44]OFD Sender: No OFD packet to send [21:21:45]accept exits with 9 [21:21:45]New connection [21:21:45]New thread 3067235684 created [21:21:45]Thread 3067379044 joined [21:21:45]Waiting for new connection... [21:21:45] Sock 9.Parse request [21:21:45]Sock 9.Check first char [21:21:45]Sock 9.First char is OK [21:21:45]request: POST /json_proto HTTP/1.0 [21:21:45]Method: POST [21:21:45]URL: /json_proto [21:21:45]Method is POST - this is cgi request [21:21:45]url: /json_proto [21:21:45]query_string will be loaded in cgi processing [21:21:45]execute_cgi json_proto POST (null) [21:21:45]execute_cgi path=json_proto method=POST [21:21:45]POST find Content-Length [21:21:45]Host: 172.17.57.71:8080 [21:21:45]Content-Length: 788 [21:21:45]Content-Type: application/json [21:21:45] [21:21:45]POST finish read [21:21:45]Found Content-Length = 788 [21:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127253", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 2.000, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:45]execute_script... [21:21: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 : (3)127253", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 2.000, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:45]POST & json_proto [21:21:45]process_json_proto [21:21:45]json parsed OK: [21:21:45]protocol is kg_v1.0 [21:21:45]action value=close_receipt [21:21:45]process_action close_receipt [21:21:45]cmd_close_receipt [21:21:45]MH_GetDate [21:21:45]Write to MH i2c: F0 00 00 1C 0B 16 [21:21:45]Write i2c OK [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 09 00 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 09 00 1C 0B 00 EA AC E4 66 33 3A A4 66 76 [21:21:45]GetLastDocTimeStamp 1726262497 [21:21:45]current date 1726262506 [21:21:45]FM_GetShiftState [21:21:45]SAM_PROTO_GetShiftState [21:21:45]wFMCommunicate request_size=4 [21:21:45]MH_SAM_APDU [21:21:45]CAPDU: 80 13 01 00 [21:21:45]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [21:21:45]Write i2c OK [21:21:45]MH_I2C_Read... [21:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:45]Read from MH i2c: E2 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: E2 0E 00 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 31 [21:21:45]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:21:45]wFMCommunicate OK [21:21:45]SAM_PROTO_GetShiftState done [21:21:45]FM_GetShiftState done [21:21:45]opened in 1726186930 [21:21:45]opened+sec_in_day 1726273330 [21:21:45]quantity*price = 30000 [21:21:45]sum+1 = 30001 [21:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 134 13.09.2024 21:21 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92326 ФПД: 100933357144646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212146&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92326&fm=100933357144646&tin=02508201610067®Number=0000000000091423&sum=30000 0 [21:21:46]StoreToDocumentArchive [21:21:46]shift 505 fd 92326 [21:21:46]save to /storage/0505/doc_00092326 [21:21:46]save last doc name /storage/0505/doc_00092326 to /storage/kkm_last_doc_name [21:21:46]save OK [21:21:46]Clear old archive folders... [21:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:21:46]tlvbuf is 012D3530 [21:21:46]SAM_PROTO_ClearQueue [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 09 00 00 [21:21:46]Write to MH i2c: E2 08 00 2A 0B 80 09 00 00 00 00 00 00 A7 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]SAM_PROTO_ClearQueue done [21:21:46]KKMCreateOFDPacket [21:21:46]OFDProtocolAddRootSTLVToBuf [21:21:46]FM_MakeSignedData [21:21:46]FM_MakeSignedData [21:21:46]SAM_PROTO_SignData [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 01 02 [21:21:46]Write to MH i2c: E2 08 00 2B 0B 80 0D 01 02 00 00 00 00 AF [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=255 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EA AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [21:21:46]Write to MH i2c: E2 02 01 2C 0B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EA AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 D3 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=33 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 68 01 00 35 04 06 00 5B CC 60 E6 0A 46 [21:21:46]Write to MH i2c: E2 24 00 2D 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 68 01 00 35 04 06 00 5B CC 60 E6 0A 46 00 00 11 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 03 02 [21:21:46]Write to MH i2c: E2 08 00 2E 0B 80 0D 03 02 00 00 00 00 B4 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 0B 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 0B 00 2E 0B 00 0D 5B 0B A5 71 8F 32 73 90 00 72 [21:21:46]RAPDU: 0D 5B 0B A5 71 8F 32 73 90 00 [21:21:46]wFMCommunicate OK [21:21:46]SAM_PROTO_SignData done [21:21:46]FM_MakeSignedData done [21:21:46]CreateOFDProtocolMessage [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 11 00 00 [21:21:46]Write to MH i2c: E2 08 00 2F 0B 80 11 00 00 00 00 00 00 B4 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 17 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 17 00 2F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0B [21:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:21:46]wFMCommunicate OK [21:21:46]CreateOFDProtocolMessage done [21:21:46]OFDSenderStorePacket 92326 [21:21:46]StoreOFDPacket docnum=92326 [21:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 B7 0E 1E 01 0E 1E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EA AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 68 01 00 35 04 06 00 5B CC 60 E6 0A 46 0D 5B 0B A5 71 8F 32 73 [21:21:46]CheckFolder [21:21:46]dirname=/storage/ofd_packets [21:21:46]CheckFolder done [21:21:46]ProducePacketName [21:21:46]name=ofd_packets/00092326 [21:21:46]NVStorageSaveData ofd_packets/00092326 [21:21:46]File name is /storage/ofd_packets/00092326 [21:21:46]Write 324 bytes [21:21:46]NVStorageSaveData done [21:21:46]OFDSenderStorePacket done [21:21:46]KKMCreateOFDPacket done [21:21:46]NVStorageSaveData kkm_last_timestamp [21:21:46]File name is /storage/kkm_last_timestamp [21:21:46]Write 4 bytes [21:21:46]NVStorageSaveData done [21:21:46]ExternCall_PrintAddStr [21:21:46]wPrintStart [21:21:46]Write to MH i2c: 01 00 00 30 0B 3B [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 07 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [21:21:46]RasterBufferAndPrint [21:21:46]line Счет N : (3)127253 [21:21:46]line ИНН: 02508201610067 [21:21:46]line Контрольно-Кассовый Чек [21:21:46]line ПРОДАЖА [21:21:46]line Товар: 4640030091621 [21:21:46]line Сигареты ESSE Exchange W [21:21:46]line 2.000 * 150.00 [21:21:46]line = 300.00 [21:21:46]line НДС 12% НСП 1% [21:21:46]line > о реализуемом товаре [21:21:46]line ИТОГО: 300.00 [21:21:46]line НСП 1% : 2.65 [21:21:46]line НДС 12% : 31.86 [21:21:46]line Наличными: 0.00 [21:21:46]line Безнал.: 300.00 [21:21:46]line Место: АЗС № 5 "Партнер Нефть" [21:21:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:21:46]line СНО: Общий режим [21:21:46]line Чек 134 13.09.2024 21:21 [21:21:46]line Смена: 505 ФФД: 1.0 [21:21:46]line ЗНМ: 03000000022 [21:21:46]line РНМ: 0000000000091423 [21:21:46]line Версия ККМ: 001 [21:21:46]line Платежная система: О! деньги [21:21:46]line ФМ: 0000000000874692 [21:21:46]line ФД: 92326 [21:21:46]line ФПД: 100933357144646 [21:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212146&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92326&fm=100933357144646&tin=02508201610067®Number=0000000000091423&sum=30000 [21:21:46]OFD Sender: Processing packet 92326 [packets to send 63, broken 62] [21:21:46]ProducePacketName [21:21:46]name=ofd_packets/00092326 [21:21:46]OFD Sender: To server: pG, [21:21:46]CommunicateWithHost lk.salyk.kg:30040 [21:21:46]ConnectInit lk.salyk.kg [21:21:47]line 0 [21:21:47]Connected sock=10 [21:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 B7 0E 1E 01 0E 1E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 written 0, free lines is 4095 [21:21:47]00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EA AC E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A6 68 01 00 35 04 06 00 5B CC 60 E6 0A 46 0D 5B 0B A5 71 8F 32 73 [21:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 98 29 47 00 13 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 34 36 39 32 10 04 04 00 A6 68 01 00 F4 03 04 00 67 55 E4 66 B6 04 01 00 00 9A 41 E0 EA 5D 97 FB 45 [21:21:47]CommunicateWithHost err = 0 [21:21:47]CheckOFDResponse [21:21:47]1017 (14) - 77093643461234 [21:21:47]1041 (16) - 0000000000874692 [21:21:47]1040 (4) - 92326 [21:21:47]1012 (4) - 13.09.2024 15:08 [21:21:47]1206 (1) - 0 [21:21:47]OFD Sender: Remove packet 92326 [21:21:47]ProducePacketName [21:21:47]name=ofd_packets/00092326 [21:21:47]NVStorageDeleteData [21:21:47]Write to MH i2c: 01 00 00 5A 0B 65 [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 07 00 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 08 0D 81 [21:21:47]RasterBufferAndPrint [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]written 0, free lines is 3345 [21:21:47]MH_Cut [21:21:47]Write to MH i2c: D1 01 00 61 0B 01 3E [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 01 00 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 01 00 61 0B 00 3D [21:21:47]Write to MH i2c: 01 00 00 62 0B 6D [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]OFD Sender: No OFD packet to send [21:21:48]*** Cut start [21:21:48]*** Purtial cut [21:21:48]*** Stage 1: CUTSNS_PIN = 1 [21:21:50]Read from MH i2c: 01 [21:21:50]MH_I2C_Read... [21:21:50]*** Stop cut motor [21:21:50]*** Cut end [21:21:50]Read from MH i2c: 01 07 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [21:21:50]process_action close_receipt done [21:21:50]requested_data is exist [21:21:50]produce_requested_data [21:21:50]requested_item fm.sn is exist - process it [21:21:50]wFMCommunicate request_size=4 [21:21:50]MH_SAM_APDU [21:21:50]CAPDU: 80 11 00 00 [21:21:50]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:50]Read from MH i2c: E2 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 17 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3F [21:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:21:50]wFMCommunicate OK [21:21:50]requested_item fd.num is exist - process it [21:21:50]SAM_PROTO_GetFieldsCounters [21:21:50]wFMCommunicate request_size=4 [21:21:50]MH_SAM_APDU [21:21:50]CAPDU: 80 13 00 00 [21:21:50]Write to MH i2c: E2 08 00 64 0B 80 13 00 00 00 00 00 00 EB [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:50]Read from MH i2c: E2 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 62 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 62 00 64 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A6 68 01 00 0E 04 04 00 F9 01 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 A5 [21:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A6 68 01 00 0E 04 04 00 F9 01 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 [21:21:50]wFMCommunicate OK [21:21:50]SAM_PROTO_GetFieldsCounters done [21:21:50]requested_item shift.num is exist - process it [21:21:50]requested_item shift.opened is exist - process it [21:21:50]req_shift_opened [21:21:50]FM_GetShiftState [21:21:50]SAM_PROTO_GetShiftState [21:21:50]wFMCommunicate request_size=4 [21:21:50]MH_SAM_APDU [21:21:50]CAPDU: 80 13 01 00 [21:21:50]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:50]Read from MH i2c: E2 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 0E 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 79 [21:21:50]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:21:50]wFMCommunicate OK [21:21:50]SAM_PROTO_GetShiftState done [21:21:50]FM_GetShiftState done [21:21:50]req_shift_opened done [21:21:50]requested_item shift.open_date is exist - process it [21:21:50]req_shift_open_date [21:21:50]req_shift_open_date done [21:21:50]produce_requested_data done [21:21:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92326,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:21:50]process_action_free close_receipt [21:21:50]json_value_free [21:21:50]json_value_free done [21:21:50]process_json_proto returns [21:21:50]Send response to host [21:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92326,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:21:50]free response buf [21:21:50]execute_script done [21:21:50]execute_script returns [21:21:50]free content buf [21:21:50]Sock 9.Close socket [21:21:50]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:06]accept exits with 8 [21:26:06]New connection [21:26:06]New thread 3067379044 created [21:26:06]Thread 3067235684 joined [21:26:06]Waiting for new connection... [21:26:06] Sock 8.Parse request [21:26:06]Sock 8.Check first char [21:26:06]Sock 8.First char is OK [21:26:06]request: POST /json_proto HTTP/1.0 [21:26:06]Method: POST [21:26:06]URL: /json_proto [21:26:06]Method is POST - this is cgi request [21:26:06]url: /json_proto [21:26:06]query_string will be loaded in cgi processing [21:26:06]execute_cgi json_proto POST (null) [21:26:06]execute_cgi path=json_proto method=POST [21:26:06]POST find Content-Length [21:26:06]Host: 172.17.57.71:8080 [21:26:06]Content-Length: 933 [21:26:06]Content-Type: application/json [21:26:06] [21:26:06]POST finish read [21:26:06]Found Content-Length = 933 [21:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127254", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:06]execute_script... [21:26: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 : (3)127254", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:06]POST & json_proto [21:26:06]process_json_proto [21:26:06]json parsed OK: [21:26:06]protocol is kg_v1.0 [21:26:06]action value=close_receipt [21:26:06]process_action close_receipt [21:26:06]cmd_close_receipt [21:26:06]MH_GetDate [21:26:06]Write to MH i2c: F0 00 00 66 0B 60 [21:26:06]Write i2c OK [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: F0 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: F0 09 00 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: F0 09 00 66 0B 00 EF AD E4 66 33 3A A4 66 C6 [21:26:06]GetLastDocTimeStamp 1726262506 [21:26:06]current date 1726262767 [21:26:06]FM_GetShiftState [21:26:06]SAM_PROTO_GetShiftState [21:26:06]wFMCommunicate request_size=4 [21:26:06]MH_SAM_APDU [21:26:06]CAPDU: 80 13 01 00 [21:26:06]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [21:26:06]Write i2c OK [21:26:06]MH_I2C_Read... [21:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:06]Read from MH i2c: E2 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: E2 0E 00 [21:26:06]MH_I2C_Read... [21:26:06]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7B [21:26:06]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:26:06]wFMCommunicate OK [21:26:06]SAM_PROTO_GetShiftState done [21:26:06]FM_GetShiftState done [21:26:06]opened in 1726186930 [21:26:06]opened+sec_in_day 1726273330 [21:26:06]quantity*price = 9000 [21:26:06]sum+1 = 9001 [21:26:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032710015 Сочник DC творог 75г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 135 13.09.2024 21:26 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92327 ФПД: 3685851099996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92327&fm=3685851099996&tin=02508201610067®Number=0000000000091423&sum=16000 0 [21:26:07]StoreToDocumentArchive [21:26:07]shift 505 fd 92327 [21:26:07]save to /storage/0505/doc_00092327 [21:26:07]save last doc name /storage/0505/doc_00092327 to /storage/kkm_last_doc_name [21:26:07]save OK [21:26:07]Clear old archive folders... [21:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=399 [21:26:07]tlvbuf is 01440C70 [21:26:07]SAM_PROTO_ClearQueue [21:26:07]wFMCommunicate request_size=4 [21:26:07]MH_SAM_APDU [21:26:07]CAPDU: 80 09 00 00 [21:26:07]Write to MH i2c: E2 08 00 74 0B 80 09 00 00 00 00 00 00 F1 [21:26:07]Write i2c OK [21:26:07]MH_I2C_Read... [21:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:07]Read from MH i2c: E2 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [21:26:07]RAPDU: 90 00 [21:26:07]wFMCommunicate OK [21:26:07]SAM_PROTO_ClearQueue done [21:26:07]KKMCreateOFDPacket [21:26:07]OFDProtocolAddRootSTLVToBuf [21:26:07]FM_MakeSignedData [21:26:07]FM_MakeSignedData [21:26:07]SAM_PROTO_SignData [21:26:07]wFMCommunicate request_size=4 [21:26:07]MH_SAM_APDU [21:26:07]CAPDU: 80 0D 01 02 [21:26:07]Write to MH i2c: E2 08 00 75 0B 80 0D 01 02 00 00 00 00 F9 [21:26:07]Write i2c OK [21:26:07]MH_I2C_Read... [21:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:07]Read from MH i2c: E2 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [21:26:07]RAPDU: 90 00 [21:26:07]wFMCommunicate OK [21:26:07]wFMCommunicate request_size=255 [21:26:07]MH_SAM_APDU [21:26:07]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 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 [21:26:07]Write to MH i2c: E2 02 01 76 0B 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 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 00 00 CF [21:26:07]Write i2c OK [21:26:07]MH_I2C_Read... [21:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:07]Read from MH i2c: E2 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 [21:26:07]MH_I2C_Read... [21:26:07]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [21:26:07]RAPDU: 90 00 [21:26:07]wFMCommunicate OK [21:26:07]wFMCommunicate request_size=158 [21:26:07]MH_SAM_APDU [21:26:07]CAPDU: 80 0D 02 02 99 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 A3 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 87 00 00 00 F4 03 04 00 EF AD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 68 01 00 35 04 06 00 03 5A 2D D8 73 5C [21:26:07]Write to MH i2c: E2 A1 00 77 0B 80 0D 02 02 99 00 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 A3 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 87 00 00 00 F4 03 04 00 EF AD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 68 01 00 35 04 06 00 03 5A 2D D8 73 5C 00 00 18 [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:08]Read from MH i2c: E2 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 03 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [21:26:08]RAPDU: 90 00 [21:26:08]wFMCommunicate OK [21:26:08]wFMCommunicate request_size=4 [21:26:08]MH_SAM_APDU [21:26:08]CAPDU: 80 0D 03 02 [21:26:08]Write to MH i2c: E2 08 00 78 0B 80 0D 03 02 00 00 00 00 FE [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]OFD Sender: No OFD packet to send [21:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:08]Read from MH i2c: E2 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 0B 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 0B 00 78 0B 00 97 AD 88 4A C8 A0 38 87 90 00 3C [21:26:08]RAPDU: 97 AD 88 4A C8 A0 38 87 90 00 [21:26:08]wFMCommunicate OK [21:26:08]SAM_PROTO_SignData done [21:26:08]FM_MakeSignedData done [21:26:08]CreateOFDProtocolMessage [21:26:08]wFMCommunicate request_size=4 [21:26:08]MH_SAM_APDU [21:26:08]CAPDU: 80 11 00 00 [21:26:08]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:08]Read from MH i2c: E2 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 17 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 55 [21:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:26:08]wFMCommunicate OK [21:26:08]CreateOFDProtocolMessage done [21:26:08]OFDSenderStorePacket 92327 [21:26:08]StoreOFDPacket docnum=92327 [21:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 D4 33 9B 01 01 88 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 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 A3 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 87 00 00 00 F4 03 04 00 EF AD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 68 01 00 35 04 06 00 03 5A 2D D8 73 5C 97 AD 88 4A C8 A0 38 87 [21:26:08]CheckFolder [21:26:08]dirname=/storage/ofd_packets [21:26:08]CheckFolder done [21:26:08]ProducePacketName [21:26:08]name=ofd_packets/00092327 [21:26:08]NVStorageSaveData ofd_packets/00092327 [21:26:08]File name is /storage/ofd_packets/00092327 [21:26:08]Write 449 bytes [21:26:08]NVStorageSaveData done [21:26:08]OFDSenderStorePacket done [21:26:08]KKMCreateOFDPacket done [21:26:08]NVStorageSaveData kkm_last_timestamp [21:26:08]File name is /storage/kkm_last_timestamp [21:26:08]Write 4 bytes [21:26:08]NVStorageSaveData done [21:26:08]ExternCall_PrintAddStr [21:26:08]wPrintStart [21:26:08]Write to MH i2c: 01 00 00 7A 0B 85 [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: 01 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: 01 07 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [21:26:08]RasterBufferAndPrint [21:26:08]line Счет N : (3)127254 [21:26:08]line ИНН: 02508201610067 [21:26:08]line Контрольно-Кассовый Чек [21:26:08]line ПРОДАЖА [21:26:08]line Товар: 4870022003312 [21:26:08]line Gorilla эн нап манго-кокос 0,45 ж/б [21:26:08]line 1.000 * 90.00 [21:26:08]line = 90.00 [21:26:08]line НДС 12% НСП 1% [21:26:08]line > о реализуемом товаре [21:26:08]line Товар: 2000032710015 [21:26:08]line Сочник DC творог 75г [21:26:08]line 2.000 * 35.00 [21:26:08]line = 70.00 [21:26:08]line НДС 12% НСП 1% [21:26:08]line > о реализуемом товаре [21:26:08]line ИТОГО: 160.00 [21:26:08]line НСП 1% : 1.42 [21:26:08]line НДС 12% : 16.99 [21:26:08]line Наличными: 160.00 [21:26:08]line Безнал.: 0.00 [21:26:08]line Место: АЗС № 5 "Партнер Нефть" [21:26:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:26:08]line СНО: Общий режим [21:26:08]line Чек 135 13.09.2024 21:26 [21:26:08]line Смена: 505 ФФД: 1.0 [21:26:08]line ЗНМ: 03000000022 [21:26:08]line РНМ: 0000000000091423 [21:26:08]line Версия ККМ: 001 [21:26:08]line ФМ: 0000000000874692 [21:26:08]line ФД: 92327 [21:26:08]line ФПД: 3685851099996 [21:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212607&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92327&fm=3685851099996&tin=02508201610067®Number=0000000000091423&sum=16000 [21:26:08]line 0 [21:26:08]OFD Sender: Processing packet 92327 [packets to send 63, broken 62] [21:26:08]ProducePacketName [21:26:08]name=ofd_packets/00092327 [21:26:08]OFD Sender: To server: pG, [21:26:08]CommunicateWithHost lk.salyk.kg:30040 [21:26:08]ConnectInit lk.salyk.kg [21:26:08]written 0, free lines is 4095 [21:26:08]Connected sock=10 [21:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 D4 33 9B 01 01 88 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 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 A3 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 87 00 00 00 F4 03 04 00 EF AD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A7 68 01 00 35 04 06 00 03 5A 2D D8 73 5C 97 AD 88 4A C8 A0 38 87 [21:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0F 69 47 00 30 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 34 36 39 32 10 04 04 00 A7 68 01 00 F4 03 04 00 6D 56 E4 66 B6 04 01 00 00 27 A8 69 33 7C 12 1D 45 [21:26:08]CommunicateWithHost err = 0 [21:26:08]CheckOFDResponse [21:26:08]1017 (14) - 77093643461234 [21:26:08]1041 (16) - 0000000000874692 [21:26:08]1040 (4) - 92327 [21:26:08]1012 (4) - 13.09.2024 15:12 [21:26:08]1206 (1) - 0 [21:26:08]OFD Sender: Remove packet 92327 [21:26:08]ProducePacketName [21:26:08]name=ofd_packets/00092327 [21:26:08]NVStorageDeleteData [21:26:09]Write to MH i2c: 01 00 00 A9 0B B4 [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 07 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 D1 0C 98 [21:26:09]RasterBufferAndPrint [21:26:09]line [21:26:09]line [21:26:09]line [21:26:09]line [21:26:09]line [21:26:09]written 0, free lines is 3289 [21:26:09]MH_Cut [21:26:09]Write to MH i2c: D1 01 00 B0 0B 01 8D [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: D1 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: D1 01 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: D1 01 00 B0 0B 00 8C [21:26:09]Write to MH i2c: 01 00 00 B1 0B BC [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]OFD Sender: No OFD packet to send [21:26:09]*** Cut start [21:26:09]*** Purtial cut [21:26:09]*** Stage 1: CUTSNS_PIN = 1 [21:26:11]Read from MH i2c: 01 [21:26:11]MH_I2C_Read... [21:26:11]*** Stop cut motor [21:26:11]*** Cut end [21:26:11]Read from MH i2c: 01 07 00 [21:26:11]MH_I2C_Read... [21:26:11]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FF 0F D1 [21:26:11]process_action close_receipt done [21:26:11]requested_data is exist [21:26:11]produce_requested_data [21:26:11]requested_item fm.sn is exist - process it [21:26:11]wFMCommunicate request_size=4 [21:26:11]MH_SAM_APDU [21:26:11]CAPDU: 80 11 00 00 [21:26:11]Write to MH i2c: E2 08 00 B2 0B 80 11 00 00 00 00 00 00 37 [21:26:11]Write i2c OK [21:26:11]MH_I2C_Read... [21:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:11]Read from MH i2c: E2 [21:26:11]MH_I2C_Read... [21:26:11]Read from MH i2c: E2 17 00 [21:26:11]MH_I2C_Read... [21:26:11]Read from MH i2c: E2 17 00 B2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8E [21:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:26:11]wFMCommunicate OK [21:26:11]requested_item fd.num is exist - process it [21:26:11]SAM_PROTO_GetFieldsCounters [21:26:11]wFMCommunicate request_size=4 [21:26:11]MH_SAM_APDU [21:26:11]CAPDU: 80 13 00 00 [21:26:11]Write to MH i2c: E2 08 00 B3 0B 80 13 00 00 00 00 00 00 3A [21:26:11]Write i2c OK [21:26:11]MH_I2C_Read... [21:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:12]Read from MH i2c: E2 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 62 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 62 00 B3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A7 68 01 00 0E 04 04 00 F9 01 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 F8 [21:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A7 68 01 00 0E 04 04 00 F9 01 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 [21:26:12]wFMCommunicate OK [21:26:12]SAM_PROTO_GetFieldsCounters done [21:26:12]requested_item shift.num is exist - process it [21:26:12]requested_item shift.opened is exist - process it [21:26:12]req_shift_opened [21:26:12]FM_GetShiftState [21:26:12]SAM_PROTO_GetShiftState [21:26:12]wFMCommunicate request_size=4 [21:26:12]MH_SAM_APDU [21:26:12]CAPDU: 80 13 01 00 [21:26:12]Write to MH i2c: E2 08 00 B4 0B 80 13 01 00 00 00 00 00 3C [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:12]Read from MH i2c: E2 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 0E 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 0E 00 B4 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C8 [21:26:12]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:26:12]wFMCommunicate OK [21:26:12]SAM_PROTO_GetShiftState done [21:26:12]FM_GetShiftState done [21:26:12]req_shift_opened done [21:26:12]requested_item shift.open_date is exist - process it [21:26:12]req_shift_open_date [21:26:12]req_shift_open_date done [21:26:12]produce_requested_data done [21:26:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92327,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:26:12]process_action_free close_receipt [21:26:12]json_value_free [21:26:12]json_value_free done [21:26:12]process_json_proto returns [21:26:12]Send response to host [21:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92327,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:26:12]free response buf [21:26:12]execute_script done [21:26:12]execute_script returns [21:26:12]free content buf [21:26:12]Sock 8.Close socket [21:26:12]Sock 8.Thread stoped [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:23]accept exits with 9 [21:27:23]New connection [21:27:23]New thread 3067235684 created [21:27:23]Thread 3067379044 joined [21:27:23]Waiting for new connection... [21:27:23] Sock 9.Parse request [21:27:23]Sock 9.Check first char [21:27:23]Sock 9.First char is OK [21:27:23]request: POST /json_proto HTTP/1.0 [21:27:23]Method: POST [21:27:23]URL: /json_proto [21:27:23]Method is POST - this is cgi request [21:27:23]url: /json_proto [21:27:23]query_string will be loaded in cgi processing [21:27:23]execute_cgi json_proto POST (null) [21:27:23]execute_cgi path=json_proto method=POST [21:27:23]POST find Content-Length [21:27:23]Host: 172.17.57.71:8080 [21:27:23]Content-Length: 865 [21:27:23]Content-Type: application/json [21:27:23] [21:27:23]POST finish read [21:27:23]Found Content-Length = 865 [21:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127255", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:23]execute_script... [21:27: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 : (3)127255", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:23]POST & json_proto [21:27:23]process_json_proto [21:27:23]json parsed OK: [21:27:23]protocol is kg_v1.0 [21:27:23]action value=close_receipt [21:27:23]process_action close_receipt [21:27:23]cmd_close_receipt [21:27:23]MH_GetDate [21:27:23]Write to MH i2c: F0 00 00 B5 0B AF [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: F0 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: F0 09 00 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: F0 09 00 B5 0B 00 3C AE E4 66 33 3A A4 66 63 [21:27:23]GetLastDocTimeStamp 1726262767 [21:27:23]current date 1726262844 [21:27:23]FM_GetShiftState [21:27:23]SAM_PROTO_GetShiftState [21:27:23]wFMCommunicate request_size=4 [21:27:23]MH_SAM_APDU [21:27:23]CAPDU: 80 13 01 00 [21:27:23]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:23]Read from MH i2c: E2 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 0E 00 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 CA [21:27:23]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:27:23]wFMCommunicate OK [21:27:23]SAM_PROTO_GetShiftState done [21:27:23]FM_GetShiftState done [21:27:23]opened in 1726186930 [21:27:23]opened+sec_in_day 1726273330 [21:27:23]quantity*price = 15500 [21:27:23]sum+1 = 15501 [21:27:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 136 13.09.2024 21:27 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92328 ФПД: 70861632104954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212724&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92328&fm=70861632104954&tin=02508201610067®Number=0000000000091423&sum=19500 0 [21:27:24]StoreToDocumentArchive [21:27:24]shift 505 fd 92328 [21:27:24]save to /storage/0505/doc_00092328 [21:27:24]save last doc name /storage/0505/doc_00092328 to /storage/kkm_last_doc_name [21:27:24]save OK [21:27:24]Clear old archive folders... [21:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=373 [21:27:24]tlvbuf is 014441B0 [21:27:24]SAM_PROTO_ClearQueue [21:27:24]wFMCommunicate request_size=4 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 09 00 00 [21:27:24]Write to MH i2c: E2 08 00 C3 0B 80 09 00 00 00 00 00 00 40 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [21:27:24]RAPDU: 90 00 [21:27:24]wFMCommunicate OK [21:27:24]SAM_PROTO_ClearQueue done [21:27:24]KKMCreateOFDPacket [21:27:24]OFDProtocolAddRootSTLVToBuf [21:27:24]FM_MakeSignedData [21:27:24]FM_MakeSignedData [21:27:24]SAM_PROTO_SignData [21:27:24]wFMCommunicate request_size=4 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 0D 01 02 [21:27:24]Write to MH i2c: E2 08 00 C4 0B 80 0D 01 02 00 00 00 00 48 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [21:27:24]RAPDU: 90 00 [21:27:24]wFMCommunicate OK [21:27:24]wFMCommunicate request_size=255 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 [21:27:24]Write to MH i2c: E2 02 01 C5 0B 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 00 00 36 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:25]Read from MH i2c: E2 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 03 00 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [21:27:25]RAPDU: 90 00 [21:27:25]wFMCommunicate OK [21:27:25]wFMCommunicate request_size=132 [21:27:25]MH_SAM_APDU [21:27:25]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 3C AE E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 68 01 00 35 04 06 00 40 72 C2 68 E9 FA [21:27:25]Write to MH i2c: E2 87 00 C6 0B 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 3C AE E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 68 01 00 35 04 06 00 40 72 C2 68 E9 FA 00 00 9F [21:27:25]Write i2c OK [21:27:25]MH_I2C_Read... [21:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:25]Read from MH i2c: E2 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 03 00 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [21:27:25]RAPDU: 90 00 [21:27:25]wFMCommunicate OK [21:27:25]wFMCommunicate request_size=4 [21:27:25]MH_SAM_APDU [21:27:25]CAPDU: 80 0D 03 02 [21:27:25]Write to MH i2c: E2 08 00 C7 0B 80 0D 03 02 00 00 00 00 4D [21:27:25]Write i2c OK [21:27:25]MH_I2C_Read... [21:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:25]Read from MH i2c: E2 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 0B 00 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 0B 00 C7 0B 00 06 59 99 90 C3 66 E6 60 90 00 45 [21:27:25]RAPDU: 06 59 99 90 C3 66 E6 60 90 00 [21:27:25]wFMCommunicate OK [21:27:25]SAM_PROTO_SignData done [21:27:25]FM_MakeSignedData done [21:27:25]CreateOFDProtocolMessage [21:27:25]wFMCommunicate request_size=4 [21:27:25]MH_SAM_APDU [21:27:25]CAPDU: 80 11 00 00 [21:27:25]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [21:27:25]Write i2c OK [21:27:25]MH_I2C_Read... [21:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:25]Read from MH i2c: E2 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 17 00 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A4 [21:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:27:25]wFMCommunicate OK [21:27:25]CreateOFDProtocolMessage done [21:27:25]OFDSenderStorePacket 92328 [21:27:25]StoreOFDPacket docnum=92328 [21:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 7F BB 81 01 09 8D 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 3C AE E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 68 01 00 35 04 06 00 40 72 C2 68 E9 FA 06 59 99 90 C3 66 E6 60 [21:27:25]CheckFolder [21:27:25]dirname=/storage/ofd_packets [21:27:25]CheckFolder done [21:27:25]ProducePacketName [21:27:25]name=ofd_packets/00092328 [21:27:25]NVStorageSaveData ofd_packets/00092328 [21:27:25]File name is /storage/ofd_packets/00092328 [21:27:25]Write 423 bytes [21:27:25]NVStorageSaveData done [21:27:25]OFDSenderStorePacket done [21:27:25]KKMCreateOFDPacket done [21:27:25]NVStorageSaveData kkm_last_timestamp [21:27:25]File name is /storage/kkm_last_timestamp [21:27:25]Write 4 bytes [21:27:25]NVStorageSaveData done [21:27:25]ExternCall_PrintAddStr [21:27:25]wPrintStart [21:27:25]Write to MH i2c: 01 00 00 C9 0B D4 [21:27:25]Write i2c OK [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: 01 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: 01 07 00 [21:27:25]MH_I2C_Read... [21:27:25]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 FF 0F E9 [21:27:25]RasterBufferAndPrint [21:27:25]line Счет N : (3)127255 [21:27:25]line ИНН: 02508201610067 [21:27:25]line Контрольно-Кассовый Чек [21:27:25]line ПРОДАЖА [21:27:25]line Товар: 4640030091584 [21:27:25]line Сигареты Esse Gold [21:27:25]line 1.000 * 155.00 [21:27:25]line = 155.00 [21:27:25]line НДС 12% НСП 1% [21:27:25]line > о реализуемом товаре [21:27:25]line Товар: 50173372 [21:27:25]line Жев Orbit для детей Classic [21:27:25]line 1.000 * 40.00 [21:27:25]line = 40.00 [21:27:25]line НДС 12% НСП 1% [21:27:25]line > о реализуемом товаре [21:27:25]line ИТОГО: 195.00 [21:27:25]line НСП 1% : 1.72 [21:27:25]line НДС 12% : 20.71 [21:27:25]line Наличными: 195.00 [21:27:25]line Безнал.: 0.00 [21:27:25]line Место: АЗС № 5 "Партнер Нефть" [21:27:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:27:25]line СНО: Общий режим [21:27:25]line Чек 136 13.09.2024 21:27 [21:27:25]line Смена: 505 ФФД: 1.0 [21:27:25]line ЗНМ: 03000000022 [21:27:25]line РНМ: 0000000000091423 [21:27:25]line Версия ККМ: 001 [21:27:25]line ФМ: 0000000000874692 [21:27:25]line ФД: 92328 [21:27:25]line ФПД: 70861632104954 [21:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T212724&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92328&fm=70861632104954&tin=02508201610067®Number=0000000000091423&sum=19500 [21:27:25]OFD Sender: Processing packet 92328 [packets to send 63, broken 62] [21:27:25]ProducePacketName [21:27:25]name=ofd_packets/00092328 [21:27:25]OFD Sender: To server: pG, [21:27:25]CommunicateWithHost lk.salyk.kg:30040 [21:27:25]ConnectInit lk.salyk.kg [21:27:25]line 0 [21:27:25]written 0, free lines is 4095 [21:27:25]Connected sock=10 [21:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 89 01 00 00 7F BB 81 01 09 8D 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 3C AE E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 68 01 00 35 04 06 00 40 72 C2 68 E9 FA 06 59 99 90 C3 66 E6 60 [21:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 74 00 47 00 7A 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A8 68 01 00 F4 03 04 00 BA 56 E4 66 B6 04 01 00 00 2C 05 73 8E 18 DA 2C 3D [21:27:25]CommunicateWithHost err = 0 [21:27:25]CheckOFDResponse [21:27:25]1017 (14) - 77093643461234 [21:27:25]1041 (16) - 0000000000874692 [21:27:25]1040 (4) - 92328 [21:27:25]1012 (4) - 13.09.2024 15:14 [21:27:25]1206 (1) - 0 [21:27:25]OFD Sender: Remove packet 92328 [21:27:25]ProducePacketName [21:27:25]name=ofd_packets/00092328 [21:27:25]NVStorageDeleteData [21:27:26]Write to MH i2c: 01 00 00 F7 0B 02 [21:27:26]Write i2c OK [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: 01 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: 01 07 00 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 D6 0C EB [21:27:26]RasterBufferAndPrint [21:27:26]line [21:27:26]line [21:27:26]line [21:27:26]line [21:27:26]line [21:27:26]written 0, free lines is 3294 [21:27:26]MH_Cut [21:27:26]Write to MH i2c: D1 01 00 FE 0B 01 DB [21:27:26]Write i2c OK [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: D1 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: D1 01 00 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: D1 01 00 FE 0B 00 DA [21:27:26]Write to MH i2c: 01 00 00 FF 0B 0A [21:27:26]Write i2c OK [21:27:26]MH_I2C_Read... [21:27:26]OFD Sender: No OFD packet to send [21:27:26]*** Cut start [21:27:26]*** Purtial cut [21:27:26]*** Stage 1: CUTSNS_PIN = 1 [21:27:28]Read from MH i2c: 01 [21:27:28]MH_I2C_Read... [21:27:28]*** Stop cut motor [21:27:28]*** Cut end [21:27:28]Read from MH i2c: 01 07 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 FF 0F 1F [21:27:28]process_action close_receipt done [21:27:28]requested_data is exist [21:27:28]produce_requested_data [21:27:28]requested_item fm.sn is exist - process it [21:27:28]wFMCommunicate request_size=4 [21:27:28]MH_SAM_APDU [21:27:28]CAPDU: 80 11 00 00 [21:27:28]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:28]Read from MH i2c: E2 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 17 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [21:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:27:28]wFMCommunicate OK [21:27:28]requested_item fd.num is exist - process it [21:27:28]SAM_PROTO_GetFieldsCounters [21:27:28]wFMCommunicate request_size=4 [21:27:28]MH_SAM_APDU [21:27:28]CAPDU: 80 13 00 00 [21:27:28]Write to MH i2c: E2 08 00 01 0C 80 13 00 00 00 00 00 00 89 [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:29]Read from MH i2c: E2 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: E2 62 00 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: E2 62 00 01 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A8 68 01 00 0E 04 04 00 F9 01 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 4B [21:27:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A8 68 01 00 0E 04 04 00 F9 01 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 [21:27:29]wFMCommunicate OK [21:27:29]SAM_PROTO_GetFieldsCounters done [21:27:29]requested_item shift.num is exist - process it [21:27:29]requested_item shift.opened is exist - process it [21:27:29]req_shift_opened [21:27:29]FM_GetShiftState [21:27:29]SAM_PROTO_GetShiftState [21:27:29]wFMCommunicate request_size=4 [21:27:29]MH_SAM_APDU [21:27:29]CAPDU: 80 13 01 00 [21:27:29]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [21:27:29]Write i2c OK [21:27:29]MH_I2C_Read... [21:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:29]Read from MH i2c: E2 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: E2 0E 00 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 17 [21:27:29]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:27:29]wFMCommunicate OK [21:27:29]SAM_PROTO_GetShiftState done [21:27:29]FM_GetShiftState done [21:27:29]req_shift_opened done [21:27:29]requested_item shift.open_date is exist - process it [21:27:29]req_shift_open_date [21:27:29]req_shift_open_date done [21:27:29]produce_requested_data done [21:27:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92328,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:27:29]process_action_free close_receipt [21:27:29]json_value_free [21:27:29]json_value_free done [21:27:29]process_json_proto returns [21:27:29]Send response to host [21:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92328,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:27:29]free response buf [21:27:29]execute_script done [21:27:29]execute_script returns [21:27:29]free content buf [21:27:29]Sock 9.Close socket [21:27:29]Sock 9.Thread stoped [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37: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:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:33]accept exits with 8 [21:38:33]New connection [21:38:33]New thread 3067379044 created [21:38:33]Thread 3067235684 joined [21:38:33]Waiting for new connection... [21:38:33] Sock 8.Parse request [21:38:33]Sock 8.Check first char [21:38:33]Sock 8.First char is OK [21:38:33]request: POST /json_proto HTTP/1.0 [21:38:33]Method: POST [21:38:33]URL: /json_proto [21:38:33]Method is POST - this is cgi request [21:38:33]url: /json_proto [21:38:33]query_string will be loaded in cgi processing [21:38:33]execute_cgi json_proto POST (null) [21:38:33]execute_cgi path=json_proto method=POST [21:38:33]POST find Content-Length [21:38:33]Host: 172.17.57.71:8080 [21:38:33]Content-Length: 835 [21:38:33]Content-Type: application/json [21:38:33] [21:38:33]POST finish read [21:38:33]Found Content-Length = 835 [21:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127256", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:33]execute_script... [21:38: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 : (3)127256", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:33]POST & json_proto [21:38:33]process_json_proto [21:38:33]json parsed OK: [21:38:33]protocol is kg_v1.0 [21:38:33]action value=close_receipt [21:38:33]process_action close_receipt [21:38:33]cmd_close_receipt [21:38:33]MH_GetDate [21:38:33]Write to MH i2c: F0 00 00 03 0C FE [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: F0 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: F0 09 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: F0 09 00 03 0C 00 DA B0 E4 66 33 3A A4 66 52 [21:38:33]GetLastDocTimeStamp 1726262844 [21:38:33]current date 1726263514 [21:38:33]FM_GetShiftState [21:38:33]SAM_PROTO_GetShiftState [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 13 01 00 [21:38:33]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 0E 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 19 [21:38:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:38:33]wFMCommunicate OK [21:38:33]SAM_PROTO_GetShiftState done [21:38:33]FM_GetShiftState done [21:38:33]opened in 1726186930 [21:38:33]opened+sec_in_day 1726273330 [21:38:33]quantity*price = 10500 [21:38:33]sum+1 = 10501 [21:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 137 13.09.2024 21:38 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92329 ФПД: 224982306224115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T213834&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92329&fm=224982306224115&tin=02508201610067®Number=0000000000091423&sum=10500 0 [21:38:34]StoreToDocumentArchive [21:38:34]shift 505 fd 92329 [21:38:34]save to /storage/0505/doc_00092329 [21:38:34]save last doc name /storage/0505/doc_00092329 to /storage/kkm_last_doc_name [21:38:34]save OK [21:38:34]Clear old archive folders... [21:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:38:34]tlvbuf is 01357660 [21:38:34]SAM_PROTO_ClearQueue [21:38:34]wFMCommunicate request_size=4 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 09 00 00 [21:38:34]Write to MH i2c: E2 08 00 11 0C 80 09 00 00 00 00 00 00 8F [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [21:38:34]RAPDU: 90 00 [21:38:34]wFMCommunicate OK [21:38:34]SAM_PROTO_ClearQueue done [21:38:34]KKMCreateOFDPacket [21:38:34]OFDProtocolAddRootSTLVToBuf [21:38:34]FM_MakeSignedData [21:38:34]FM_MakeSignedData [21:38:34]SAM_PROTO_SignData [21:38:34]wFMCommunicate request_size=4 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 0D 01 02 [21:38:34]Write to MH i2c: E2 08 00 12 0C 80 0D 01 02 00 00 00 00 97 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [21:38:34]RAPDU: 90 00 [21:38:34]wFMCommunicate OK [21:38:34]wFMCommunicate request_size=255 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 DA B0 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [21:38:34]Write to MH i2c: E2 02 01 13 0C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 DA B0 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 51 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [21:38:34]RAPDU: 90 00 [21:38:34]wFMCommunicate OK [21:38:34]wFMCommunicate request_size=37 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 68 01 00 35 04 06 00 CC 9E C6 71 77 F3 [21:38:34]Write to MH i2c: E2 28 00 14 0C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 68 01 00 35 04 06 00 CC 9E C6 71 77 F3 00 00 12 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [21:38:34]RAPDU: 90 00 [21:38:34]wFMCommunicate OK [21:38:34]wFMCommunicate request_size=4 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 0D 03 02 [21:38:34]Write to MH i2c: E2 08 00 15 0C 80 0D 03 02 00 00 00 00 9C [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0B 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0B 00 15 0C 00 24 21 72 05 40 F1 2D E4 90 00 9B [21:38:34]RAPDU: 24 21 72 05 40 F1 2D E4 90 00 [21:38:34]wFMCommunicate OK [21:38:34]SAM_PROTO_SignData done [21:38:34]FM_MakeSignedData done [21:38:34]CreateOFDProtocolMessage [21:38:34]wFMCommunicate request_size=4 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 11 00 00 [21:38:34]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:35]Read from MH i2c: E2 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 17 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F3 [21:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:38:35]wFMCommunicate OK [21:38:35]CreateOFDProtocolMessage done [21:38:35]OFDSenderStorePacket 92329 [21:38:35]StoreOFDPacket docnum=92329 [21:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 4E 19 22 01 EB 92 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 DA B0 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 68 01 00 35 04 06 00 CC 9E C6 71 77 F3 24 21 72 05 40 F1 2D E4 [21:38:35]CheckFolder [21:38:35]dirname=/storage/ofd_packets [21:38:35]CheckFolder done [21:38:35]ProducePacketName [21:38:35]name=ofd_packets/00092329 [21:38:35]NVStorageSaveData ofd_packets/00092329 [21:38:35]File name is /storage/ofd_packets/00092329 [21:38:35]Write 328 bytes [21:38:35]NVStorageSaveData done [21:38:35]OFDSenderStorePacket done [21:38:35]KKMCreateOFDPacket done [21:38:35]NVStorageSaveData kkm_last_timestamp [21:38:35]File name is /storage/kkm_last_timestamp [21:38:35]Write 4 bytes [21:38:35]NVStorageSaveData done [21:38:35]ExternCall_PrintAddStr [21:38:35]wPrintStart [21:38:35]Write to MH i2c: 01 00 00 17 0C 23 [21:38:35]OFD Sender: Processing packet 92329 [packets to send 63, broken 62] [21:38:35]ProducePacketName [21:38:35]name=ofd_packets/00092329 [21:38:35]OFD Sender: To server: pG, [21:38:35]CommunicateWithHost lk.salyk.kg:30040 [21:38:35]ConnectInit lk.salyk.kg [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 07 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FF 0F 38 [21:38:35]RasterBufferAndPrint [21:38:35]line Счет N : (3)127256 [21:38:35]line ИНН: 02508201610067 [21:38:35]line Контрольно-Кассовый Чек [21:38:35]line ПРОДАЖА [21:38:35]line Товар: 5449000054227 [21:38:35]line Напиток Кока-Кола 1л [21:38:35]line 1.000 * 105.00 [21:38:35]line = 105.00 [21:38:35]line НДС 12% НСП 1% [21:38:35]line > о реализуемом товаре [21:38:35]line ИТОГО: 105.00 [21:38:35]line НСП 1% : 0.93 [21:38:35]line НДС 12% : 11.15 [21:38:35]line Наличными: 0.00 [21:38:35]line Безнал.: 105.00 [21:38:35]line Место: АЗС № 5 "Партнер Нефть" [21:38:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:38:35]line СНО: Общий режим [21:38:35]line Чек 137 13.09.2024 21:38 [21:38:35]line Смена: 505 ФФД: 1.0 [21:38:35]line ЗНМ: 03000000022 [21:38:35]line РНМ: 0000000000091423 [21:38:35]line Версия ККМ: 001 [21:38:35]line Платежная система: Бакай Банк [21:38:35]line ФМ: 0000000000874692 [21:38:35]line ФД: 92329 [21:38:35]line ФПД: 224982306224115 [21:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T213834&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92329&fm=224982306224115&tin=02508201610067®Number=0000000000091423&sum=10500 [21:38:35]line 0 [21:38:35]Connected sock=10 [21:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 4E 19 22 01 EB 92 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 DA B0 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 A9 68 01 00 35 04 06 00 CC 9E C6 71 77 F3 24 21 72 05 40 F1 2D E4 [21:38:35]written 0, free lines is 4095 [21:38:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C8 31 47 00 80 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 34 36 39 32 10 04 04 00 A9 68 01 00 F4 03 04 00 57 59 E4 66 B6 04 01 00 00 8F EA 6C B4 78 EE D5 45 [21:38:35]CommunicateWithHost err = 0 [21:38:35]CheckOFDResponse [21:38:35]1017 (14) - 77093643461234 [21:38:35]1041 (16) - 0000000000874692 [21:38:35]1040 (4) - 92329 [21:38:35]1012 (4) - 13.09.2024 15:25 [21:38:35]1206 (1) - 0 [21:38:35]OFD Sender: Remove packet 92329 [21:38:35]ProducePacketName [21:38:35]name=ofd_packets/00092329 [21:38:35]NVStorageDeleteData [21:38:35]Write to MH i2c: 01 00 00 41 0C 4D [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 07 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 05 0D 66 [21:38:35]RasterBufferAndPrint [21:38:35]line [21:38:35]line [21:38:35]line [21:38:35]line [21:38:35]line [21:38:35]written 0, free lines is 3340 [21:38:35]MH_Cut [21:38:35]Write to MH i2c: D1 01 00 48 0C 01 26 [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: D1 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: D1 01 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: D1 01 00 48 0C 00 25 [21:38:35]Write to MH i2c: 01 00 00 49 0C 55 [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:36]OFD Sender: No OFD packet to send [21:38:36]*** Cut start [21:38:36]*** Purtial cut [21:38:36]*** Stage 1: CUTSNS_PIN = 1 [21:38:38]Read from MH i2c: 01 [21:38:38]MH_I2C_Read... [21:38:38]*** Stop cut motor [21:38:38]*** Cut end [21:38:38]Read from MH i2c: 01 07 00 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [21:38:38]process_action close_receipt done [21:38:38]requested_data is exist [21:38:38]produce_requested_data [21:38:38]requested_item fm.sn is exist - process it [21:38:38]wFMCommunicate request_size=4 [21:38:38]MH_SAM_APDU [21:38:38]CAPDU: 80 11 00 00 [21:38:38]Write to MH i2c: E2 08 00 4A 0C 80 11 00 00 00 00 00 00 D0 [21:38:38]Write i2c OK [21:38:38]MH_I2C_Read... [21:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:38]Read from MH i2c: E2 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 17 00 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 17 00 4A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [21:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:38:38]wFMCommunicate OK [21:38:38]requested_item fd.num is exist - process it [21:38:38]SAM_PROTO_GetFieldsCounters [21:38:38]wFMCommunicate request_size=4 [21:38:38]MH_SAM_APDU [21:38:38]CAPDU: 80 13 00 00 [21:38:38]Write to MH i2c: E2 08 00 4B 0C 80 13 00 00 00 00 00 00 D3 [21:38:38]Write i2c OK [21:38:38]MH_I2C_Read... [21:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:38]Read from MH i2c: E2 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 62 00 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 62 00 4B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A9 68 01 00 0E 04 04 00 F9 01 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 99 [21:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 A9 68 01 00 0E 04 04 00 F9 01 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 [21:38:38]wFMCommunicate OK [21:38:38]SAM_PROTO_GetFieldsCounters done [21:38:38]requested_item shift.num is exist - process it [21:38:38]requested_item shift.opened is exist - process it [21:38:38]req_shift_opened [21:38:38]FM_GetShiftState [21:38:38]SAM_PROTO_GetShiftState [21:38:38]wFMCommunicate request_size=4 [21:38:38]MH_SAM_APDU [21:38:38]CAPDU: 80 13 01 00 [21:38:38]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [21:38:38]Write i2c OK [21:38:38]MH_I2C_Read... [21:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:38]Read from MH i2c: E2 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 0E 00 [21:38:38]MH_I2C_Read... [21:38:38]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 61 [21:38:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:38:38]wFMCommunicate OK [21:38:38]SAM_PROTO_GetShiftState done [21:38:38]FM_GetShiftState done [21:38:38]req_shift_opened done [21:38:38]requested_item shift.open_date is exist - process it [21:38:38]req_shift_open_date [21:38:38]req_shift_open_date done [21:38:38]produce_requested_data done [21:38:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92329,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:38:38]process_action_free close_receipt [21:38:38]json_value_free [21:38:38]json_value_free done [21:38:38]process_json_proto returns [21:38:38]Send response to host [21:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92329,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:38:38]free response buf [21:38:38]execute_script done [21:38:38]execute_script returns [21:38:38]free content buf [21:38:38]Sock 8.Close socket [21:38:38]Sock 8.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [21:45:40]New connection [21:45:40]New thread 3067235684 created [21:45:40]Thread 3067379044 joined [21:45:40]Waiting for new connection... [21:45:40] Sock 9.Parse request [21:45:40]Sock 9.Check first char [21:45:40]Sock 9.First char is OK [21:45:40]request: POST /json_proto HTTP/1.0 [21:45:40]Method: POST [21:45:40]URL: /json_proto [21:45:40]Method is POST - this is cgi request [21:45:40]url: /json_proto [21:45:40]query_string will be loaded in cgi processing [21:45:40]execute_cgi json_proto POST (null) [21:45:40]execute_cgi path=json_proto method=POST [21:45:40]POST find Content-Length [21:45:40]Host: 172.17.57.71:8080 [21:45:40]Content-Length: 706 [21:45:40]Content-Type: application/json [21:45:40] [21:45:40]POST finish read [21:45:40]Found Content-Length = 706 [21:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127257", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:40]execute_script... [21:45: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 : (3)127257", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:40]POST & json_proto [21:45:40]process_json_proto [21:45:40]json parsed OK: [21:45:40]protocol is kg_v1.0 [21:45:40]action value=close_receipt [21:45:40]process_action close_receipt [21:45:40]cmd_close_receipt [21:45:40]MH_GetDate [21:45:40]Write to MH i2c: F0 00 00 4D 0C 48 [21:45:40]Write i2c OK [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: F0 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: F0 09 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: F0 09 00 4D 0C 00 85 B2 E4 66 33 3A A4 66 49 [21:45:40]GetLastDocTimeStamp 1726263514 [21:45:40]current date 1726263941 [21:45:40]FM_GetShiftState [21:45:40]SAM_PROTO_GetShiftState [21:45:40]wFMCommunicate request_size=4 [21:45:40]MH_SAM_APDU [21:45:40]CAPDU: 80 13 01 00 [21:45:40]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [21:45:40]Write i2c OK [21:45:40]MH_I2C_Read... [21:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:40]Read from MH i2c: E2 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 0E 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 63 [21:45:40]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:45:40]wFMCommunicate OK [21:45:40]SAM_PROTO_GetShiftState done [21:45:40]FM_GetShiftState done [21:45:40]opened in 1726186930 [21:45:40]opened+sec_in_day 1726273330 [21:45:40]quantity*price = 10500 [21:45:40]sum+1 = 10501 [21:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 138 13.09.2024 21:45 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92330 ФПД: 72588923212604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T214541&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92330&fm=72588923212604&tin=02508201610067®Number=0000000000091423&sum=10500 0 [21:45:41]StoreToDocumentArchive [21:45:41]shift 505 fd 92330 [21:45:41]save to /storage/0505/doc_00092330 [21:45:41]save last doc name /storage/0505/doc_00092330 to /storage/kkm_last_doc_name [21:45:41]save OK [21:45:41]Clear old archive folders... [21:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=298 [21:45:41]tlvbuf is 012ADC80 [21:45:41]SAM_PROTO_ClearQueue [21:45:41]wFMCommunicate request_size=4 [21:45:41]MH_SAM_APDU [21:45:41]CAPDU: 80 09 00 00 [21:45:41]Write to MH i2c: E2 08 00 5B 0C 80 09 00 00 00 00 00 00 D9 [21:45:41]Write i2c OK [21:45:41]MH_I2C_Read... [21:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:41]OFD Sender: No OFD packet to send [21:45:41]Read from MH i2c: E2 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [21:45:41]RAPDU: 90 00 [21:45:41]wFMCommunicate OK [21:45:41]SAM_PROTO_ClearQueue done [21:45:41]KKMCreateOFDPacket [21:45:41]OFDProtocolAddRootSTLVToBuf [21:45:41]FM_MakeSignedData [21:45:41]FM_MakeSignedData [21:45:41]SAM_PROTO_SignData [21:45:41]wFMCommunicate request_size=4 [21:45:41]MH_SAM_APDU [21:45:41]CAPDU: 80 0D 01 02 [21:45:41]Write to MH i2c: E2 08 00 5C 0C 80 0D 01 02 00 00 00 00 E1 [21:45:41]Write i2c OK [21:45:41]MH_I2C_Read... [21:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:41]Read from MH i2c: E2 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [21:45:41]RAPDU: 90 00 [21:45:41]wFMCommunicate OK [21:45:41]wFMCommunicate request_size=255 [21:45:41]MH_SAM_APDU [21:45:41]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 85 B2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [21:45:41]Write to MH i2c: E2 02 01 5D 0C 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 85 B2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 B4 [21:45:41]Write i2c OK [21:45:41]MH_I2C_Read... [21:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:41]Read from MH i2c: E2 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [21:45:41]RAPDU: 90 00 [21:45:41]wFMCommunicate OK [21:45:41]wFMCommunicate request_size=57 [21:45:41]MH_SAM_APDU [21:45:41]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 68 01 00 35 04 06 00 42 04 EC FB 93 3C [21:45:41]Write to MH i2c: E2 3C 00 5E 0C 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 68 01 00 35 04 06 00 42 04 EC FB 93 3C 00 00 AE [21:45:41]Write i2c OK [21:45:41]MH_I2C_Read... [21:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:41]Read from MH i2c: E2 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 [21:45:41]MH_I2C_Read... [21:45:41]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [21:45:41]RAPDU: 90 00 [21:45:41]wFMCommunicate OK [21:45:41]wFMCommunicate request_size=4 [21:45:41]MH_SAM_APDU [21:45:41]CAPDU: 80 0D 03 02 [21:45:41]Write to MH i2c: E2 08 00 5F 0C 80 0D 03 02 00 00 00 00 E6 [21:45:41]Write i2c OK [21:45:41]MH_I2C_Read... [21:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:42]Read from MH i2c: E2 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: E2 0B 00 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: E2 0B 00 5F 0C 00 1D 35 86 6A 0D BE C6 6E 90 00 28 [21:45:42]RAPDU: 1D 35 86 6A 0D BE C6 6E 90 00 [21:45:42]wFMCommunicate OK [21:45:42]SAM_PROTO_SignData done [21:45:42]FM_MakeSignedData done [21:45:42]CreateOFDProtocolMessage [21:45:42]wFMCommunicate request_size=4 [21:45:42]MH_SAM_APDU [21:45:42]CAPDU: 80 11 00 00 [21:45:42]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [21:45:42]Write i2c OK [21:45:42]MH_I2C_Read... [21:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:42]Read from MH i2c: E2 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: E2 17 00 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3D [21:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:45:42]wFMCommunicate OK [21:45:42]CreateOFDProtocolMessage done [21:45:42]OFDSenderStorePacket 92330 [21:45:42]StoreOFDPacket docnum=92330 [21:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 18 B0 36 01 8F 59 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 85 B2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 68 01 00 35 04 06 00 42 04 EC FB 93 3C 1D 35 86 6A 0D BE C6 6E [21:45:42]CheckFolder [21:45:42]dirname=/storage/ofd_packets [21:45:42]CheckFolder done [21:45:42]ProducePacketName [21:45:42]name=ofd_packets/00092330 [21:45:42]NVStorageSaveData ofd_packets/00092330 [21:45:42]File name is /storage/ofd_packets/00092330 [21:45:42]Write 348 bytes [21:45:42]NVStorageSaveData done [21:45:42]OFDSenderStorePacket done [21:45:42]KKMCreateOFDPacket done [21:45:42]NVStorageSaveData kkm_last_timestamp [21:45:42]File name is /storage/kkm_last_timestamp [21:45:42]Write 4 bytes [21:45:42]NVStorageSaveData done [21:45:42]ExternCall_PrintAddStr [21:45:42]wPrintStart [21:45:42]Write to MH i2c: 01 00 00 61 0C 6D [21:45:42]Write i2c OK [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 07 00 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [21:45:42]RasterBufferAndPrint [21:45:42]line Счет N : (3)127257 [21:45:42]line ИНН: 02508201610067 [21:45:42]line Контрольно-Кассовый Чек [21:45:42]line ПРОДАЖА [21:45:42]line Товар: 5449000189356 [21:45:42]line Холодный чай Fuse манго ананас 1л [21:45:42]line 1.000 * 105.00 [21:45:42]line = 105.00 [21:45:42]line НДС 12% НСП 1% [21:45:42]line > о реализуемом товаре [21:45:42]line ИТОГО: 105.00 [21:45:42]line НСП 1% : 0.93 [21:45:42]line НДС 12% : 11.15 [21:45:42]line Наличными: 105.00 [21:45:42]line Безнал.: 0.00 [21:45:42]line Место: АЗС № 5 "Партнер Нефть" [21:45:42]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:45:42]line СНО: Общий режим [21:45:42]line Чек 138 13.09.2024 21:45 [21:45:42]line Смена: 505 ФФД: 1.0 [21:45:42]line ЗНМ: 03000000022 [21:45:42]line РНМ: 0000000000091423 [21:45:42]line Версия ККМ: 001 [21:45:42]line ФМ: 0000000000874692 [21:45:42]line ФД: 92330 [21:45:42]line ФПД: 72588923212604 [21:45:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T214541&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92330&fm=72588923212604&tin=02508201610067®Number=0000000000091423&sum=10500 [21:45:42]line 0 [21:45:42]OFD Sender: Processing packet 92330 [packets to send 63, broken 62] [21:45:42]ProducePacketName [21:45:42]name=ofd_packets/00092330 [21:45:42]OFD Sender: To server: pG, [21:45:42]CommunicateWithHost lk.salyk.kg:30040 [21:45:42]ConnectInit lk.salyk.kg [21:45:42]written 0, free lines is 4095 [21:45:42]Connected sock=10 [21:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 18 B0 36 01 8F 59 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 85 B2 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 68 01 00 35 04 06 00 42 04 EC FB 93 3C 1D 35 86 6A 0D BE C6 6E [21:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D8 1B 47 00 8A 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AA 68 01 00 F4 03 04 00 03 5B E4 66 B6 04 01 00 00 CA C3 4E 71 93 64 D6 3E [21:45:42]CommunicateWithHost err = 0 [21:45:42]CheckOFDResponse [21:45:42]1017 (14) - 77093643461234 [21:45:42]1041 (16) - 0000000000874692 [21:45:42]1040 (4) - 92330 [21:45:42]1012 (4) - 13.09.2024 15:32 [21:45:42]1206 (1) - 0 [21:45:42]OFD Sender: Remove packet 92330 [21:45:42]ProducePacketName [21:45:42]name=ofd_packets/00092330 [21:45:42]NVStorageDeleteData [21:45:42]Write to MH i2c: 01 00 00 8A 0C 96 [21:45:42]Write i2c OK [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 07 00 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 10 0D BA [21:45:42]RasterBufferAndPrint [21:45:42]line [21:45:42]line [21:45:42]line [21:45:42]line [21:45:42]line [21:45:42]written 0, free lines is 3351 [21:45:42]MH_Cut [21:45:42]Write to MH i2c: D1 01 00 91 0C 01 6F [21:45:42]Write i2c OK [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: D1 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: D1 01 00 [21:45:42]MH_I2C_Read... [21:45:42]Read from MH i2c: D1 01 00 91 0C 00 6E [21:45:42]Write to MH i2c: 01 00 00 92 0C 9E [21:45:42]Write i2c OK [21:45:42]MH_I2C_Read... [21:45:43]OFD Sender: No OFD packet to send [21:45:43]*** Cut start [21:45:43]*** Purtial cut [21:45:43]*** Stage 1: CUTSNS_PIN = 1 [21:45:45]Read from MH i2c: 01 [21:45:45]MH_I2C_Read... [21:45:45]*** Stop cut motor [21:45:45]*** Cut end [21:45:45]Read from MH i2c: 01 07 00 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 FF 0F B3 [21:45:45]process_action close_receipt done [21:45:45]requested_data is exist [21:45:45]produce_requested_data [21:45:45]requested_item fm.sn is exist - process it [21:45:45]wFMCommunicate request_size=4 [21:45:45]MH_SAM_APDU [21:45:45]CAPDU: 80 11 00 00 [21:45:45]Write to MH i2c: E2 08 00 93 0C 80 11 00 00 00 00 00 00 19 [21:45:45]Write i2c OK [21:45:45]MH_I2C_Read... [21:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:45]Read from MH i2c: E2 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 17 00 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 17 00 93 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [21:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:45:45]wFMCommunicate OK [21:45:45]requested_item fd.num is exist - process it [21:45:45]SAM_PROTO_GetFieldsCounters [21:45:45]wFMCommunicate request_size=4 [21:45:45]MH_SAM_APDU [21:45:45]CAPDU: 80 13 00 00 [21:45:45]Write to MH i2c: E2 08 00 94 0C 80 13 00 00 00 00 00 00 1C [21:45:45]Write i2c OK [21:45:45]MH_I2C_Read... [21:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:45]Read from MH i2c: E2 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 62 00 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 62 00 94 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AA 68 01 00 0E 04 04 00 F9 01 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 E6 [21:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AA 68 01 00 0E 04 04 00 F9 01 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 [21:45:45]wFMCommunicate OK [21:45:45]SAM_PROTO_GetFieldsCounters done [21:45:45]requested_item shift.num is exist - process it [21:45:45]requested_item shift.opened is exist - process it [21:45:45]req_shift_opened [21:45:45]FM_GetShiftState [21:45:45]SAM_PROTO_GetShiftState [21:45:45]wFMCommunicate request_size=4 [21:45:45]MH_SAM_APDU [21:45:45]CAPDU: 80 13 01 00 [21:45:45]Write to MH i2c: E2 08 00 95 0C 80 13 01 00 00 00 00 00 1E [21:45:45]Write i2c OK [21:45:45]MH_I2C_Read... [21:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:45]Read from MH i2c: E2 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 0E 00 [21:45:45]MH_I2C_Read... [21:45:45]Read from MH i2c: E2 0E 00 95 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AA [21:45:45]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:45:45]wFMCommunicate OK [21:45:45]SAM_PROTO_GetShiftState done [21:45:45]FM_GetShiftState done [21:45:45]req_shift_opened done [21:45:45]requested_item shift.open_date is exist - process it [21:45:45]req_shift_open_date [21:45:45]req_shift_open_date done [21:45:45]produce_requested_data done [21:45:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92330,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:45:45]process_action_free close_receipt [21:45:45]json_value_free [21:45:45]json_value_free done [21:45:45]process_json_proto returns [21:45:45]Send response to host [21:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92330,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:45:45]free response buf [21:45:45]execute_script done [21:45:45]execute_script returns [21:45:45]free content buf [21:45:45]Sock 9.Close socket [21:45:45]Sock 9.Thread stoped [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49: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:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]accept exits with 8 [21:58:38]New connection [21:58:38]New thread 3067379044 created [21:58:38]Thread 3067235684 joined [21:58:38]Waiting for new connection... [21:58:38] Sock 8.Parse request [21:58:38]Sock 8.Check first char [21:58:38]Sock 8.First char is OK [21:58:38]request: POST /json_proto HTTP/1.0 [21:58:38]Method: POST [21:58:38]URL: /json_proto [21:58:38]Method is POST - this is cgi request [21:58:38]url: /json_proto [21:58:38]query_string will be loaded in cgi processing [21:58:38]execute_cgi json_proto POST (null) [21:58:38]execute_cgi path=json_proto method=POST [21:58:38]POST find Content-Length [21:58:38]Host: 172.17.57.71:8080 [21:58:38]Content-Length: 789 [21:58:38]Content-Type: application/json [21:58:38] [21:58:38]POST finish read [21:58:38]Found Content-Length = 789 [21:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127258", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 1.000, "sum" : 205.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:38]execute_script... [21:58: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 : (3)127258", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 1.000, "sum" : 205.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:38]POST & json_proto [21:58:38]process_json_proto [21:58:38]json parsed OK: [21:58:38]protocol is kg_v1.0 [21:58:38]action value=close_receipt [21:58:38]process_action close_receipt [21:58:38]cmd_close_receipt [21:58:38]MH_GetDate [21:58:38]Write to MH i2c: F0 00 00 96 0C 91 [21:58:38]Write i2c OK [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: F0 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: F0 09 00 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: F0 09 00 96 0C 00 8F B5 E4 66 33 3A A4 66 9F [21:58:38]GetLastDocTimeStamp 1726263941 [21:58:38]current date 1726264719 [21:58:38]FM_GetShiftState [21:58:38]SAM_PROTO_GetShiftState [21:58:38]wFMCommunicate request_size=4 [21:58:38]MH_SAM_APDU [21:58:38]CAPDU: 80 13 01 00 [21:58:38]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [21:58:38]Write i2c OK [21:58:38]MH_I2C_Read... [21:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:38]Read from MH i2c: E2 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 0E 00 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AC [21:58:38]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:58:38]wFMCommunicate OK [21:58:38]SAM_PROTO_GetShiftState done [21:58:38]FM_GetShiftState done [21:58:38]opened in 1726186930 [21:58:38]opened+sec_in_day 1726273330 [21:58:38]quantity*price = 20500 [21:58:38]sum+1 = 20501 [21:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 139 13.09.2024 21:58 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92331 ФПД: 30364917101739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T215839&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92331&fm=30364917101739&tin=02508201610067®Number=0000000000091423&sum=20500 0 [21:58:39]StoreToDocumentArchive [21:58:39]shift 505 fd 92331 [21:58:39]save to /storage/0505/doc_00092331 [21:58:39]save last doc name /storage/0505/doc_00092331 to /storage/kkm_last_doc_name [21:58:39]save OK [21:58:39]Clear old archive folders... [21:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=267 [21:58:39]tlvbuf is 0127D8F0 [21:58:39]SAM_PROTO_ClearQueue [21:58:39]wFMCommunicate request_size=4 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 09 00 00 [21:58:39]Write to MH i2c: E2 08 00 A4 0C 80 09 00 00 00 00 00 00 22 [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [21:58:39]RAPDU: 90 00 [21:58:39]wFMCommunicate OK [21:58:39]SAM_PROTO_ClearQueue done [21:58:39]KKMCreateOFDPacket [21:58:39]OFDProtocolAddRootSTLVToBuf [21:58:39]FM_MakeSignedData [21:58:39]FM_MakeSignedData [21:58:39]SAM_PROTO_SignData [21:58:39]wFMCommunicate request_size=4 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 0D 01 02 [21:58:39]Write to MH i2c: E2 08 00 A5 0C 80 0D 01 02 00 00 00 00 2A [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [21:58:39]RAPDU: 90 00 [21:58:39]wFMCommunicate OK [21:58:39]wFMCommunicate request_size=255 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8F B5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [21:58:39]Write to MH i2c: E2 02 01 A6 0C 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8F B5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 DA [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [21:58:39]RAPDU: 90 00 [21:58:39]wFMCommunicate OK [21:58:39]wFMCommunicate request_size=26 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 0D 02 02 15 36 39 32 10 04 04 00 AB 68 01 00 35 04 06 00 1B 9D E2 18 F4 AB [21:58:39]Write to MH i2c: E2 1D 00 A7 0C 80 0D 02 02 15 00 36 39 32 10 04 04 00 AB 68 01 00 35 04 06 00 1B 9D E2 18 F4 AB 00 00 B4 [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [21:58:39]RAPDU: 90 00 [21:58:39]wFMCommunicate OK [21:58:39]wFMCommunicate request_size=4 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 0D 03 02 [21:58:39]Write to MH i2c: E2 08 00 A8 0C 80 0D 03 02 00 00 00 00 2F [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 0B 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 0B 00 A8 0C 00 6A F7 5B ED 05 EA 3B CF 90 00 D2 [21:58:39]RAPDU: 6A F7 5B ED 05 EA 3B CF 90 00 [21:58:39]wFMCommunicate OK [21:58:39]SAM_PROTO_SignData done [21:58:39]FM_MakeSignedData done [21:58:39]CreateOFDProtocolMessage [21:58:39]wFMCommunicate request_size=4 [21:58:39]MH_SAM_APDU [21:58:39]CAPDU: 80 11 00 00 [21:58:39]Write to MH i2c: E2 08 00 A9 0C 80 11 00 00 00 00 00 00 2F [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:39]Read from MH i2c: E2 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 17 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: E2 17 00 A9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 86 [21:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:58:39]wFMCommunicate OK [21:58:39]CreateOFDProtocolMessage done [21:58:39]OFDSenderStorePacket 92331 [21:58:39]StoreOFDPacket docnum=92331 [21:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1F 01 00 00 58 C0 17 01 A9 4D 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8F B5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 68 01 00 35 04 06 00 1B 9D E2 18 F4 AB 6A F7 5B ED 05 EA 3B CF [21:58:39]CheckFolder [21:58:39]dirname=/storage/ofd_packets [21:58:39]CheckFolder done [21:58:39]ProducePacketName [21:58:39]name=ofd_packets/00092331 [21:58:39]NVStorageSaveData ofd_packets/00092331 [21:58:39]File name is /storage/ofd_packets/00092331 [21:58:39]Write 317 bytes [21:58:39]NVStorageSaveData done [21:58:39]OFDSenderStorePacket done [21:58:39]KKMCreateOFDPacket done [21:58:39]NVStorageSaveData kkm_last_timestamp [21:58:39]File name is /storage/kkm_last_timestamp [21:58:39]Write 4 bytes [21:58:39]NVStorageSaveData done [21:58:39]ExternCall_PrintAddStr [21:58:39]wPrintStart [21:58:39]Write to MH i2c: 01 00 00 AA 0C B6 [21:58:39]Write i2c OK [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: 01 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: 01 07 00 [21:58:39]MH_I2C_Read... [21:58:39]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [21:58:39]RasterBufferAndPrint [21:58:39]line Счет N : (3)127258 [21:58:39]line ИНН: 02508201610067 [21:58:39]line Контрольно-Кассовый Чек [21:58:39]line ПРОДАЖА [21:58:39]line Товар: 6943046301028 [21:58:39]line Очиститель CARB [21:58:39]line 1.000 * 205.00 [21:58:39]line = 205.00 [21:58:39]line НДС 12% НСП 1% [21:58:39]line > о реализуемом товаре [21:58:39]line ИТОГО: 205.00 [21:58:39]line НСП 1% : 1.81 [21:58:39]line НДС 12% : 21.77 [21:58:39]line Наличными: 0.00 [21:58:39]line Безнал.: 205.00 [21:58:39]line Место: АЗС № 5 "Партнер Нефть" [21:58:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:58:39]line СНО: Общий режим [21:58:39]line Чек 139 13.09.2024 21:58 [21:58:39]line Смена: 505 ФФД: 1.0 [21:58:39]line ЗНМ: 03000000022 [21:58:39]line РНМ: 0000000000091423 [21:58:39]line Версия ККМ: 001 [21:58:39]line Платежная система: О! деньги [21:58:39]line ФМ: 0000000000874692 [21:58:39]line ФД: 92331 [21:58:39]line ФПД: 30364917101739 [21:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T215839&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92331&fm=30364917101739&tin=02508201610067®Number=0000000000091423&sum=20500 [21:58:40]line 0 [21:58:40]OFD Sender: Processing packet 92331 [packets to send 63, broken 62] [21:58:40]ProducePacketName [21:58:40]name=ofd_packets/00092331 [21:58:40]OFD Sender: To server: pG, [21:58:40]CommunicateWithHost lk.salyk.kg:30040 [21:58:40]ConnectInit lk.salyk.kg [21:58:40]written 0, free lines is 4095 [21:58:40]Connected sock=10 [21:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1F 01 00 00 58 C0 17 01 A9 4D 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8F B5 E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 68 01 00 35 04 06 00 1B 9D E2 18 F4 AB 6A F7 5B ED 05 EA 3B CF [21:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 31 5B 47 00 D0 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AB 68 01 00 F4 03 04 00 0C 5E E4 66 B6 04 01 00 00 1E 91 6E 11 2D CC EC 92 [21:58:40]CommunicateWithHost err = 0 [21:58:40]CheckOFDResponse [21:58:40]1017 (14) - 77093643461234 [21:58:40]1041 (16) - 0000000000874692 [21:58:40]1040 (4) - 92331 [21:58:40]1012 (4) - 13.09.2024 15:45 [21:58:40]1206 (1) - 0 [21:58:40]OFD Sender: Remove packet 92331 [21:58:40]ProducePacketName [21:58:40]name=ofd_packets/00092331 [21:58:40]NVStorageDeleteData [21:58:40]Write to MH i2c: 01 00 00 D4 0C E0 [21:58:40]Write i2c OK [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: 01 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: 01 07 00 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 02 0D F6 [21:58:40]RasterBufferAndPrint [21:58:40]line [21:58:40]line [21:58:40]line [21:58:40]line [21:58:40]line [21:58:40]written 0, free lines is 3337 [21:58:40]MH_Cut [21:58:40]Write to MH i2c: D1 01 00 DB 0C 01 B9 [21:58:40]Write i2c OK [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: D1 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: D1 01 00 [21:58:40]MH_I2C_Read... [21:58:40]Read from MH i2c: D1 01 00 DB 0C 00 B8 [21:58:40]Write to MH i2c: 01 00 00 DC 0C E8 [21:58:40]Write i2c OK [21:58:40]MH_I2C_Read... [21:58:41]OFD Sender: No OFD packet to send [21:58:41]*** Cut start [21:58:41]*** Purtial cut [21:58:41]*** Stage 1: CUTSNS_PIN = 1 [21:58:43]Read from MH i2c: 01 [21:58:43]MH_I2C_Read... [21:58:43]*** Stop cut motor [21:58:43]*** Cut end [21:58:43]Read from MH i2c: 01 07 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 FF 0F FD [21:58:43]process_action close_receipt done [21:58:43]requested_data is exist [21:58:43]produce_requested_data [21:58:43]requested_item fm.sn is exist - process it [21:58:43]wFMCommunicate request_size=4 [21:58:43]MH_SAM_APDU [21:58:43]CAPDU: 80 11 00 00 [21:58:43]Write to MH i2c: E2 08 00 DD 0C 80 11 00 00 00 00 00 00 63 [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:43]Read from MH i2c: E2 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 17 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 17 00 DD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BA [21:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:58:43]wFMCommunicate OK [21:58:43]requested_item fd.num is exist - process it [21:58:43]SAM_PROTO_GetFieldsCounters [21:58:43]wFMCommunicate request_size=4 [21:58:43]MH_SAM_APDU [21:58:43]CAPDU: 80 13 00 00 [21:58:43]Write to MH i2c: E2 08 00 DE 0C 80 13 00 00 00 00 00 00 66 [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:43]Read from MH i2c: E2 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 62 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 62 00 DE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AB 68 01 00 0E 04 04 00 F9 01 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 34 [21: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AB 68 01 00 0E 04 04 00 F9 01 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 [21:58:43]wFMCommunicate OK [21:58:43]SAM_PROTO_GetFieldsCounters done [21:58:43]requested_item shift.num is exist - process it [21:58:43]requested_item shift.opened is exist - process it [21:58:43]req_shift_opened [21:58:43]FM_GetShiftState [21:58:43]SAM_PROTO_GetShiftState [21:58:43]wFMCommunicate request_size=4 [21:58:43]MH_SAM_APDU [21:58:43]CAPDU: 80 13 01 00 [21:58:43]Write to MH i2c: E2 08 00 DF 0C 80 13 01 00 00 00 00 00 68 [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:43]Read from MH i2c: E2 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 DF 0C 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 F4 [21:58:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [21:58:43]wFMCommunicate OK [21:58:43]SAM_PROTO_GetShiftState done [21:58:43]FM_GetShiftState done [21:58:43]req_shift_opened done [21:58:43]requested_item shift.open_date is exist - process it [21:58:43]req_shift_open_date [21:58:43]req_shift_open_date done [21:58:43]produce_requested_data done [21:58:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92331,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [21:58:43]process_action_free close_receipt [21:58:43]json_value_free [21:58:43]json_value_free done [21:58:43]process_json_proto returns [21:58:43]Send response to host [21:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92331,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [21:58:43]free response buf [21:58:43]execute_script done [21:58:43]execute_script returns [21:58:43]free content buf [21:58:43]Sock 8.Close socket [21:58:43]Sock 8.Thread stoped [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 FF FF C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 2F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 FF FF B9 [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 02 00 02 [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 02 00 00 00 00 00 00 FF 0F 17 [00:00:10]Model is 3 [00:00:10]MH firmware is 65535 [00:00:10]MH boot firmware is 65535 [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 03 00 41 00 60 00 FF FF 7D [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 03 00 00 D9 [00:00:10]Write to MH i2c: D5 00 00 04 00 D8 [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 04 00 00 D9 [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 05 00 F4 [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 05 00 00 43 B6 E4 66 33 3A A4 66 B7 [22:01:39]Current date/time: 13.09.2024 22:01 [22:01:39]FM_Init [22:01:39]wFMConnect [22:01:39]MH_SAM_On [22:01:39]Write to MH i2c: E0 00 00 06 00 E5 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_init finished! [22:01:39]*** atr: [22:01:39]*** 0F 3B D5 18 FF 81 91 FE [22:01:39]*** 1F C3 80 73 C8 21 10 0A [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]*** 00 00 00 00 00 00 00 00 [22:01:39]Read from MH i2c: E0 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E0 10 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [22:01:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:01:39]wFMCommunicate request_size=10 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:01:39]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [22:01:39]RAPDU: 90 00 [22:01:39]wFMCommunicate OK [22:01:39]wFMCommunicate request_size=4 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 80 11 00 00 [22:01:39]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 17 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [22:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:01:39]wFMCommunicate OK [22:01:39]Detected FM SN is 0000000000874692 [22:01:39]Stored FM SN is 0000000000874692 [22:01:39]wFMCommunicate request_size=9 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 80 16 00 00 04 76 6E 01 00 [22:01:39]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 76 6E 01 00 00 00 75 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:01:39]RAPDU: 90 00 [22:01:39]wFMCommunicate OK [22:01:39]FM PIN OK [22:01:39]wFMCommunicate request_size=8 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 80 14 04 00 03 02 00 01 [22:01:39]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [22:01:39]RAPDU: 90 00 [22:01:39]wFMCommunicate OK [22:01:39]wFMCommunicate request_size=13 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [22:01:39]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [22:01:39]RAPDU: 90 00 [22:01:39]wFMCommunicate OK [22:01:39]wFMCommunicate request_size=4 [22:01:39]MH_SAM_APDU [22:01:39]CAPDU: 80 11 00 00 [22:01:39]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:39]Read from MH i2c: E2 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 17 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [22:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:01:39]wFMCommunicate OK [22:01:39]DocumentArchiveInit [22:01:39]Start Httpd... [22:01:39]Httpd thread 3067284836 created [22:01:39]Write to MH i2c: 01 00 00 0D 00 0D [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 07 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [22:01:39]Allocated Socket 5 [22:01:39]Bind OK [22:01:39]Listen OK [22:01:39]httpd running on port 8080 [22:01:39]Waiting for new connection... [22:01:39]MH Int Process started [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:00]accept exits with 6 [22:03:00]New connection [22:03:00]New thread 3066998116 created [22:03:00]Waiting for new connection... [22:03:00] Sock 6.Parse request [22:03:00]Sock 6.Check first char [22:03:00]Sock 6.First char is OK [22:03:00]request: POST /json_proto HTTP/1.0 [22:03:00]Method: POST [22:03:00]URL: /json_proto [22:03:00]Method is POST - this is cgi request [22:03:00]url: /json_proto [22:03:00]query_string will be loaded in cgi processing [22:03:00]execute_cgi json_proto POST (null) [22:03:00]execute_cgi path=json_proto method=POST [22:03:00]POST find Content-Length [22:03:00]Host: 172.17.57.71:8080 [22:03:00]Content-Length: 987 [22:03:00]Content-Type: application/json [22:03:00] [22:03:00]POST finish read [22:03:00]Found Content-Length = 987 [22:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127259", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:00]execute_script... [22:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127259", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:00]POST & json_proto [22:03:00]process_json_proto [22:03:00]json parsed OK: [22:03:00]protocol is kg_v1.0 [22:03:00]action value=close_receipt [22:03:00]process_action close_receipt [22:03:00]cmd_close_receipt [22:03:00]MH_GetDate [22:03:00]Write to MH i2c: F0 00 00 0E 00 FD [22:03:00]Write i2c OK [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: F0 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: F0 09 00 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: F0 09 00 0E 00 00 95 B6 E4 66 33 3A A4 66 12 [22:03:00]GetLastDocTimeStamp 1726264719 [22:03:00]current date 1726264981 [22:03:00]FM_GetShiftState [22:03:00]SAM_PROTO_GetShiftState [22:03:00]wFMCommunicate request_size=4 [22:03:00]MH_SAM_APDU [22:03:00]CAPDU: 80 13 01 00 [22:03:00]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [22:03:00]Write i2c OK [22:03:00]MH_I2C_Read... [22:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:00]Read from MH i2c: E2 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: E2 0E 00 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 18 [22:03:00]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [22:03:00]wFMCommunicate OK [22:03:00]SAM_PROTO_GetShiftState done [22:03:00]FM_GetShiftState done [22:03:00]opened in 1726186930 [22:03:00]opened+sec_in_day 1726273330 [22:03:00]quantity*price = 11000 [22:03:00]sum+1 = 11001 [22:03:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040110184 Эскимо сливочное Сластена 0,080 кг 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.68 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 141 13.09.2024 23:38 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92333 ФПД: 76280024925429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233849&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92333&fm=76280024925429&tin=02508201610067®Number=0000000000091423&sum=27000 0 [23:38:51]StoreToDocumentArchive [23:38:51]shift 505 fd 92333 [23:38:51]save to /storage/0505/doc_00092333 [23:38:51]save last doc name /storage/0505/doc_00092333 to /storage/kkm_last_doc_name [23:38:51]save OK [23:38:51]Clear old archive folders... [23:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=406 [23:38:51]tlvbuf is 01342F00 [23:38:51]SAM_PROTO_ClearQueue [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 09 00 00 [23:38:51]Write to MH i2c: E2 08 00 29 00 80 09 00 00 00 00 00 00 9B [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]SAM_PROTO_ClearQueue done [23:38:51]KKMCreateOFDPacket [23:38:51]OFDProtocolAddRootSTLVToBuf [23:38:51]FM_MakeSignedData [23:38:51]FM_MakeSignedData [23:38:51]SAM_PROTO_SignData [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 01 02 [23:38:51]Write to MH i2c: E2 08 00 2A 00 80 0D 01 02 00 00 00 00 A3 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=255 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 31 38 34 06 04 3B 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 30 2C 30 38 30 20 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 [23:38:51]Write to MH i2c: E2 02 01 2B 00 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 31 38 34 06 04 3B 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 30 2C 30 38 30 20 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 00 00 1E [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=165 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 02 02 A0 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 34 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 8D 00 00 00 F4 03 04 00 09 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 68 01 00 35 04 06 00 45 60 53 CA 04 F5 [23:38:51]Write to MH i2c: E2 A8 00 2C 00 80 0D 02 02 A0 00 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 34 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 8D 00 00 00 F4 03 04 00 09 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 68 01 00 35 04 06 00 45 60 53 CA 04 F5 00 00 11 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 03 02 [23:38:51]Write to MH i2c: E2 08 00 2D 00 80 0D 03 02 00 00 00 00 A8 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0B 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0B 00 2D 00 00 9D 8A D4 ED E3 D1 A0 F3 90 00 D8 [23:38:51]RAPDU: 9D 8A D4 ED E3 D1 A0 F3 90 00 [23:38:51]wFMCommunicate OK [23:38:51]SAM_PROTO_SignData done [23:38:51]FM_MakeSignedData done [23:38:51]CreateOFDProtocolMessage [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 11 00 00 [23:38:51]Write to MH i2c: E2 08 00 2E 00 80 11 00 00 00 00 00 00 A8 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:51]Read from MH i2c: E2 17 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 17 00 2E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [23:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:38:52]wFMCommunicate OK [23:38:52]CreateOFDProtocolMessage done [23:38:52]OFDSenderStorePacket 92333 [23:38:52]StoreOFDPacket docnum=92333 [23:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 43 AD A2 01 DD 2C 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 31 38 34 06 04 3B 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 30 2C 30 38 30 20 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 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 34 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 8D 00 00 00 F4 03 04 00 09 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 68 01 00 35 04 06 00 45 60 53 CA 04 F5 9D 8A D4 ED E3 D1 A0 F3 [23:38:52]CheckFolder [23:38:52]dirname=/storage/ofd_packets [23:38:52]CheckFolder done [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00092333 [23:38:52]NVStorageSaveData ofd_packets/00092333 [23:38:52]File name is /storage/ofd_packets/00092333 [23:38:52]Write 456 bytes [23:38:52]NVStorageSaveData done [23:38:52]OFDSenderStorePacket done [23:38:52]KKMCreateOFDPacket done [23:38:52]NVStorageSaveData kkm_last_timestamp [23:38:52]File name is /storage/kkm_last_timestamp [23:38:52]Write 4 bytes [23:38:52]NVStorageSaveData done [23:38:52]ExternCall_PrintAddStr [23:38:52]wPrintStart [23:38:52]Write to MH i2c: 01 00 00 2F 00 2F [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 [23:38:52]MH_I2C_Read... [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 2F 00 00 00 00 00 00 FF 0F 44 [23:38:52]RasterBufferAndPrint [23:38:52]line Счет N : (3)127260 [23:38:52]line ИНН: 02508201610067 [23:38:52]line Контрольно-Кассовый Чек [23:38:52]line ПРОДАЖА [23:38:52]line Товар: 4660013331438 [23:38:52]line Эскимо Московское [23:38:52]line 2.000 * 95.00 [23:38:52]line = 190.00 [23:38:52]line НДС 12% НСП 1% [23:38:52]line > о реализуемом товаре [23:38:52]line Товар: 4700040110184 [23:38:52]line Эскимо сливочное Сластена 0,080 кг [23:38:52]line 2.000 * 40.00 [23:38:52]line = 80.00 [23:38:52]line НДС 12% НСП 1% [23:38:52]line > о реализуемом товаре [23:38:52]line ИТОГО: 270.00 [23:38:52]line НСП 1% : 2.39 [23:38:52]line НДС 12% : 28.68 [23:38:52]line Наличными: 270.00 [23:38:52]line Безнал.: 0.00 [23:38:52]line Место: АЗС № 5 "Партнер Нефть" [23:38:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:38:52]line СНО: Общий режим [23:38:52]line Чек 141 13.09.2024 23:38 [23:38:52]line Смена: 505 ФФД: 1.0 [23:38:52]line ЗНМ: 03000000022 [23:38:52]line РНМ: 0000000000091423 [23:38:52]line Версия ККМ: 001 [23:38:52]line ФМ: 0000000000874692 [23:38:52]line ФД: 92333 [23:38:52]line ФПД: 76280024925429 [23:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233849&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92333&fm=76280024925429&tin=02508201610067®Number=0000000000091423&sum=27000 [23:38:52]line 0 [23:38:52]written 0, free lines is 4095 [23:38:52]OFD Sender: Processing packet 92333 [packets to send 63, broken 62] [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00092333 [23:38:52]OFD Sender: To server: pG, [23:38:52]CommunicateWithHost lk.salyk.kg:30040 [23:38:52]ConnectInit lk.salyk.kg [23:38:52]Connected sock=10 [23:38:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 43 AD A2 01 DD 2C 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 31 38 34 06 04 3B 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 30 2C 30 38 30 20 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 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 34 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 8D 00 00 00 F4 03 04 00 09 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 68 01 00 35 04 06 00 45 60 53 CA 04 F5 9D 8A D4 ED E3 D1 A0 F3 [23:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 2C 47 00 36 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AD 68 01 00 F4 03 04 00 87 75 E4 66 B6 04 01 00 00 83 95 EE AE 6E A3 19 3B [23:38:52]CommunicateWithHost err = 0 [23:38:52]CheckOFDResponse [23:38:52]1017 (14) - 77093643461234 [23:38:52]1041 (16) - 0000000000874692 [23:38:52]1040 (4) - 92333 [23:38:52]1012 (4) - 13.09.2024 17:25 [23:38:52]1206 (1) - 0 [23:38:52]OFD Sender: Remove packet 92333 [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00092333 [23:38:52]NVStorageDeleteData [23:38:52]Write to MH i2c: 01 00 00 5E 00 5E [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 [23:38:52]MH_I2C_Read... [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 5E 00 00 00 00 00 00 5F 0D D1 [23:38:52]RasterBufferAndPrint [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]written 0, free lines is 3445 [23:38:52]MH_Cut [23:38:52]Write to MH i2c: D1 01 00 65 00 01 37 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 01 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 01 00 65 00 00 36 [23:38:52]Write to MH i2c: 01 00 00 66 00 66 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:53]OFD Sender: No OFD packet to send [23:38:53]*** Cut start [23:38:53]*** Purtial cut [23:38:53]*** Stage 1: CUTSNS_PIN = 1 [23:38:55]Read from MH i2c: 01 [23:38:55]MH_I2C_Read... [23:38:55]*** Stop cut motor [23:38:55]*** Cut end [23:38:55]Read from MH i2c: 01 07 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [23:38:55]process_action close_receipt done [23:38:55]requested_data is exist [23:38:55]produce_requested_data [23:38:55]requested_item fm.sn is exist - process it [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 11 00 00 [23:38:55]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 17 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 38 [23:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:38:55]wFMCommunicate OK [23:38:55]requested_item fd.num is exist - process it [23:38:55]SAM_PROTO_GetFieldsCounters [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 13 00 00 [23:38:55]Write to MH i2c: E2 08 00 68 00 80 13 00 00 00 00 00 00 E4 [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 62 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 62 00 68 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AD 68 01 00 0E 04 04 00 F9 01 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 BA [23:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AD 68 01 00 0E 04 04 00 F9 01 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 [23:38:55]wFMCommunicate OK [23:38:55]SAM_PROTO_GetFieldsCounters done [23:38:55]requested_item shift.num is exist - process it [23:38:55]requested_item shift.opened is exist - process it [23:38:55]req_shift_opened [23:38:55]FM_GetShiftState [23:38:55]SAM_PROTO_GetShiftState [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 13 01 00 [23:38:55]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 0E 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 72 [23:38:55]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:38:55]wFMCommunicate OK [23:38:55]SAM_PROTO_GetShiftState done [23:38:55]FM_GetShiftState done [23:38:55]req_shift_opened done [23:38:55]requested_item shift.open_date is exist - process it [23:38:55]req_shift_open_date [23:38:55]req_shift_open_date done [23:38:55]produce_requested_data done [23:38:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92333,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:38:55]process_action_free close_receipt [23:38:55]json_value_free [23:38:55]json_value_free done [23:38:55]process_json_proto returns [23:38:55]Send response to host [23:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92333,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:38:55]free response buf [23:38:55]execute_script done [23:38:55]execute_script returns [23:38:55]free content buf [23:38:55]Sock 6.Close socket [23:38:55]Sock 6.Thread stoped [23:38:57]accept exits with 8 [23:38:57]New connection [23:38:57]New thread 3067247972 created [23:38:57]Thread 3067391332 joined [23:38:57]Waiting for new connection... [23:38:57] Sock 8.Parse request [23:38:57]Sock 8.Check first char [23:38:57]Sock 8.First char is OK [23:38:57]request: POST /json_proto HTTP/1.0 [23:38:57]Method: POST [23:38:57]URL: /json_proto [23:38:57]Method is POST - this is cgi request [23:38:57]url: /json_proto [23:38:57]query_string will be loaded in cgi processing [23:38:57]execute_cgi json_proto POST (null) [23:38:57]execute_cgi path=json_proto method=POST [23:38:57]POST find Content-Length [23:38:57]Host: 172.17.57.71:8080 [23:38:57]Content-Length: 985 [23:38:57]Content-Type: application/json [23:38:57] [23:38:57]POST finish read [23:38:57]Found Content-Length = 985 [23:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127261", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:57]execute_script... [23:38: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 : (3)127261", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:57]POST & json_proto [23:38:57]process_json_proto [23:38:57]json parsed OK: [23:38:57]protocol is kg_v1.0 [23:38:57]action value=close_receipt [23:38:57]process_action close_receipt [23:38:57]cmd_close_receipt [23:38:57]MH_GetDate [23:38:57]Write to MH i2c: F0 00 00 6A 00 59 [23:38:57]Write i2c OK [23:38:57]MH_I2C_Read... [23:38:57]Read from MH i2c: F0 [23:38:57]MH_I2C_Read... [23:38:57]Read from MH i2c: F0 09 00 [23:38:57]MH_I2C_Read... [23:38:57]Read from MH i2c: F0 09 00 6A 00 00 11 CD E4 66 33 3A A4 66 01 [23:38:57]GetLastDocTimeStamp 1726270729 [23:38:57]current date 1726270737 [23:38:57]FM_GetShiftState [23:38:57]SAM_PROTO_GetShiftState [23:38:57]wFMCommunicate request_size=4 [23:38:57]MH_SAM_APDU [23:38:57]CAPDU: 80 13 01 00 [23:38:57]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [23:38:57]Write i2c OK [23:38:57]MH_I2C_Read... [23:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:57]Read from MH i2c: E2 [23:38:57]MH_I2C_Read... [23:38:57]Read from MH i2c: E2 0E 00 [23:38:57]MH_I2C_Read... [23:38:57]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 74 [23:38:57]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:38:57]wFMCommunicate OK [23:38:57]SAM_PROTO_GetShiftState done [23:38:57]FM_GetShiftState done [23:38:57]opened in 1726186930 [23:38:57]opened+sec_in_day 1726273330 [23:38:57]quantity*price = 19000 [23:38:57]sum+1 = 19001 [23:38:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 142 13.09.2024 23:38 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92334 ФПД: 253216590266677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233857&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92334&fm=253216590266677&tin=02508201610067®Number=0000000000091423&sum=36000 0 [23:38:58]StoreToDocumentArchive [23:38:58]shift 505 fd 92334 [23:38:58]save to /storage/0505/doc_00092334 [23:38:58]save last doc name /storage/0505/doc_00092334 to /storage/kkm_last_doc_name [23:38:58]save OK [23:38:58]Clear old archive folders... [23:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=417 [23:38:58]tlvbuf is 01342A60 [23:38:58]SAM_PROTO_ClearQueue [23:38:58]wFMCommunicate request_size=4 [23:38:58]MH_SAM_APDU [23:38:58]CAPDU: 80 09 00 00 [23:38:58]Write to MH i2c: E2 08 00 78 00 80 09 00 00 00 00 00 00 EA [23:38:58]Write i2c OK [23:38:58]MH_I2C_Read... [23:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:58]Read from MH i2c: E2 [23:38:58]MH_I2C_Read... [23:38:58]Read from MH i2c: E2 03 00 [23:38:58]MH_I2C_Read... [23:38:58]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [23:38:58]RAPDU: 90 00 [23:38:58]wFMCommunicate OK [23:38:58]SAM_PROTO_ClearQueue done [23:38:58]KKMCreateOFDPacket [23:38:58]OFDProtocolAddRootSTLVToBuf [23:38:58]FM_MakeSignedData [23:38:58]FM_MakeSignedData [23:38:58]SAM_PROTO_SignData [23:38:58]wFMCommunicate request_size=4 [23:38:58]MH_SAM_APDU [23:38:58]CAPDU: 80 0D 01 02 [23:38:58]Write to MH i2c: E2 08 00 79 00 80 0D 01 02 00 00 00 00 F2 [23:38:58]Write i2c OK [23:38:58]MH_I2C_Read... [23:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:58]Read from MH i2c: E2 [23:38:58]MH_I2C_Read... [23:38:58]Read from MH i2c: E2 03 00 [23:38:58]MH_I2C_Read... [23:38:58]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [23:38:58]RAPDU: 90 00 [23:38:58]wFMCommunicate OK [23:38:58]wFMCommunicate request_size=255 [23:38:58]MH_SAM_APDU [23:38:58]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [23:38:58]Write to MH i2c: E2 02 01 7A 00 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 D5 [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:59]Read from MH i2c: E2 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 03 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [23:38:59]RAPDU: 90 00 [23:38:59]wFMCommunicate OK [23:38:59]wFMCommunicate request_size=176 [23:38:59]MH_SAM_APDU [23:38:59]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 68 01 00 35 04 06 00 E6 4C 94 EA 01 35 [23:38:59]Write to MH i2c: E2 B3 00 7B 00 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 68 01 00 35 04 06 00 E6 4C 94 EA 01 35 00 00 8F [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:59]Read from MH i2c: E2 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 03 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [23:38:59]RAPDU: 90 00 [23:38:59]wFMCommunicate OK [23:38:59]wFMCommunicate request_size=4 [23:38:59]MH_SAM_APDU [23:38:59]CAPDU: 80 0D 03 02 [23:38:59]Write to MH i2c: E2 08 00 7C 00 80 0D 03 02 00 00 00 00 F7 [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:59]Read from MH i2c: E2 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 0B 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 0B 00 7C 00 00 CC 2A 39 47 F6 25 A4 58 90 00 85 [23:38:59]RAPDU: CC 2A 39 47 F6 25 A4 58 90 00 [23:38:59]wFMCommunicate OK [23:38:59]SAM_PROTO_SignData done [23:38:59]FM_MakeSignedData done [23:38:59]CreateOFDProtocolMessage [23:38:59]wFMCommunicate request_size=4 [23:38:59]MH_SAM_APDU [23:38:59]CAPDU: 80 11 00 00 [23:38:59]Write to MH i2c: E2 08 00 7D 00 80 11 00 00 00 00 00 00 F7 [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:59]Read from MH i2c: E2 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 17 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 17 00 7D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [23:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:38:59]wFMCommunicate OK [23:38:59]CreateOFDProtocolMessage done [23:38:59]OFDSenderStorePacket 92334 [23:38:59]StoreOFDPacket docnum=92334 [23:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B5 01 00 00 BF E2 AD 01 17 67 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 68 01 00 35 04 06 00 E6 4C 94 EA 01 35 CC 2A 39 47 F6 25 A4 58 [23:38:59]CheckFolder [23:38:59]dirname=/storage/ofd_packets [23:38:59]CheckFolder done [23:38:59]ProducePacketName [23:38:59]name=ofd_packets/00092334 [23:38:59]NVStorageSaveData ofd_packets/00092334 [23:38:59]File name is /storage/ofd_packets/00092334 [23:38:59]Write 467 bytes [23:38:59]NVStorageSaveData done [23:38:59]OFDSenderStorePacket done [23:38:59]KKMCreateOFDPacket done [23:38:59]NVStorageSaveData kkm_last_timestamp [23:38:59]File name is /storage/kkm_last_timestamp [23:38:59]Write 4 bytes [23:38:59]OFD Sender: Processing packet 92334 [packets to send 63, broken 62] [23:38:59]ProducePacketName [23:38:59]name=ofd_packets/00092334 [23:38:59]OFD Sender: To server: pG, [23:38:59]CommunicateWithHost lk.salyk.kg:30040 [23:38:59]ConnectInit lk.salyk.kg [23:38:59]NVStorageSaveData done [23:38:59]ExternCall_PrintAddStr [23:38:59]wPrintStart [23:38:59]Write to MH i2c: 01 00 00 7E 00 7E [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: 01 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: 01 07 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 FF 0F 93 [23:38:59]RasterBufferAndPrint [23:38:59]line Счет N : (3)127261 [23:38:59]line ИНН: 02508201610067 [23:38:59]line Контрольно-Кассовый Чек [23:38:59]line ПРОДАЖА [23:38:59]line Товар: 4700000481453 [23:38:59]line Напиток энерг Nitro Max 0,45 ж/б [23:38:59]line 2.000 * 95.00 [23:38:59]line = 190.00 [23:38:59]line НДС 12% НСП 1% [23:38:59]line > о реализуемом товаре [23:38:59]line Товар: 4660085515163 [23:38:59]line Шок Батончик Сникерс супер 95/80г [23:38:59]line 2.000 * 85.00 [23:38:59]line = 170.00 [23:38:59]line НДС 12% НСП 1% [23:38:59]line > о реализуемом товаре [23:38:59]line ИТОГО: 360.00 [23:38:59]line НСП 1% : 3.18 [23:38:59]line НДС 12% : 38.23 [23:38:59]line Наличными: 360.00 [23:38:59]line Безнал.: 0.00 [23:38:59]line Место: АЗС № 5 "Партнер Нефть" [23:38:59]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:38:59]line СНО: Общий режим [23:38:59]line Чек 142 13.09.2024 23:38 [23:38:59]line Смена: 505 ФФД: 1.0 [23:38:59]line ЗНМ: 03000000022 [23:38:59]line РНМ: 0000000000091423 [23:38:59]line Версия ККМ: 001 [23:38:59]line ФМ: 0000000000874692 [23:38:59]line ФД: 92334 [23:38:59]line ФПД: 253216590266677 [23:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233857&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92334&fm=253216590266677&tin=02508201610067®Number=0000000000091423&sum=36000 [23:38:59]line 0 [23:38:59]written 0, free lines is 4095 [23:38:59]Connected sock=11 [23:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B5 01 00 00 BF E2 AD 01 17 67 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 68 01 00 35 04 06 00 E6 4C 94 EA 01 35 CC 2A 39 47 F6 25 A4 58 [23:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 51 62 47 00 06 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AE 68 01 00 F4 03 04 00 8F 75 E4 66 B6 04 01 00 00 D6 F8 3A 06 B0 EC 8B D3 [23:39:00]CommunicateWithHost err = 0 [23:39:00]CheckOFDResponse [23:39:00]1017 (14) - 77093643461234 [23:39:00]1041 (16) - 0000000000874692 [23:39:00]1040 (4) - 92334 [23:39:00]1012 (4) - 13.09.2024 17:25 [23:39:00]1206 (1) - 0 [23:39:00]OFD Sender: Remove packet 92334 [23:39:00]ProducePacketName [23:39:00]name=ofd_packets/00092334 [23:39:00]NVStorageDeleteData [23:39:00]Write to MH i2c: 01 00 00 AE 00 AE [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 07 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 C6 0C 87 [23:39:00]RasterBufferAndPrint [23:39:00]line [23:39:00]line [23:39:00]line [23:39:00]line [23:39:00]line [23:39:00]written 0, free lines is 3297 [23:39:00]MH_Cut [23:39:00]Write to MH i2c: D1 01 00 B5 00 01 87 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: D1 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: D1 01 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: D1 01 00 B5 00 00 86 [23:39:00]Write to MH i2c: 01 00 00 B6 00 B6 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]OFD Sender: No OFD packet to send [23:39:01]*** Cut start [23:39:01]*** Purtial cut [23:39:01]*** Stage 1: CUTSNS_PIN = 1 [23:39:03]Read from MH i2c: 01 [23:39:03]MH_I2C_Read... [23:39:03]*** Stop cut motor [23:39:03]*** Cut end [23:39:03]Read from MH i2c: 01 07 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [23:39:03]process_action close_receipt done [23:39:03]requested_data is exist [23:39:03]produce_requested_data [23:39:03]requested_item fm.sn is exist - process it [23:39:03]wFMCommunicate request_size=4 [23:39:03]MH_SAM_APDU [23:39:03]CAPDU: 80 11 00 00 [23:39:03]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [23:39:03]Write i2c OK [23:39:03]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 17 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 88 [23:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:03]wFMCommunicate OK [23:39:03]requested_item fd.num is exist - process it [23:39:03]SAM_PROTO_GetFieldsCounters [23:39:03]wFMCommunicate request_size=4 [23:39:03]MH_SAM_APDU [23:39:03]CAPDU: 80 13 00 00 [23:39:03]Write to MH i2c: E2 08 00 B8 00 80 13 00 00 00 00 00 00 34 [23:39:03]Write i2c OK [23:39:03]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 62 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 62 00 B8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AE 68 01 00 0E 04 04 00 F9 01 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 0E [23:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AE 68 01 00 0E 04 04 00 F9 01 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 [23:39:03]wFMCommunicate OK [23:39:03]SAM_PROTO_GetFieldsCounters done [23:39:03]requested_item shift.num is exist - process it [23:39:03]requested_item shift.opened is exist - process it [23:39:03]req_shift_opened [23:39:03]FM_GetShiftState [23:39:03]SAM_PROTO_GetShiftState [23:39:03]wFMCommunicate request_size=4 [23:39:03]MH_SAM_APDU [23:39:03]CAPDU: 80 13 01 00 [23:39:03]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [23:39:03]Write i2c OK [23:39:03]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 0E 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C2 [23:39:03]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:03]wFMCommunicate OK [23:39:03]SAM_PROTO_GetShiftState done [23:39:03]FM_GetShiftState done [23:39:03]req_shift_opened done [23:39:03]requested_item shift.open_date is exist - process it [23:39:03]req_shift_open_date [23:39:03]req_shift_open_date done [23:39:03]produce_requested_data done [23:39:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92334,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:03]process_action_free close_receipt [23:39:03]json_value_free [23:39:03]json_value_free done [23:39:03]process_json_proto returns [23:39:03]Send response to host [23:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92334,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:03]free response buf [23:39:03]execute_script done [23:39:03]execute_script returns [23:39:03]free content buf [23:39:03]Sock 8.Close socket [23:39:03]Sock 8.Thread stoped [23:39:04]accept exits with 6 [23:39:04]New connection [23:39:04]New thread 3067391332 created [23:39:04]Thread 3067247972 joined [23:39:04]Waiting for new connection... [23:39:04] Sock 6.Parse request [23:39:04]Sock 6.Check first char [23:39:04]Sock 6.First char is OK [23:39:04]request: POST /json_proto HTTP/1.0 [23:39:04]Method: POST [23:39:04]URL: /json_proto [23:39:04]Method is POST - this is cgi request [23:39:04]url: /json_proto [23:39:04]query_string will be loaded in cgi processing [23:39:04]execute_cgi json_proto POST (null) [23:39:04]execute_cgi path=json_proto method=POST [23:39:04]POST find Content-Length [23:39:04]Host: 172.17.57.71:8080 [23:39:04]Content-Length: 799 [23:39:04]Content-Type: application/json [23:39:04] [23:39:04]POST finish read [23:39:04]Found Content-Length = 799 [23:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127262", "tax_sys" : 0, "items" : [ { "code": "4780022460315", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 5\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:04]execute_script... [23:39:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127262", "tax_sys" : 0, "items" : [ { "code": "4780022460315", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 5\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:04]POST & json_proto [23:39:04]process_json_proto [23:39:04]json parsed OK: [23:39:04]protocol is kg_v1.0 [23:39:04]action value=close_receipt [23:39:04]process_action close_receipt [23:39:04]cmd_close_receipt [23:39:04]MH_GetDate [23:39:04]Write to MH i2c: F0 00 00 BA 00 A9 [23:39:04]Write i2c OK [23:39:04]MH_I2C_Read... [23:39:04]Read from MH i2c: F0 [23:39:04]MH_I2C_Read... [23:39:04]Read from MH i2c: F0 09 00 [23:39:04]MH_I2C_Read... [23:39:04]Read from MH i2c: F0 09 00 BA 00 00 18 CD E4 66 33 3A A4 66 58 [23:39:04]GetLastDocTimeStamp 1726270737 [23:39:04]current date 1726270744 [23:39:04]FM_GetShiftState [23:39:04]SAM_PROTO_GetShiftState [23:39:04]wFMCommunicate request_size=4 [23:39:04]MH_SAM_APDU [23:39:04]CAPDU: 80 13 01 00 [23:39:04]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [23:39:04]Write i2c OK [23:39:04]MH_I2C_Read... [23:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:04]Read from MH i2c: E2 [23:39:04]MH_I2C_Read... [23:39:04]Read from MH i2c: E2 0E 00 [23:39:04]MH_I2C_Read... [23:39:04]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C4 [23:39:04]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:04]wFMCommunicate OK [23:39:04]SAM_PROTO_GetShiftState done [23:39:04]FM_GetShiftState done [23:39:04]opened in 1726186930 [23:39:04]opened+sec_in_day 1726273330 [23:39:04]quantity*price = 81500 [23:39:04]sum+1 = 81501 [23:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 815.00 НСП 1% : 7.21 НДС 12% : 86.55 Наличными: 0.00 Безнал.: 815.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 143 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92335 ФПД: 127133283576007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233904&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92335&fm=127133283576007&tin=02508201610067®Number=0000000000091423&sum=81500 0 [23:39:05]StoreToDocumentArchive [23:39:05]shift 505 fd 92335 [23:39:05]save to /storage/0505/doc_00092335 [23:39:05]save last doc name /storage/0505/doc_00092335 to /storage/kkm_last_doc_name [23:39:05]save OK [23:39:05]Clear old archive folders... [23:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=277 [23:39:05]tlvbuf is 0134B570 [23:39:05]SAM_PROTO_ClearQueue [23:39:05]wFMCommunicate request_size=4 [23:39:05]MH_SAM_APDU [23:39:05]CAPDU: 80 09 00 00 [23:39:05]Write to MH i2c: E2 08 00 C8 00 80 09 00 00 00 00 00 00 3A [23:39:05]Write i2c OK [23:39:05]MH_I2C_Read... [23:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:05]OFD Sender: No OFD packet to send [23:39:05]Read from MH i2c: E2 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 03 00 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [23:39:05]RAPDU: 90 00 [23:39:05]wFMCommunicate OK [23:39:05]SAM_PROTO_ClearQueue done [23:39:05]KKMCreateOFDPacket [23:39:05]OFDProtocolAddRootSTLVToBuf [23:39:05]FM_MakeSignedData [23:39:05]FM_MakeSignedData [23:39:05]SAM_PROTO_SignData [23:39:05]wFMCommunicate request_size=4 [23:39:05]MH_SAM_APDU [23:39:05]CAPDU: 80 0D 01 02 [23:39:05]Write to MH i2c: E2 08 00 C9 00 80 0D 01 02 00 00 00 00 42 [23:39:05]Write i2c OK [23:39:05]MH_I2C_Read... [23:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:05]Read from MH i2c: E2 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 03 00 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [23:39:05]RAPDU: 90 00 [23:39:05]wFMCommunicate OK [23:39:05]wFMCommunicate request_size=255 [23:39:05]MH_SAM_APDU [23:39:05]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 33 31 35 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 3E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 18 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [23:39:06]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 33 31 35 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 3E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 18 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 5A [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]wFMCommunicate request_size=36 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 68 01 00 35 04 06 00 73 A0 86 34 E8 C7 [23:39:06]Write to MH i2c: E2 27 00 CB 00 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 68 01 00 35 04 06 00 73 A0 86 34 E8 C7 00 00 02 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 03 02 [23:39:06]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 0B 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 0B 00 CC 00 00 21 7D BE 6E 0A FC EF 07 90 00 0E [23:39:06]RAPDU: 21 7D BE 6E 0A FC EF 07 90 00 [23:39:06]wFMCommunicate OK [23:39:06]SAM_PROTO_SignData done [23:39:06]FM_MakeSignedData done [23:39:06]CreateOFDProtocolMessage [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 11 00 00 [23:39:06]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 17 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9E [23:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:06]wFMCommunicate OK [23:39:06]CreateOFDProtocolMessage done [23:39:06]OFDSenderStorePacket 92335 [23:39:06]StoreOFDPacket docnum=92335 [23:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 BD A7 21 01 B1 AE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 33 31 35 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 3E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 18 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 68 01 00 35 04 06 00 73 A0 86 34 E8 C7 21 7D BE 6E 0A FC EF 07 [23:39:06]CheckFolder [23:39:06]dirname=/storage/ofd_packets [23:39:06]CheckFolder done [23:39:06]ProducePacketName [23:39:06]name=ofd_packets/00092335 [23:39:06]NVStorageSaveData ofd_packets/00092335 [23:39:06]File name is /storage/ofd_packets/00092335 [23:39:06]Write 327 bytes [23:39:06]NVStorageSaveData done [23:39:06]OFDSenderStorePacket done [23:39:06]KKMCreateOFDPacket done [23:39:06]NVStorageSaveData kkm_last_timestamp [23:39:06]File name is /storage/kkm_last_timestamp [23:39:06]Write 4 bytes [23:39:06]NVStorageSaveData done [23:39:06]ExternCall_PrintAddStr [23:39:06]wPrintStart [23:39:06]Write to MH i2c: 01 00 00 CE 00 CE [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 07 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [23:39:06]RasterBufferAndPrint [23:39:06]line Счет N : (3)127262 [23:39:06]line ИНН: 02508201610067 [23:39:06]line Контрольно-Кассовый Чек [23:39:06]line ПРОДАЖА [23:39:06]line Товар: 4780022460315 [23:39:06]line Антифриз Yumiko green 5кг [23:39:06]line 1.000 * 815.00 [23:39:06]line = 815.00 [23:39:06]line НДС 12% НСП 1% [23:39:06]line > о реализуемом товаре [23:39:06]line ИТОГО: 815.00 [23:39:06]line НСП 1% : 7.21 [23:39:06]line НДС 12% : 86.55 [23:39:06]line Наличными: 0.00 [23:39:06]line Безнал.: 815.00 [23:39:06]line Место: АЗС № 5 "Партнер Нефть" [23:39:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:06]line СНО: Общий режим [23:39:06]line Чек 143 13.09.2024 23:39 [23:39:06]line Смена: 505 ФФД: 1.0 [23:39:06]line ЗНМ: 03000000022 [23:39:06]line РНМ: 0000000000091423 [23:39:06]line Версия ККМ: 001 [23:39:06]line Платежная система: О! деньги [23:39:06]line ФМ: 0000000000874692 [23:39:06]line ФД: 92335 [23:39:06]line ФПД: 127133283576007 [23:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233904&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92335&fm=127133283576007&tin=02508201610067®Number=0000000000091423&sum=81500 [23:39:06]OFD Sender: Processing packet 92335 [packets to send 63, broken 62] [23:39:06]ProducePacketName [23:39:06]name=ofd_packets/00092335 [23:39:06]OFD Sender: To server: pG, [23:39:06]CommunicateWithHost lk.salyk.kg:30040 [23:39:06]ConnectInit lk.salyk.kg [23:39:06]line 0 [23:39:06]written 0, free lines is 4095 [23:39:06]Connected sock=10 [23:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 BD A7 21 01 B1 AE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 33 31 35 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 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 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 3E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 18 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 68 01 00 35 04 06 00 73 A0 86 34 E8 C7 21 7D BE 6E 0A FC EF 07 [23:39:07]Write to MH i2c: 01 00 00 F8 00 F8 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 21 0D 2D [23:39:07]RasterBufferAndPrint [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D9 BC 47 00 3A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 AF 68 01 00 F4 03 04 00 96 75 E4 66 B6 04 01 00 00 EE 70 46 D4 01 A1 8E EB [23:39:07]CommunicateWithHost err = 0 [23:39:07]CheckOFDResponse [23:39:07]1017 (14) - 77093643461234 [23:39:07]1041 (16) - 0000000000874692 [23:39:07]1040 (4) - 92335 [23:39:07]1012 (4) - 13.09.2024 17:25 [23:39:07]1206 (1) - 0 [23:39:07]OFD Sender: Remove packet 92335 [23:39:07]ProducePacketName [23:39:07]name=ofd_packets/00092335 [23:39:07]NVStorageDeleteData [23:39:07]written 0, free lines is 3409 [23:39:07]MH_Cut [23:39:07]Write to MH i2c: D1 01 00 FF 00 01 D1 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 FF 00 00 D0 [23:39:07]Write to MH i2c: 01 00 00 00 01 01 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]*** Cut start [23:39:07]*** Purtial cut [23:39:07]*** Stage 1: CUTSNS_PIN = 1 [23:39:07]OFD Sender: No OFD packet to send [23:39:09]Read from MH i2c: 01 [23:39:09]MH_I2C_Read... [23:39:09]*** Stop cut motor [23:39:09]*** Cut end [23:39:09]Read from MH i2c: 01 07 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [23:39:09]process_action close_receipt done [23:39:09]requested_data is exist [23:39:09]produce_requested_data [23:39:09]requested_item fm.sn is exist - process it [23:39:09]wFMCommunicate request_size=4 [23:39:09]MH_SAM_APDU [23:39:09]CAPDU: 80 11 00 00 [23:39:09]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:10]Read from MH i2c: E2 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 17 00 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D3 [23:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:10]wFMCommunicate OK [23:39:10]requested_item fd.num is exist - process it [23:39:10]SAM_PROTO_GetFieldsCounters [23:39:10]wFMCommunicate request_size=4 [23:39:10]MH_SAM_APDU [23:39:10]CAPDU: 80 13 00 00 [23:39:10]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [23:39:10]Write i2c OK [23:39:10]MH_I2C_Read... [23:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:10]Read from MH i2c: E2 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 62 00 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 62 00 02 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AF 68 01 00 0E 04 04 00 F9 01 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 5D [23:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 AF 68 01 00 0E 04 04 00 F9 01 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 [23:39:10]wFMCommunicate OK [23:39:10]SAM_PROTO_GetFieldsCounters done [23:39:10]requested_item shift.num is exist - process it [23:39:10]requested_item shift.opened is exist - process it [23:39:10]req_shift_opened [23:39:10]FM_GetShiftState [23:39:10]SAM_PROTO_GetShiftState [23:39:10]wFMCommunicate request_size=4 [23:39:10]MH_SAM_APDU [23:39:10]CAPDU: 80 13 01 00 [23:39:10]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [23:39:10]Write i2c OK [23:39:10]MH_I2C_Read... [23:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:10]Read from MH i2c: E2 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 0E 00 [23:39:10]MH_I2C_Read... [23:39:10]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0D [23:39:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:10]wFMCommunicate OK [23:39:10]SAM_PROTO_GetShiftState done [23:39:10]FM_GetShiftState done [23:39:10]req_shift_opened done [23:39:10]requested_item shift.open_date is exist - process it [23:39:10]req_shift_open_date [23:39:10]req_shift_open_date done [23:39:10]produce_requested_data done [23:39:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92335,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:10]process_action_free close_receipt [23:39:10]json_value_free [23:39:10]json_value_free done [23:39:10]process_json_proto returns [23:39:10]Send response to host [23:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92335,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:10]free response buf [23:39:10]execute_script done [23:39:10]execute_script returns [23:39:10]free content buf [23:39:10]Sock 6.Close socket [23:39:10]Sock 6.Thread stoped [23:39:11]accept exits with 8 [23:39:11]New connection [23:39:11]New thread 3067247972 created [23:39:11]Thread 3067391332 joined [23:39:11]Waiting for new connection... [23:39:11] Sock 8.Parse request [23:39:11]Sock 8.Check first char [23:39:11]Sock 8.First char is OK [23:39:11]request: POST /json_proto HTTP/1.0 [23:39:11]Method: POST [23:39:11]URL: /json_proto [23:39:11]Method is POST - this is cgi request [23:39:11]url: /json_proto [23:39:11]query_string will be loaded in cgi processing [23:39:11]execute_cgi json_proto POST (null) [23:39:11]execute_cgi path=json_proto method=POST [23:39:11]POST find Content-Length [23:39:11]Host: 172.17.57.71:8080 [23:39:11]Content-Length: 809 [23:39:11]Content-Type: application/json [23:39:11] [23:39:11]POST finish read [23:39:11]Found Content-Length = 809 [23:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127263", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:11]execute_script... [23:39: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 : (3)127263", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:11]POST & json_proto [23:39:11]process_json_proto [23:39:11]json parsed OK: [23:39:11]protocol is kg_v1.0 [23:39:11]action value=close_receipt [23:39:11]process_action close_receipt [23:39:11]cmd_close_receipt [23:39:11]MH_GetDate [23:39:11]Write to MH i2c: F0 00 00 04 01 F4 [23:39:11]Write i2c OK [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: F0 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: F0 09 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: F0 09 00 04 01 00 1F CD E4 66 33 3A A4 66 AA [23:39:11]GetLastDocTimeStamp 1726270744 [23:39:11]current date 1726270751 [23:39:11]FM_GetShiftState [23:39:11]SAM_PROTO_GetShiftState [23:39:11]wFMCommunicate request_size=4 [23:39:11]MH_SAM_APDU [23:39:11]CAPDU: 80 13 01 00 [23:39:11]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [23:39:11]Write i2c OK [23:39:11]MH_I2C_Read... [23:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:11]Read from MH i2c: E2 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 0E 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 0F [23:39:11]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:11]wFMCommunicate OK [23:39:11]SAM_PROTO_GetShiftState done [23:39:11]FM_GetShiftState done [23:39:11]opened in 1726186930 [23:39:11]opened+sec_in_day 1726273330 [23:39:11]quantity*price = 4000 [23:39:11]sum+1 = 4001 [23:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 144 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92336 ФПД: 131639265299262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233911&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92336&fm=131639265299262&tin=02508201610067®Number=0000000000091423&sum=4000 0 [23:39:12]StoreToDocumentArchive [23:39:12]shift 505 fd 92336 [23:39:12]save to /storage/0505/doc_00092336 [23:39:12]save last doc name /storage/0505/doc_00092336 to /storage/kkm_last_doc_name [23:39:12]save OK [23:39:12]Clear old archive folders... [23:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=271 [23:39:12]tlvbuf is 01368E70 [23:39:12]SAM_PROTO_ClearQueue [23:39:12]wFMCommunicate request_size=4 [23:39:12]MH_SAM_APDU [23:39:12]CAPDU: 80 09 00 00 [23:39:12]Write to MH i2c: E2 08 00 12 01 80 09 00 00 00 00 00 00 85 [23:39:12]Write i2c OK [23:39:12]MH_I2C_Read... [23:39:12]OFD Sender: No OFD packet to send [23:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:12]Read from MH i2c: E2 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 03 00 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [23:39:12]RAPDU: 90 00 [23:39:12]wFMCommunicate OK [23:39:12]SAM_PROTO_ClearQueue done [23:39:12]KKMCreateOFDPacket [23:39:12]OFDProtocolAddRootSTLVToBuf [23:39:12]FM_MakeSignedData [23:39:12]FM_MakeSignedData [23:39:12]SAM_PROTO_SignData [23:39:12]wFMCommunicate request_size=4 [23:39:13]MH_SAM_APDU [23:39:13]CAPDU: 80 0D 01 02 [23:39:13]Write to MH i2c: E2 08 00 13 01 80 0D 01 02 00 00 00 00 8D [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:13]Read from MH i2c: E2 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 03 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [23:39:13]RAPDU: 90 00 [23:39:13]wFMCommunicate OK [23:39:13]wFMCommunicate request_size=255 [23:39:13]MH_SAM_APDU [23:39:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [23:39:13]Write to MH i2c: E2 02 01 14 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 2C [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:13]Read from MH i2c: E2 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 03 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [23:39:13]RAPDU: 90 00 [23:39:13]wFMCommunicate OK [23:39:13]wFMCommunicate request_size=30 [23:39:13]MH_SAM_APDU [23:39:13]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 B0 68 01 00 35 04 06 00 77 B9 A7 A5 8B 3E [23:39:13]Write to MH i2c: E2 21 00 15 01 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 B0 68 01 00 35 04 06 00 77 B9 A7 A5 8B 3E 00 00 EB [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 [23:39:13]MH_I2C_Read... [23:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:13]Read from MH i2c: E2 03 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [23:39:13]RAPDU: 90 00 [23:39:13]wFMCommunicate OK [23:39:13]wFMCommunicate request_size=4 [23:39:13]MH_SAM_APDU [23:39:13]CAPDU: 80 0D 03 02 [23:39:13]Write to MH i2c: E2 08 00 16 01 80 0D 03 02 00 00 00 00 92 [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:13]Read from MH i2c: E2 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 0B 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 0B 00 16 01 00 78 4B E7 73 C3 63 95 11 90 00 7C [23:39:13]RAPDU: 78 4B E7 73 C3 63 95 11 90 00 [23:39:13]wFMCommunicate OK [23:39:13]SAM_PROTO_SignData done [23:39:13]FM_MakeSignedData done [23:39:13]CreateOFDProtocolMessage [23:39:13]wFMCommunicate request_size=4 [23:39:13]MH_SAM_APDU [23:39:13]CAPDU: 80 11 00 00 [23:39:13]Write to MH i2c: E2 08 00 17 01 80 11 00 00 00 00 00 00 92 [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:13]Read from MH i2c: E2 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 17 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: E2 17 00 17 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [23:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:13]wFMCommunicate OK [23:39:13]CreateOFDProtocolMessage done [23:39:13]OFDSenderStorePacket 92336 [23:39:13]StoreOFDPacket docnum=92336 [23:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 B4 68 1B 01 13 E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 68 01 00 35 04 06 00 77 B9 A7 A5 8B 3E 78 4B E7 73 C3 63 95 11 [23:39:13]CheckFolder [23:39:13]dirname=/storage/ofd_packets [23:39:13]CheckFolder done [23:39:13]ProducePacketName [23:39:13]name=ofd_packets/00092336 [23:39:13]NVStorageSaveData ofd_packets/00092336 [23:39:13]File name is /storage/ofd_packets/00092336 [23:39:13]Write 321 bytes [23:39:13]NVStorageSaveData done [23:39:13]OFDSenderStorePacket done [23:39:13]KKMCreateOFDPacket done [23:39:13]NVStorageSaveData kkm_last_timestamp [23:39:13]File name is /storage/kkm_last_timestamp [23:39:13]Write 4 bytes [23:39:13]NVStorageSaveData done [23:39:13]ExternCall_PrintAddStr [23:39:13]wPrintStart [23:39:13]Write to MH i2c: 01 00 00 18 01 19 [23:39:13]Write i2c OK [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: 01 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: 01 07 00 [23:39:13]MH_I2C_Read... [23:39:13]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 FF 0F 2E [23:39:13]RasterBufferAndPrint [23:39:13]line Счет N : (3)127263 [23:39:13]line ИНН: 02508201610067 [23:39:13]line Контрольно-Кассовый Чек [23:39:13]line ПРОДАЖА [23:39:13]line Товар: 4700000160211 [23:39:13]line Вода Легенда 0,5л [23:39:13]line 1.000 * 40.00 [23:39:13]line = 40.00 [23:39:13]line НДС 12% НСП 1% [23:39:13]line > о реализуемом товаре [23:39:13]line ИТОГО: 40.00 [23:39:13]line НСП 1% : 0.35 [23:39:13]line НДС 12% : 4.25 [23:39:13]line Наличными: 0.00 [23:39:13]line Безнал.: 40.00 [23:39:13]line Место: АЗС № 5 "Партнер Нефть" [23:39:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:13]line СНО: Общий режим [23:39:13]line Чек 144 13.09.2024 23:39 [23:39:13]line Смена: 505 ФФД: 1.0 [23:39:13]line ЗНМ: 03000000022 [23:39:13]line РНМ: 0000000000091423 [23:39:13]line Версия ККМ: 001 [23:39:14]line Платежная система: Бакай Банк [23:39:14]line ФМ: 0000000000874692 [23:39:14]line ФД: 92336 [23:39:14]line ФПД: 131639265299262 [23:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233911&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92336&fm=131639265299262&tin=02508201610067®Number=0000000000091423&sum=4000 [23:39:14]OFD Sender: Processing packet 92336 [packets to send 63, broken 62] [23:39:14]ProducePacketName [23:39:14]name=ofd_packets/00092336 [23:39:14]OFD Sender: To server: pG, [23:39:14]CommunicateWithHost lk.salyk.kg:30040 [23:39:14]ConnectInit lk.salyk.kg [23:39:14]line 0 [23:39:14]written 0, free lines is 4095 [23:39:14]Connected sock=10 [23:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 B4 68 1B 01 13 E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B0 68 01 00 35 04 06 00 77 B9 A7 A5 8B 3E 78 4B E7 73 C3 63 95 11 [23:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C8 EC 47 00 5C 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 34 36 39 32 10 04 04 00 B0 68 01 00 F4 03 04 00 9D 75 E4 66 B6 04 01 00 00 1B 9A 6A 53 A0 87 6D 6C [23:39:14]CommunicateWithHost err = 0 [23:39:14]CheckOFDResponse [23:39:14]1017 (14) - 77093643461234 [23:39:14]1041 (16) - 0000000000874692 [23:39:14]1040 (4) - 92336 [23:39:14]1012 (4) - 13.09.2024 17:25 [23:39:14]1206 (1) - 0 [23:39:14]OFD Sender: Remove packet 92336 [23:39:14]ProducePacketName [23:39:14]name=ofd_packets/00092336 [23:39:14]NVStorageDeleteData [23:39:14]Write to MH i2c: 01 00 00 42 01 43 [23:39:14]Write i2c OK [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: 01 [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: 01 07 00 [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 F9 0D 50 [23:39:14]RasterBufferAndPrint [23:39:14]line [23:39:14]line [23:39:14]line [23:39:14]line [23:39:14]line [23:39:14]written 0, free lines is 3611 [23:39:14]MH_Cut [23:39:14]Write to MH i2c: D1 01 00 49 01 01 1C [23:39:14]Write i2c OK [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: D1 [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: D1 01 00 [23:39:14]MH_I2C_Read... [23:39:14]Read from MH i2c: D1 01 00 49 01 00 1B [23:39:14]Write to MH i2c: 01 00 00 4A 01 4B [23:39:14]Write i2c OK [23:39:14]MH_I2C_Read... [23:39:15]OFD Sender: No OFD packet to send [23:39:15]*** Cut start [23:39:15]*** Purtial cut [23:39:15]*** Stage 1: CUTSNS_PIN = 1 [23:39:17]Read from MH i2c: 01 [23:39:17]MH_I2C_Read... [23:39:17]*** Stop cut motor [23:39:17]*** Cut end [23:39:17]Read from MH i2c: 01 07 00 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [23:39:17]process_action close_receipt done [23:39:17]requested_data is exist [23:39:17]produce_requested_data [23:39:17]requested_item fm.sn is exist - process it [23:39:17]wFMCommunicate request_size=4 [23:39:17]MH_SAM_APDU [23:39:17]CAPDU: 80 11 00 00 [23:39:17]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [23:39:17]Write i2c OK [23:39:17]MH_I2C_Read... [23:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:17]Read from MH i2c: E2 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 17 00 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [23:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:17]wFMCommunicate OK [23:39:17]requested_item fd.num is exist - process it [23:39:17]SAM_PROTO_GetFieldsCounters [23:39:17]wFMCommunicate request_size=4 [23:39:17]MH_SAM_APDU [23:39:17]CAPDU: 80 13 00 00 [23:39:17]Write to MH i2c: E2 08 00 4C 01 80 13 00 00 00 00 00 00 C9 [23:39:17]Write i2c OK [23:39:17]MH_I2C_Read... [23:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:17]Read from MH i2c: E2 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 62 00 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 62 00 4C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B0 68 01 00 0E 04 04 00 F9 01 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 AB [23: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B0 68 01 00 0E 04 04 00 F9 01 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 [23:39:17]wFMCommunicate OK [23:39:17]SAM_PROTO_GetFieldsCounters done [23:39:17]requested_item shift.num is exist - process it [23:39:17]requested_item shift.opened is exist - process it [23:39:17]req_shift_opened [23:39:17]FM_GetShiftState [23:39:17]SAM_PROTO_GetShiftState [23:39:17]wFMCommunicate request_size=4 [23:39:17]MH_SAM_APDU [23:39:17]CAPDU: 80 13 01 00 [23:39:17]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [23:39:17]Write i2c OK [23:39:17]MH_I2C_Read... [23:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:17]Read from MH i2c: E2 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 0E 00 [23:39:17]MH_I2C_Read... [23:39:17]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 57 [23:39:17]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:17]wFMCommunicate OK [23:39:17]SAM_PROTO_GetShiftState done [23:39:17]FM_GetShiftState done [23:39:17]req_shift_opened done [23:39:17]requested_item shift.open_date is exist - process it [23:39:17]req_shift_open_date [23:39:17]req_shift_open_date done [23:39:17]produce_requested_data done [23:39:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92336,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:17]process_action_free close_receipt [23:39:17]json_value_free [23:39:17]json_value_free done [23:39:17]process_json_proto returns [23:39:17]Send response to host [23:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92336,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:17]free response buf [23:39:17]execute_script done [23:39:17]execute_script returns [23:39:17]free content buf [23:39:17]Sock 8.Close socket [23:39:17]Sock 8.Thread stoped [23:39:19]accept exits with 6 [23:39:19]New connection [23:39:19]New thread 3067391332 created [23:39:19]Thread 3067247972 joined [23:39:19]Waiting for new connection... [23:39:19] Sock 6.Parse request [23:39:19]Sock 6.Check first char [23:39:19]Sock 6.First char is OK [23:39:19]request: POST /json_proto HTTP/1.0 [23:39:19]Method: POST [23:39:19]URL: /json_proto [23:39:19]Method is POST - this is cgi request [23:39:19]url: /json_proto [23:39:19]query_string will be loaded in cgi processing [23:39:19]execute_cgi json_proto POST (null) [23:39:19]execute_cgi path=json_proto method=POST [23:39:19]POST find Content-Length [23:39:19]Host: 172.17.57.71:8080 [23:39:19]Content-Length: 702 [23:39:19]Content-Type: application/json [23:39:19] [23:39:19]POST finish read [23:39:19]Found Content-Length = 702 [23:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127264", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:19]execute_script... [23: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 : (3)127264", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:19]POST & json_proto [23:39:19]process_json_proto [23:39:19]json parsed OK: [23:39:19]protocol is kg_v1.0 [23:39:19]action value=close_receipt [23:39:19]process_action close_receipt [23:39:19]cmd_close_receipt [23:39:19]MH_GetDate [23:39:19]Write to MH i2c: F0 00 00 4E 01 3E [23:39:19]Write i2c OK [23:39:19]MH_I2C_Read... [23:39:19]Read from MH i2c: F0 [23:39:19]MH_I2C_Read... [23:39:19]Read from MH i2c: F0 09 00 [23:39:19]MH_I2C_Read... [23:39:19]Read from MH i2c: F0 09 00 4E 01 00 27 CD E4 66 33 3A A4 66 FC [23:39:19]GetLastDocTimeStamp 1726270751 [23:39:19]current date 1726270759 [23:39:19]FM_GetShiftState [23:39:19]SAM_PROTO_GetShiftState [23:39:19]wFMCommunicate request_size=4 [23:39:19]MH_SAM_APDU [23:39:19]CAPDU: 80 13 01 00 [23:39:19]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [23:39:19]Write i2c OK [23:39:19]MH_I2C_Read... [23:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:19]Read from MH i2c: E2 [23:39:19]MH_I2C_Read... [23:39:19]Read from MH i2c: E2 0E 00 [23:39:19]MH_I2C_Read... [23:39:19]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 59 [23:39:19]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:19]wFMCommunicate OK [23:39:19]SAM_PROTO_GetShiftState done [23:39:19]FM_GetShiftState done [23:39:19]opened in 1726186930 [23:39:19]opened+sec_in_day 1726273330 [23:39:19]quantity*price = 12500 [23:39:19]sum+1 = 12501 [23:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 145 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92337 ФПД: 204630038731420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233919&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92337&fm=204630038731420&tin=02508201610067®Number=0000000000091423&sum=12500 0 [23:39:20]StoreToDocumentArchive [23:39:20]shift 505 fd 92337 [23:39:20]save to /storage/0505/doc_00092337 [23:39:20]save last doc name /storage/0505/doc_00092337 to /storage/kkm_last_doc_name [23:39:20]save OK [23:39:20]Clear old archive folders... [23:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=298 [23:39:20]tlvbuf is 01388460 [23:39:20]SAM_PROTO_ClearQueue [23:39:20]wFMCommunicate request_size=4 [23:39:20]MH_SAM_APDU [23:39:20]CAPDU: 80 09 00 00 [23:39:20]Write to MH i2c: E2 08 00 5C 01 80 09 00 00 00 00 00 00 CF [23:39:20]Write i2c OK [23:39:20]MH_I2C_Read... [23:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:20]Read from MH i2c: E2 [23:39:20]MH_I2C_Read... [23:39:20]Read from MH i2c: E2 03 00 [23:39:20]MH_I2C_Read... [23:39:20]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [23:39:20]RAPDU: 90 00 [23:39:20]wFMCommunicate OK [23:39:20]SAM_PROTO_ClearQueue done [23:39:20]KKMCreateOFDPacket [23:39:20]OFDProtocolAddRootSTLVToBuf [23:39:20]FM_MakeSignedData [23:39:20]FM_MakeSignedData [23:39:20]SAM_PROTO_SignData [23:39:20]wFMCommunicate request_size=4 [23:39:20]MH_SAM_APDU [23:39:20]CAPDU: 80 0D 01 02 [23:39:20]Write to MH i2c: E2 08 00 5D 01 80 0D 01 02 00 00 00 00 D7 [23:39:20]Write i2c OK [23:39:20]MH_I2C_Read... [23:39:20]Read from MH i2c: E2 [23:39:20]MH_I2C_Read... [23:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:20]Read from MH i2c: E2 03 00 [23:39:20]MH_I2C_Read... [23:39:20]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [23:39:20]RAPDU: 90 00 [23:39:20]wFMCommunicate OK [23:39:20]wFMCommunicate request_size=255 [23:39:20]MH_SAM_APDU [23:39:20]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 27 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [23:39:20]Write to MH i2c: E2 02 01 5E 01 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 27 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 04 [23:39:21]Write i2c OK [23:39:21]MH_I2C_Read... [23:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:21]Read from MH i2c: E2 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 03 00 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [23:39:21]RAPDU: 90 00 [23:39:21]wFMCommunicate OK [23:39:21]wFMCommunicate request_size=57 [23:39:21]MH_SAM_APDU [23:39:21]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 68 01 00 35 04 06 00 BA 1C 24 C4 DA 9C [23:39:21]Write to MH i2c: E2 3C 00 5F 01 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 68 01 00 35 04 06 00 BA 1C 24 C4 DA 9C 00 00 E3 [23:39:21]Write i2c OK [23:39:21]MH_I2C_Read... [23:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:21]Read from MH i2c: E2 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 03 00 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [23:39:21]RAPDU: 90 00 [23:39:21]wFMCommunicate OK [23:39:21]wFMCommunicate request_size=4 [23:39:21]MH_SAM_APDU [23:39:21]CAPDU: 80 0D 03 02 [23:39:21]Write to MH i2c: E2 08 00 60 01 80 0D 03 02 00 00 00 00 DC [23:39:21]Write i2c OK [23:39:21]MH_I2C_Read... [23:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:21]Read from MH i2c: E2 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 0B 00 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 0B 00 60 01 00 7A E8 7D 40 D6 5B DE D7 90 00 E2 [23:39:21]RAPDU: 7A E8 7D 40 D6 5B DE D7 90 00 [23:39:21]wFMCommunicate OK [23:39:21]SAM_PROTO_SignData done [23:39:21]FM_MakeSignedData done [23:39:21]CreateOFDProtocolMessage [23:39:21]wFMCommunicate request_size=4 [23:39:21]MH_SAM_APDU [23:39:21]CAPDU: 80 11 00 00 [23:39:21]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [23:39:21]Write i2c OK [23:39:21]MH_I2C_Read... [23:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:21]Read from MH i2c: E2 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 17 00 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [23:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:21]wFMCommunicate OK [23:39:21]CreateOFDProtocolMessage done [23:39:21]OFDSenderStorePacket 92337 [23:39:21]StoreOFDPacket docnum=92337 [23:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3E 01 00 00 73 11 36 01 EF AF 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 27 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 68 01 00 35 04 06 00 BA 1C 24 C4 DA 9C 7A E8 7D 40 D6 5B DE D7 [23:39:21]CheckFolder [23:39:21]dirname=/storage/ofd_packets [23:39:21]CheckFolder done [23:39:21]ProducePacketName [23:39:21]name=ofd_packets/00092337 [23:39:21]NVStorageSaveData ofd_packets/00092337 [23:39:21]File name is /storage/ofd_packets/00092337 [23:39:21]Write 348 bytes [23:39:21]NVStorageSaveData done [23:39:21]OFDSenderStorePacket done [23:39:21]KKMCreateOFDPacket done [23:39:21]NVStorageSaveData kkm_last_timestamp [23:39:21]File name is /storage/kkm_last_timestamp [23:39:21]Write 4 bytes [23:39:21]NVStorageSaveData done [23:39:21]ExternCall_PrintAddStr [23:39:21]wPrintStart [23:39:21]Write to MH i2c: 01 00 00 62 01 63 [23:39:21]Write i2c OK [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: 01 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: 01 07 00 [23:39:21]MH_I2C_Read... [23:39:21]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [23:39:21]RasterBufferAndPrint [23:39:21]line Счет N : (3)127264 [23:39:21]line ИНН: 02508201610067 [23:39:21]line Контрольно-Кассовый Чек [23:39:21]line ПРОДАЖА [23:39:21]line Товар: 4870202522701 [23:39:21]line Напиток Maxi Чай черный Малина 1,2 [23:39:21]line 1.000 * 125.00 [23:39:21]line = 125.00 [23:39:21]line НДС 12% НСП 1% [23:39:21]line > о реализуемом товаре [23:39:21]line ИТОГО: 125.00 [23:39:21]line НСП 1% : 1.11 [23:39:21]line НДС 12% : 13.27 [23:39:21]line Наличными: 125.00 [23:39:21]line Безнал.: 0.00 [23:39:21]line Место: АЗС № 5 "Партнер Нефть" [23:39:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:21]line СНО: Общий режим [23:39:21]line Чек 145 13.09.2024 23:39 [23:39:21]line Смена: 505 ФФД: 1.0 [23:39:21]line ЗНМ: 03000000022 [23:39:21]line РНМ: 0000000000091423 [23:39:21]line Версия ККМ: 001 [23:39:21]line ФМ: 0000000000874692 [23:39:21]line ФД: 92337 [23:39:21]line ФПД: 204630038731420 [23:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233919&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92337&fm=204630038731420&tin=02508201610067®Number=0000000000091423&sum=12500 [23:39:21]line 0 [23:39:21]OFD Sender: Processing packet 92337 [packets to send 63, broken 62] [23:39:21]ProducePacketName [23:39:21]name=ofd_packets/00092337 [23:39:21]OFD Sender: To server: pG, [23:39:21]CommunicateWithHost lk.salyk.kg:30040 [23:39:21]ConnectInit lk.salyk.kg [23:39:21]written 0, free lines is 4095 [23:39:21]Connected sock=10 [23: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 34 36 39 32 3E 01 00 00 73 11 36 01 EF AF 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 27 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 68 01 00 35 04 06 00 BA 1C 24 C4 DA 9C 7A E8 7D 40 D6 5B DE D7 [23:39:22]Write to MH i2c: 01 00 00 8B 01 8C [23:39:22]Write i2c OK [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: 01 [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: 01 07 00 [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 2E 0D CE [23:39:22]RasterBufferAndPrint [23:39:22]line [23:39:22]line [23:39:22]line [23:39:22]line [23:39:22]line [23:39:22]written 0, free lines is 3416 [23:39:22]MH_Cut [23:39:22]Write to MH i2c: D1 01 00 92 01 01 65 [23:39:22]Write i2c OK [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: D1 [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: D1 01 00 [23:39:22]MH_I2C_Read... [23:39:22]Read from MH i2c: D1 01 00 92 01 00 64 [23:39:22]Write to MH i2c: 01 00 00 93 01 94 [23:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EB 0A 47 00 41 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B1 68 01 00 F4 03 04 00 A5 75 E4 66 B6 04 01 00 00 5D 6F 2F A8 B4 AF 2C CC [23:39:22]CommunicateWithHost err = 0 [23:39:22]CheckOFDResponse [23:39:22]1017 (14) - 77093643461234 [23:39:22]1041 (16) - 0000000000874692 [23:39:22]1040 (4) - 92337 [23:39:22]1012 (4) - 13.09.2024 17:25 [23:39:22]1206 (1) - 0 [23:39:22]OFD Sender: Remove packet 92337 [23:39:22]ProducePacketName [23:39:22]name=ofd_packets/00092337 [23:39:22]NVStorageDeleteData [23:39:22]Write i2c OK [23:39:22]MH_I2C_Read... [23:39:22]*** Cut start [23:39:22]*** Purtial cut [23:39:22]*** Stage 1: CUTSNS_PIN = 1 [23:39:22]OFD Sender: No OFD packet to send [23:39:24]Read from MH i2c: 01 [23:39:24]MH_I2C_Read... [23:39:24]*** Stop cut motor [23:39:24]*** Cut end [23:39:24]Read from MH i2c: 01 07 00 [23:39:24]MH_I2C_Read... [23:39:24]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [23:39:24]process_action close_receipt done [23:39:24]requested_data is exist [23:39:24]produce_requested_data [23:39:24]requested_item fm.sn is exist - process it [23:39:24]wFMCommunicate request_size=4 [23:39:24]MH_SAM_APDU [23:39:24]CAPDU: 80 11 00 00 [23:39:24]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [23:39:24]Write i2c OK [23:39:24]MH_I2C_Read... [23:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:24]Read from MH i2c: E2 [23:39:24]MH_I2C_Read... [23:39:24]Read from MH i2c: E2 17 00 [23:39:24]MH_I2C_Read... [23:39:24]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 66 [23:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:24]wFMCommunicate OK [23:39:24]requested_item fd.num is exist - process it [23:39:24]SAM_PROTO_GetFieldsCounters [23:39:24]wFMCommunicate request_size=4 [23:39:24]MH_SAM_APDU [23:39:24]CAPDU: 80 13 00 00 [23:39:24]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:25]Read from MH i2c: E2 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 62 00 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 62 00 95 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B1 68 01 00 0E 04 04 00 F9 01 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 F8 [23:39:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B1 68 01 00 0E 04 04 00 F9 01 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 [23:39:25]wFMCommunicate OK [23:39:25]SAM_PROTO_GetFieldsCounters done [23:39:25]requested_item shift.num is exist - process it [23:39:25]requested_item shift.opened is exist - process it [23:39:25]req_shift_opened [23:39:25]FM_GetShiftState [23:39:25]SAM_PROTO_GetShiftState [23:39:25]wFMCommunicate request_size=4 [23:39:25]MH_SAM_APDU [23:39:25]CAPDU: 80 13 01 00 [23:39:25]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:25]Read from MH i2c: E2 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 0E 00 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A0 [23:39:25]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:25]wFMCommunicate OK [23:39:25]SAM_PROTO_GetShiftState done [23:39:25]FM_GetShiftState done [23:39:25]req_shift_opened done [23:39:25]requested_item shift.open_date is exist - process it [23:39:25]req_shift_open_date [23:39:25]req_shift_open_date done [23:39:25]produce_requested_data done [23:39:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92337,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:25]process_action_free close_receipt [23:39:25]json_value_free [23:39:25]json_value_free done [23:39:25]process_json_proto returns [23:39:25]Send response to host [23:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92337,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:25]free response buf [23:39:25]execute_script done [23:39:25]execute_script returns [23:39:25]free content buf [23:39:25]Sock 6.Close socket [23:39:25]Sock 6.Thread stoped [23:39:27]accept exits with 8 [23:39:27]New connection [23:39:27]New thread 3067247972 created [23:39:27]Thread 3067391332 joined [23:39:27]Waiting for new connection... [23:39:27] Sock 8.Parse request [23:39:27]Sock 8.Check first char [23:39:27]Sock 8.First char is OK [23:39:27]request: POST /json_proto HTTP/1.0 [23:39:27]Method: POST [23:39:27]URL: /json_proto [23:39:27]Method is POST - this is cgi request [23:39:27]url: /json_proto [23:39:27]query_string will be loaded in cgi processing [23:39:27]execute_cgi json_proto POST (null) [23:39:27]execute_cgi path=json_proto method=POST [23:39:27]POST find Content-Length [23:39:27]Host: 172.17.57.71:8080 [23:39:27]Content-Length: 622 [23:39:27]Content-Type: application/json [23:39:27] [23:39:27]POST finish read [23:39:27]Found Content-Length = 622 [23:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127265", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:27]execute_script... [23:39:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127265", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:27]POST & json_proto [23:39:27]process_json_proto [23:39:27]json parsed OK: [23:39:27]protocol is kg_v1.0 [23:39:27]action value=close_receipt [23:39:27]process_action close_receipt [23:39:27]cmd_close_receipt [23:39:27]MH_GetDate [23:39:27]Write to MH i2c: F0 00 00 97 01 87 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 09 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 09 00 97 01 00 2F CD E4 66 33 3A A4 66 4D [23:39:27]GetLastDocTimeStamp 1726270759 [23:39:27]current date 1726270767 [23:39:27]FM_GetShiftState [23:39:27]SAM_PROTO_GetShiftState [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 13 01 00 [23:39:27]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0E 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 A2 [23:39:27]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:27]wFMCommunicate OK [23:39:27]SAM_PROTO_GetShiftState done [23:39:27]FM_GetShiftState done [23:39:27]opened in 1726186930 [23:39:27]opened+sec_in_day 1726273330 [23:39:27]quantity*price = 15000 [23:39:27]sum+1 = 15001 [23:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 146 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92338 ФПД: 274653096798056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92338&fm=274653096798056&tin=02508201610067®Number=0000000000091423&sum=15000 0 [23:39:28]StoreToDocumentArchive [23:39:28]shift 505 fd 92338 [23:39:28]save to /storage/0505/doc_00092338 [23:39:28]save last doc name /storage/0505/doc_00092338 to /storage/kkm_last_doc_name [23:39:28]save OK [23:39:28]Clear old archive folders... [23:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:39:28]tlvbuf is 01398CE0 [23:39:28]SAM_PROTO_ClearQueue [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 09 00 00 [23:39:28]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [23:39:28]RAPDU: 90 00 [23:39:28]wFMCommunicate OK [23:39:28]SAM_PROTO_ClearQueue done [23:39:28]KKMCreateOFDPacket [23:39:28]OFDProtocolAddRootSTLVToBuf [23:39:28]FM_MakeSignedData [23:39:28]FM_MakeSignedData [23:39:28]SAM_PROTO_SignData [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 0D 01 02 [23:39:28]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [23:39:28]RAPDU: 90 00 [23:39:28]wFMCommunicate OK [23:39:28]wFMCommunicate request_size=255 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [23:39:29]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 89 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [23:39:29]RAPDU: 90 00 [23:39:29]wFMCommunicate OK [23:39:29]wFMCommunicate request_size=33 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 68 01 00 35 04 06 00 F9 CB A8 45 67 68 [23:39:29]Write to MH i2c: E2 24 00 A8 01 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 68 01 00 35 04 06 00 F9 CB A8 45 67 68 00 00 51 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [23:39:29]RAPDU: 90 00 [23:39:29]wFMCommunicate OK [23:39:29]wFMCommunicate request_size=4 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 0D 03 02 [23:39:29]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 0B 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 0B 00 A9 01 00 D3 AD 02 03 3A 06 6A 6F 90 00 C4 [23:39:29]RAPDU: D3 AD 02 03 3A 06 6A 6F 90 00 [23:39:29]wFMCommunicate OK [23:39:29]SAM_PROTO_SignData done [23:39:29]FM_MakeSignedData done [23:39:29]CreateOFDProtocolMessage [23:39:29]wFMCommunicate request_size=4 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 11 00 00 [23:39:29]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 17 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [23:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:29]wFMCommunicate OK [23:39:29]CreateOFDProtocolMessage done [23:39:29]OFDSenderStorePacket 92338 [23:39:29]StoreOFDPacket docnum=92338 [23:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 F9 6E 1E 01 73 63 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 68 01 00 35 04 06 00 F9 CB A8 45 67 68 D3 AD 02 03 3A 06 6A 6F [23:39:29]CheckFolder [23:39:29]dirname=/storage/ofd_packets [23:39:29]CheckFolder done [23:39:29]ProducePacketName [23:39:29]name=ofd_packets/00092338 [23:39:29]NVStorageSaveData ofd_packets/00092338 [23:39:29]File name is /storage/ofd_packets/00092338 [23:39:29]Write 324 bytes [23:39:29]NVStorageSaveData done [23:39:29]OFDSenderStorePacket done [23:39:29]KKMCreateOFDPacket done [23:39:29]NVStorageSaveData kkm_last_timestamp [23:39:29]File name is /storage/kkm_last_timestamp [23:39:29]Write 4 bytes [23:39:29]NVStorageSaveData done [23:39:29]ExternCall_PrintAddStr [23:39:29]wPrintStart [23:39:29]Write to MH i2c: 01 00 00 AB 01 AC [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 07 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [23:39:29]RasterBufferAndPrint [23:39:29]line Счет N : (3)127265 [23:39:29]line ИНН: 02508201610067 [23:39:29]line Контрольно-Кассовый Чек [23:39:29]line ПРОДАЖА [23:39:29]line Товар: 4640030091645 [23:39:29]line Сигареты ESSE Exchange M [23:39:29]line 1.000 * 150.00 [23:39:29]line = 150.00 [23:39:29]line НДС 12% НСП 1% [23:39:29]line > о реализуемом товаре [23:39:29]line ИТОГО: 150.00 [23:39:29]line НСП 1% : 1.33 [23:39:29]line НДС 12% : 15.93 [23:39:29]line Наличными: 150.00 [23:39:29]line Безнал.: 0.00 [23:39:29]line Место: АЗС № 5 "Партнер Нефть" [23:39:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:29]line СНО: Общий режим [23:39:29]line Чек 146 13.09.2024 23:39 [23:39:30]line Смена: 505 ФФД: 1.0 [23:39:30]line ЗНМ: 03000000022 [23:39:30]line РНМ: 0000000000091423 [23:39:30]line Версия ККМ: 001 [23:39:30]line ФМ: 0000000000874692 [23:39:30]line ФД: 92338 [23:39:30]line ФПД: 274653096798056 [23:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92338&fm=274653096798056&tin=02508201610067®Number=0000000000091423&sum=15000 [23:39:30]line 0 [23:39:30]written 0, free lines is 4095 [23:39:30]OFD Sender: Processing packet 92338 [packets to send 63, broken 62] [23:39:30]ProducePacketName [23:39:30]name=ofd_packets/00092338 [23:39:30]OFD Sender: To server: pG, [23:39:30]CommunicateWithHost lk.salyk.kg:30040 [23:39:30]ConnectInit lk.salyk.kg [23:39:30]Connected sock=10 [23: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 34 36 39 32 26 01 00 00 F9 6E 1E 01 73 63 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B2 68 01 00 35 04 06 00 F9 CB A8 45 67 68 D3 AD 02 03 3A 06 6A 6F [23:39:30]Write to MH i2c: 01 00 00 D3 01 D4 [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 07 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 45 0D 2D [23:39:30]RasterBufferAndPrint [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]written 0, free lines is 3441 [23:39:30]MH_Cut [23:39:30]Write to MH i2c: D1 01 00 DA 01 01 AD [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 01 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 01 00 DA 01 00 AC [23:39:30]Write to MH i2c: 01 00 00 DB 01 DC [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 65 33 47 00 76 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 34 36 39 32 10 04 04 00 B2 68 01 00 F4 03 04 00 AD 75 E4 66 B6 04 01 00 00 45 F3 96 AE 85 0A A7 AE [23:39:30]CommunicateWithHost err = 0 [23:39:30]CheckOFDResponse [23:39:30]1017 (14) - 77093643461234 [23:39:30]1041 (16) - 0000000000874692 [23:39:30]1040 (4) - 92338 [23:39:30]1012 (4) - 13.09.2024 17:26 [23:39:30]1206 (1) - 0 [23:39:30]OFD Sender: Remove packet 92338 [23:39:30]ProducePacketName [23:39:30]name=ofd_packets/00092338 [23:39:30]NVStorageDeleteData [23:39:31]*** Cut start [23:39:31]*** Purtial cut [23:39:31]*** Stage 1: CUTSNS_PIN = 1 [23:39:31]OFD Sender: No OFD packet to send [23:39:33]Read from MH i2c: 01 [23:39:33]MH_I2C_Read... [23:39:33]*** Stop cut motor [23:39:33]*** Cut end [23:39:33]Read from MH i2c: 01 07 00 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [23:39:33]process_action close_receipt done [23:39:33]requested_data is exist [23:39:33]produce_requested_data [23:39:33]requested_item fm.sn is exist - process it [23:39:33]wFMCommunicate request_size=4 [23:39:33]MH_SAM_APDU [23:39:33]CAPDU: 80 11 00 00 [23:39:33]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [23:39:33]Write i2c OK [23:39:33]MH_I2C_Read... [23:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:33]Read from MH i2c: E2 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 17 00 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [23:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:33]wFMCommunicate OK [23:39:33]requested_item fd.num is exist - process it [23:39:33]SAM_PROTO_GetFieldsCounters [23:39:33]wFMCommunicate request_size=4 [23:39:33]MH_SAM_APDU [23:39:33]CAPDU: 80 13 00 00 [23:39:33]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [23:39:33]Write i2c OK [23:39:33]MH_I2C_Read... [23:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:33]Read from MH i2c: E2 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 62 00 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B2 68 01 00 0E 04 04 00 F9 01 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 44 [23: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B2 68 01 00 0E 04 04 00 F9 01 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 [23:39:33]wFMCommunicate OK [23:39:33]SAM_PROTO_GetFieldsCounters done [23:39:33]requested_item shift.num is exist - process it [23:39:33]requested_item shift.opened is exist - process it [23:39:33]req_shift_opened [23:39:33]FM_GetShiftState [23:39:33]SAM_PROTO_GetShiftState [23:39:33]wFMCommunicate request_size=4 [23:39:33]MH_SAM_APDU [23:39:33]CAPDU: 80 13 01 00 [23:39:33]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [23:39:33]Write i2c OK [23:39:33]MH_I2C_Read... [23:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:33]Read from MH i2c: E2 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 0E 00 [23:39:33]MH_I2C_Read... [23:39:33]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 E8 [23:39:33]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:33]wFMCommunicate OK [23:39:33]SAM_PROTO_GetShiftState done [23:39:33]FM_GetShiftState done [23:39:33]req_shift_opened done [23:39:33]requested_item shift.open_date is exist - process it [23:39:33]req_shift_open_date [23:39:33]req_shift_open_date done [23:39:33]produce_requested_data done [23:39:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92338,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:33]process_action_free close_receipt [23:39:33]json_value_free [23:39:33]json_value_free done [23:39:33]process_json_proto returns [23:39:33]Send response to host [23:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92338,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:33]free response buf [23:39:33]execute_script done [23:39:33]execute_script returns [23:39:33]free content buf [23:39:33]Sock 8.Close socket [23:39:33]Sock 8.Thread stoped [23:39:35]accept exits with 6 [23:39:35]New connection [23:39:35]New thread 3067391332 created [23:39:35]Thread 3067247972 joined [23:39:35]Waiting for new connection... [23:39:35] Sock 6.Parse request [23:39:35]Sock 6.Check first char [23:39:35]Sock 6.First char is OK [23:39:35]request: POST /json_proto HTTP/1.0 [23:39:35]Method: POST [23:39:35]URL: /json_proto [23:39:35]Method is POST - this is cgi request [23:39:35]url: /json_proto [23:39:35]query_string will be loaded in cgi processing [23:39:35]execute_cgi json_proto POST (null) [23:39:35]execute_cgi path=json_proto method=POST [23:39:35]POST find Content-Length [23:39:35]Host: 172.17.57.71:8080 [23:39:35]Content-Length: 654 [23:39:35]Content-Type: application/json [23:39:35] [23:39:35]POST finish read [23:39:35]Found Content-Length = 654 [23:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127266", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:35]execute_script... [23:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127266", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:35]POST & json_proto [23:39:35]process_json_proto [23:39:35]json parsed OK: [23:39:35]protocol is kg_v1.0 [23:39:35]action value=close_receipt [23:39:35]process_action close_receipt [23:39:35]cmd_close_receipt [23:39:35]MH_GetDate [23:39:35]Write to MH i2c: F0 00 00 DF 01 CF [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: F0 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: F0 09 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: F0 09 00 DF 01 00 37 CD E4 66 33 3A A4 66 9D [23:39:35]GetLastDocTimeStamp 1726270767 [23:39:35]current date 1726270775 [23:39:35]FM_GetShiftState [23:39:35]SAM_PROTO_GetShiftState [23:39:35]wFMCommunicate request_size=4 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 13 01 00 [23:39:35]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 0E 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 EA [23:39:35]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:35]wFMCommunicate OK [23:39:35]SAM_PROTO_GetShiftState done [23:39:35]FM_GetShiftState done [23:39:35]opened in 1726186930 [23:39:35]opened+sec_in_day 1726273330 [23:39:35]quantity*price = 7700 [23:39:35]sum+1 = 7701 [23:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 147 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92339 ФПД: 182605295848692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92339&fm=182605295848692&tin=02508201610067®Number=0000000000091423&sum=7700 0 [23:39:36]StoreToDocumentArchive [23:39:36]shift 505 fd 92339 [23:39:36]save to /storage/0505/doc_00092339 [23:39:36]save last doc name /storage/0505/doc_00092339 to /storage/kkm_last_doc_name [23:39:36]save OK [23:39:36]Clear old archive folders... [23:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=293 [23:39:36]tlvbuf is 01351460 [23:39:36]SAM_PROTO_ClearQueue [23:39:36]wFMCommunicate request_size=4 [23:39:36]MH_SAM_APDU [23:39:36]CAPDU: 80 09 00 00 [23:39:36]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [23:39:36]Write i2c OK [23:39:36]MH_I2C_Read... [23:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:36]Read from MH i2c: E2 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: E2 03 00 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [23:39:36]RAPDU: 90 00 [23:39:36]wFMCommunicate OK [23:39:36]SAM_PROTO_ClearQueue done [23:39:36]KKMCreateOFDPacket [23:39:36]OFDProtocolAddRootSTLVToBuf [23:39:36]FM_MakeSignedData [23:39:36]FM_MakeSignedData [23:39:36]SAM_PROTO_SignData [23:39:36]wFMCommunicate request_size=4 [23:39:36]MH_SAM_APDU [23:39:36]CAPDU: 80 0D 01 02 [23:39:36]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [23:39:36]Write i2c OK [23:39:36]MH_I2C_Read... [23:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:36]Read from MH i2c: E2 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: E2 03 00 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [23:39:36]RAPDU: 90 00 [23:39:36]wFMCommunicate OK [23:39:36]wFMCommunicate request_size=255 [23:39:36]MH_SAM_APDU [23:39:36]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 37 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [23:39:37]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 37 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D8 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:37]Read from MH i2c: E2 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 03 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [23:39:37]RAPDU: 90 00 [23:39:37]wFMCommunicate OK [23:39:37]wFMCommunicate request_size=52 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 68 01 00 35 04 06 00 A6 14 1B CB 0C F4 [23:39:37]Write to MH i2c: E2 37 00 F0 01 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 68 01 00 35 04 06 00 A6 14 1B CB 0C F4 00 00 E8 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:37]Read from MH i2c: E2 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 03 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [23:39:37]RAPDU: 90 00 [23:39:37]wFMCommunicate OK [23:39:37]wFMCommunicate request_size=4 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 0D 03 02 [23:39:37]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:37]Read from MH i2c: E2 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0B 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0B 00 F1 01 00 30 E0 E3 29 93 28 D0 22 90 00 37 [23:39:37]RAPDU: 30 E0 E3 29 93 28 D0 22 90 00 [23:39:37]wFMCommunicate OK [23:39:37]SAM_PROTO_SignData done [23:39:37]FM_MakeSignedData done [23:39:37]CreateOFDProtocolMessage [23:39:37]wFMCommunicate request_size=4 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 11 00 00 [23:39:37]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 17 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C4 [23:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:38]wFMCommunicate OK [23:39:38]CreateOFDProtocolMessage done [23:39:38]OFDSenderStorePacket 92339 [23:39:38]StoreOFDPacket docnum=92339 [23:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 B2 E1 31 01 90 51 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 37 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 68 01 00 35 04 06 00 A6 14 1B CB 0C F4 30 E0 E3 29 93 28 D0 22 [23:39:38]CheckFolder [23:39:38]dirname=/storage/ofd_packets [23:39:38]CheckFolder done [23:39:38]ProducePacketName [23:39:38]name=ofd_packets/00092339 [23:39:38]NVStorageSaveData ofd_packets/00092339 [23:39:38]File name is /storage/ofd_packets/00092339 [23:39:38]Write 343 bytes [23:39:38]NVStorageSaveData done [23:39:38]OFDSenderStorePacket done [23:39:38]KKMCreateOFDPacket done [23:39:38]NVStorageSaveData kkm_last_timestamp [23:39:38]File name is /storage/kkm_last_timestamp [23:39:38]Write 4 bytes [23:39:38]NVStorageSaveData done [23:39:38]ExternCall_PrintAddStr [23:39:38]wPrintStart [23:39:38]Write to MH i2c: 01 00 00 F3 01 F4 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [23:39:38]RasterBufferAndPrint [23:39:38]line Счет N : (3)127266 [23:39:38]line ИНН: 02508201610067 [23:39:38]line Контрольно-Кассовый Чек [23:39:38]line ПРОДАЖА [23:39:38]line Товар: 4700000480050 [23:39:38]line Напиток Nitro Energy эн green ж/б 0,45л [23:39:38]line 1.000 * 77.00 [23:39:38]line = 77.00 [23:39:38]line НДС 12% НСП 1% [23:39:38]line > о реализуемом товаре [23:39:38]line ИТОГО: 77.00 [23:39:38]line НСП 1% : 0.68 [23:39:38]line НДС 12% : 8.18 [23:39:38]line Наличными: 77.00 [23:39:38]line Безнал.: 0.00 [23:39:38]line Место: АЗС № 5 "Партнер Нефть" [23:39:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:38]line СНО: Общий режим [23:39:38]line Чек 147 13.09.2024 23:39 [23:39:38]line Смена: 505 ФФД: 1.0 [23:39:38]line ЗНМ: 03000000022 [23:39:38]line РНМ: 0000000000091423 [23:39:38]line Версия ККМ: 001 [23:39:38]line ФМ: 0000000000874692 [23:39:38]line ФД: 92339 [23:39:38]line ФПД: 182605295848692 [23:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92339&fm=182605295848692&tin=02508201610067®Number=0000000000091423&sum=7700 [23:39:38]line 0 [23:39:38]OFD Sender: Processing packet 92339 [packets to send 63, broken 62] [23:39:38]ProducePacketName [23:39:38]name=ofd_packets/00092339 [23:39:38]OFD Sender: To server: pG, [23:39:38]CommunicateWithHost lk.salyk.kg:30040 [23:39:38]ConnectInit lk.salyk.kg [23:39:38]written 0, free lines is 4095 [23:39:38]Connected sock=10 [23:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 B2 E1 31 01 90 51 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 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 37 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 68 01 00 35 04 06 00 A6 14 1B CB 0C F4 30 E0 E3 29 93 28 D0 22 [23:39:38]Write to MH i2c: 01 00 00 1C 02 1E [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 72 0D A4 [23:39:38]RasterBufferAndPrint [23:39:38]line [23:39:38]line [23:39:38]line [23:39:38]line [23:39:38]line [23:39:38]written 0, free lines is 3492 [23:39:38]MH_Cut [23:39:38]Write to MH i2c: D1 01 00 23 02 01 F7 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: D1 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: D1 01 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: D1 01 00 23 02 00 F6 [23:39:38]Write to MH i2c: 01 00 00 24 02 26 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9E 68 47 00 FD 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B3 68 01 00 F4 03 04 00 B6 75 E4 66 B6 04 01 00 00 52 AF 5C 46 BB 4B 95 71 [23:39:39]CommunicateWithHost err = 0 [23:39:39]CheckOFDResponse [23:39:39]1017 (14) - 77093643461234 [23:39:39]1041 (16) - 0000000000874692 [23:39:39]1040 (4) - 92339 [23:39:39]1012 (4) - 13.09.2024 17:26 [23:39:39]1206 (1) - 0 [23:39:39]OFD Sender: Remove packet 92339 [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00092339 [23:39:39]NVStorageDeleteData [23:39:39]*** Cut start [23:39:39]*** Purtial cut [23:39:39]*** Stage 1: CUTSNS_PIN = 1 [23:39:39]OFD Sender: No OFD packet to send [23:39:41]Read from MH i2c: 01 [23:39:41]MH_I2C_Read... [23:39:41]*** Stop cut motor [23:39:41]*** Cut end [23:39:41]Read from MH i2c: 01 07 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [23:39:41]process_action close_receipt done [23:39:41]requested_data is exist [23:39:41]produce_requested_data [23:39:41]requested_item fm.sn is exist - process it [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 11 00 00 [23:39:41]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F8 [23:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:41]wFMCommunicate OK [23:39:41]requested_item fd.num is exist - process it [23:39:41]SAM_PROTO_GetFieldsCounters [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 00 00 [23:39:41]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B3 68 01 00 0E 04 04 00 F9 01 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 92 [23:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B3 68 01 00 0E 04 04 00 F9 01 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 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetFieldsCounters done [23:39:41]requested_item shift.num is exist - process it [23:39:41]requested_item shift.opened is exist - process it [23:39:41]req_shift_opened [23:39:41]FM_GetShiftState [23:39:41]SAM_PROTO_GetShiftState [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 01 00 [23:39:41]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 32 [23:39:41]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetShiftState done [23:39:41]FM_GetShiftState done [23:39:41]req_shift_opened done [23:39:41]requested_item shift.open_date is exist - process it [23:39:41]req_shift_open_date [23:39:41]req_shift_open_date done [23:39:41]produce_requested_data done [23:39:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92339,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:41]process_action_free close_receipt [23:39:41]json_value_free [23:39:41]json_value_free done [23:39:41]process_json_proto returns [23:39:41]Send response to host [23:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92339,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:41]free response buf [23:39:41]execute_script done [23:39:41]execute_script returns [23:39:41]free content buf [23:39:41]Sock 6.Close socket [23:39:41]Sock 6.Thread stoped [23:39:43]accept exits with 8 [23:39:43]New connection [23:39:43]New thread 3067247972 created [23:39:43]Thread 3067391332 joined [23:39:43]Waiting for new connection... [23:39:43] Sock 8.Parse request [23:39:43]Sock 8.Check first char [23:39:43]Sock 8.First char is OK [23:39:43]request: POST /json_proto HTTP/1.0 [23:39:43]Method: POST [23:39:43]URL: /json_proto [23:39:43]Method is POST - this is cgi request [23:39:43]url: /json_proto [23:39:43]query_string will be loaded in cgi processing [23:39:43]execute_cgi json_proto POST (null) [23:39:43]execute_cgi path=json_proto method=POST [23:39:43]POST find Content-Length [23:39:43]Host: 172.17.57.71:8080 [23:39:43]Content-Length: 620 [23:39:43]Content-Type: application/json [23:39:43] [23:39:43]POST finish read [23:39:43]Found Content-Length = 620 [23:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127267", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:43]execute_script... [23:39: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 : (3)127267", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:43]POST & json_proto [23:39:43]process_json_proto [23:39:43]json parsed OK: [23:39:43]protocol is kg_v1.0 [23:39:43]action value=close_receipt [23:39:43]process_action close_receipt [23:39:43]cmd_close_receipt [23:39:43]MH_GetDate [23:39:43]Write to MH i2c: F0 00 00 28 02 19 [23:39:43]Write i2c OK [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: F0 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: F0 09 00 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: F0 09 00 28 02 00 3F CD E4 66 33 3A A4 66 EF [23:39:43]GetLastDocTimeStamp 1726270775 [23:39:43]current date 1726270783 [23:39:43]FM_GetShiftState [23:39:43]SAM_PROTO_GetShiftState [23:39:43]wFMCommunicate request_size=4 [23:39:43]MH_SAM_APDU [23:39:43]CAPDU: 80 13 01 00 [23:39:43]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [23:39:43]Write i2c OK [23:39:43]MH_I2C_Read... [23:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:43]Read from MH i2c: E2 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: E2 0E 00 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 34 [23:39:43]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:43]wFMCommunicate OK [23:39:43]SAM_PROTO_GetShiftState done [23:39:43]FM_GetShiftState done [23:39:43]opened in 1726186930 [23:39:43]opened+sec_in_day 1726273330 [23:39:43]quantity*price = 13900 [23:39:43]sum+1 = 13901 [23:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 148 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92340 ФПД: 94192852959767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233943&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92340&fm=94192852959767&tin=02508201610067®Number=0000000000091423&sum=13900 0 [23:39:45]StoreToDocumentArchive [23:39:45]shift 505 fd 92340 [23:39:45]save to /storage/0505/doc_00092340 [23:39:45]save last doc name /storage/0505/doc_00092340 to /storage/kkm_last_doc_name [23:39:45]save OK [23:39:45]Clear old archive folders... [23:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:39:45]tlvbuf is 012DF150 [23:39:45]SAM_PROTO_ClearQueue [23:39:45]wFMCommunicate request_size=4 [23:39:45]MH_SAM_APDU [23:39:45]CAPDU: 80 09 00 00 [23:39:45]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [23:39:45]Write i2c OK [23:39:45]MH_I2C_Read... [23:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:45]Read from MH i2c: E2 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 03 00 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [23:39:45]RAPDU: 90 00 [23:39:45]wFMCommunicate OK [23:39:45]SAM_PROTO_ClearQueue done [23:39:45]KKMCreateOFDPacket [23:39:45]OFDProtocolAddRootSTLVToBuf [23:39:45]FM_MakeSignedData [23:39:45]FM_MakeSignedData [23:39:45]SAM_PROTO_SignData [23:39:45]wFMCommunicate request_size=4 [23:39:45]MH_SAM_APDU [23:39:45]CAPDU: 80 0D 01 02 [23:39:45]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [23:39:45]Write i2c OK [23:39:45]MH_I2C_Read... [23:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:45]Read from MH i2c: E2 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 03 00 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [23:39:45]RAPDU: 90 00 [23:39:45]wFMCommunicate OK [23:39:45]wFMCommunicate request_size=255 [23:39:45]MH_SAM_APDU [23:39:45]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 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 3F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [23:39:45]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 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 3F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C1 [23:39:45]Write i2c OK [23:39:45]MH_I2C_Read... [23:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:46]Read from MH i2c: E2 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 03 00 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [23:39:46]RAPDU: 90 00 [23:39:46]wFMCommunicate OK [23:39:46]wFMCommunicate request_size=31 [23:39:46]MH_SAM_APDU [23:39:46]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 B4 68 01 00 35 04 06 00 55 AA FB 8A 82 17 [23:39:46]Write to MH i2c: E2 22 00 39 02 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 B4 68 01 00 35 04 06 00 55 AA FB 8A 82 17 00 00 1E [23:39:46]Write i2c OK [23:39:46]MH_I2C_Read... [23:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:46]Read from MH i2c: E2 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 03 00 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [23:39:46]RAPDU: 90 00 [23:39:46]wFMCommunicate OK [23:39:46]wFMCommunicate request_size=4 [23:39:46]MH_SAM_APDU [23:39:46]CAPDU: 80 0D 03 02 [23:39:46]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [23:39:46]Write i2c OK [23:39:46]MH_I2C_Read... [23:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:46]Read from MH i2c: E2 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 0B 00 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 0B 00 3A 02 00 25 DE 62 6A 08 B6 C6 DD 90 00 E8 [23:39:46]RAPDU: 25 DE 62 6A 08 B6 C6 DD 90 00 [23:39:46]wFMCommunicate OK [23:39:46]SAM_PROTO_SignData done [23:39:46]FM_MakeSignedData done [23:39:46]CreateOFDProtocolMessage [23:39:46]wFMCommunicate request_size=4 [23:39:46]MH_SAM_APDU [23:39:46]CAPDU: 80 11 00 00 [23:39:46]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [23:39:46]Write i2c OK [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 [23:39:46]MH_I2C_Read... [23:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:46]Read from MH i2c: E2 17 00 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0E [23:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:46]wFMCommunicate OK [23:39:46]CreateOFDProtocolMessage done [23:39:46]OFDSenderStorePacket 92340 [23:39:46]StoreOFDPacket docnum=92340 [23:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 7F DF 1C 01 21 76 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 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 3F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 68 01 00 35 04 06 00 55 AA FB 8A 82 17 25 DE 62 6A 08 B6 C6 DD [23:39:46]CheckFolder [23:39:46]dirname=/storage/ofd_packets [23:39:46]CheckFolder done [23:39:46]ProducePacketName [23:39:46]name=ofd_packets/00092340 [23:39:46]NVStorageSaveData ofd_packets/00092340 [23:39:46]File name is /storage/ofd_packets/00092340 [23:39:46]Write 322 bytes [23:39:46]NVStorageSaveData done [23:39:46]OFDSenderStorePacket done [23:39:46]KKMCreateOFDPacket done [23:39:46]NVStorageSaveData kkm_last_timestamp [23:39:46]File name is /storage/kkm_last_timestamp [23:39:46]Write 4 bytes [23:39:46]NVStorageSaveData done [23:39:46]ExternCall_PrintAddStr [23:39:46]wPrintStart [23:39:46]Write to MH i2c: 01 00 00 3C 02 3E [23:39:46]Write i2c OK [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: 01 [23:39:46]MH_I2C_Read... [23:39:46]Read from MH i2c: 01 07 00 [23:39:46]MH_I2C_Read... [23:39:46]OFD Sender: Processing packet 92340 [packets to send 63, broken 62] [23:39:46]Read from MH i2c: ProducePacketName [23:39:46]01 name=ofd_packets/00092340 [23:39:46]07 OFD Sender: To server: pG, [23:39:46]00 CommunicateWithHost lk.salyk.kg:30040 [23:39:46]3C ConnectInit lk.salyk.kg [23:39:46]02 00 00 00 00 00 FF 0F 53 [23:39:46]RasterBufferAndPrint [23:39:46]line Счет N : (3)127267 [23:39:46]line ИНН: 02508201610067 [23:39:46]line Контрольно-Кассовый Чек [23:39:46]line ПРОДАЖА [23:39:46]line Товар: 48745000 [23:39:46]line Сигареты Winston Purple Mix [23:39:46]line 1.000 * 139.00 [23:39:46]line = 139.00 [23:39:46]line НДС 12% НСП 1% [23:39:46]line > о реализуемом товаре [23:39:46]line ИТОГО: 139.00 [23:39:46]line НСП 1% : 1.23 [23:39:46]line НДС 12% : 14.76 [23:39:46]line Наличными: 139.00 [23:39:46]line Безнал.: 0.00 [23:39:46]line Место: АЗС № 5 "Партнер Нефть" [23:39:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:46]line СНО: Общий режим [23:39:46]line Чек 148 13.09.2024 23:39 [23:39:46]line Смена: 505 ФФД: 1.0 [23:39:46]line ЗНМ: 03000000022 [23:39:46]line РНМ: 0000000000091423 [23:39:46]line Версия ККМ: 001 [23:39:46]line ФМ: 0000000000874692 [23:39:46]line ФД: 92340 [23:39:46]line ФПД: 94192852959767 [23:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233943&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92340&fm=94192852959767&tin=02508201610067®Number=0000000000091423&sum=13900 [23:39:46]line 0 [23:39:46]written 0, free lines is 4095 [23:39:46]Connected sock=10 [23:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 7F DF 1C 01 21 76 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 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 3F CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 68 01 00 35 04 06 00 55 AA FB 8A 82 17 25 DE 62 6A 08 B6 C6 DD [23:39:47]Write to MH i2c: 01 00 00 64 02 66 [23:39:47]Write i2c OK [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: 01 [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: 01 07 00 [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 28 0D A2 [23:39:47]RasterBufferAndPrint [23:39:47]line [23:39:47]line [23:39:47]line [23:39:47]line [23:39:47]line [23:39:47]written 0, free lines is 3421 [23:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F0 35 47 00 8F 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B4 68 01 00 F4 03 04 00 BE 75 E4 66 B6 04 01 00 00 41 BB A1 63 12 BC CB A0 [23:39:47]CommunicateWithHost err = 0 [23:39:47]CheckOFDResponse [23:39:47]1017 (14) - 77093643461234 [23:39:47]1041 (16) - 0000000000874692 [23:39:47]1040 (4) - 92340 [23:39:47]1012 (4) - 13.09.2024 17:26 [23:39:47]MH_Cut [23:39:47]1206 (1) - 0 [23:39:47]Write to MH i2c: OFD Sender: Remove packet 92340 [23:39:47]D1 ProducePacketName [23:39:47]01 name=ofd_packets/00092340 [23:39:47]00 NVStorageDeleteData [23:39:47]6B 02 01 3F [23:39:47]Write i2c OK [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: D1 [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: D1 01 00 [23:39:47]MH_I2C_Read... [23:39:47]Read from MH i2c: D1 01 00 6B 02 00 3E [23:39:47]Write to MH i2c: 01 00 00 6C 02 6E [23:39:47]Write i2c OK [23:39:47]MH_I2C_Read... [23:39:47]*** Cut start [23:39:47]*** Purtial cut [23:39:47]*** Stage 1: CUTSNS_PIN = 1 [23:39:47]OFD Sender: No OFD packet to send [23:39:49]Read from MH i2c: *** Stop cut motor [23:39:49]01 *** Cut end [23:39:49] [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: 01 07 00 [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [23:39:49]process_action close_receipt done [23:39:49]requested_data is exist [23:39:49]produce_requested_data [23:39:49]requested_item fm.sn is exist - process it [23:39:49]wFMCommunicate request_size=4 [23:39:49]MH_SAM_APDU [23:39:49]CAPDU: 80 11 00 00 [23:39:49]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [23:39:49]Write i2c OK [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:49]E2 [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: E2 17 00 [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 40 [23:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:49]wFMCommunicate OK [23:39:49]requested_item fd.num is exist - process it [23:39:49]SAM_PROTO_GetFieldsCounters [23:39:49]wFMCommunicate request_size=4 [23:39:49]MH_SAM_APDU [23:39:49]CAPDU: 80 13 00 00 [23:39:49]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [23:39:49]Write i2c OK [23:39:49]MH_I2C_Read... [23:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:49]Read from MH i2c: E2 [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: E2 62 00 [23:39:49]MH_I2C_Read... [23:39:49]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B4 68 01 00 0E 04 04 00 F9 01 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 DE [23:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B4 68 01 00 0E 04 04 00 F9 01 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 [23:39:50]wFMCommunicate OK [23:39:50]SAM_PROTO_GetFieldsCounters done [23:39:50]requested_item shift.num is exist - process it [23:39:50]requested_item shift.opened is exist - process it [23:39:50]req_shift_opened [23:39:50]FM_GetShiftState [23:39:50]SAM_PROTO_GetShiftState [23:39:50]wFMCommunicate request_size=4 [23:39:50]MH_SAM_APDU [23:39:50]CAPDU: 80 13 01 00 [23:39:50]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [23:39:50]Write i2c OK [23:39:50]MH_I2C_Read... [23:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:50]Read from MH i2c: E2 [23:39:50]MH_I2C_Read... [23:39:50]Read from MH i2c: E2 0E 00 [23:39:50]MH_I2C_Read... [23:39:50]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7A [23:39:50]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:50]wFMCommunicate OK [23:39:50]SAM_PROTO_GetShiftState done [23:39:50]FM_GetShiftState done [23:39:50]req_shift_opened done [23:39:50]requested_item shift.open_date is exist - process it [23:39:50]req_shift_open_date [23:39:50]req_shift_open_date done [23:39:50]produce_requested_data done [23:39:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92340,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:50]process_action_free close_receipt [23:39:50]json_value_free [23:39:50]json_value_free done [23:39:50]process_json_proto returns [23:39:50]Send response to host [23:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92340,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:50]free response buf [23:39:50]execute_script done [23:39:50]execute_script returns [23:39:50]free content buf [23:39:50]Sock 8.Close socket [23:39:50]Sock 8.Thread stoped [23:39:51]accept exits with 9 [23:39:51]New connection [23:39:51]New thread 3067391332 created [23:39:51]Thread 3067247972 joined [23:39:51]Waiting for new connection... [23:39:51] Sock 9.Parse request [23:39:51]Sock 9.Check first char [23:39:51]Sock 9.First char is OK [23:39:51]request: POST /json_proto HTTP/1.0 [23:39:51]Method: POST [23:39:51]URL: /json_proto [23:39:51]Method is POST - this is cgi request [23:39:51]url: /json_proto [23:39:51]query_string will be loaded in cgi processing [23:39:51]execute_cgi json_proto POST (null) [23:39:51]execute_cgi path=json_proto method=POST [23:39:51]POST find Content-Length [23:39:51]Host: 172.17.57.71:8080 [23:39:51]Content-Length: 955 [23:39:51]Content-Type: application/json [23:39:51] [23:39:51]POST finish read [23:39:51]Found Content-Length = 955 [23:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127268", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:51]execute_script... [23:39: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 : (3)127268", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:51]POST & json_proto [23:39:51]process_json_proto [23:39:51]json parsed OK: [23:39:51]protocol is kg_v1.0 [23:39:51]action value=close_receipt [23:39:51]process_action close_receipt [23:39:51]cmd_close_receipt [23:39:51]MH_GetDate [23:39:51]Write to MH i2c: F0 00 00 70 02 61 [23:39:51]Write i2c OK [23:39:51]MH_I2C_Read... [23:39:51]Read from MH i2c: F0 [23:39:51]MH_I2C_Read... [23:39:51]Read from MH i2c: F0 09 00 [23:39:51]MH_I2C_Read... [23:39:51]Read from MH i2c: F0 09 00 70 02 00 48 CD E4 66 33 3A A4 66 40 [23:39:51]GetLastDocTimeStamp 1726270783 [23:39:51]current date 1726270792 [23:39:51]FM_GetShiftState [23:39:51]SAM_PROTO_GetShiftState [23:39:51]wFMCommunicate request_size=4 [23:39:51]MH_SAM_APDU [23:39:51]CAPDU: 80 13 01 00 [23:39:51]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [23:39:51]Write i2c OK [23:39:51]MH_I2C_Read... [23:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:51]Read from MH i2c: E2 [23:39:51]MH_I2C_Read... [23:39:51]Read from MH i2c: E2 0E 00 [23:39:51]MH_I2C_Read... [23:39:51]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 7C [23:39:51]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:51]wFMCommunicate OK [23:39:51]SAM_PROTO_GetShiftState done [23:39:51]FM_GetShiftState done [23:39:51]opened in 1726186930 [23:39:51]opened+sec_in_day 1726273330 [23:39:51]quantity*price = 6500 [23:39:51]sum+1 = 6501 [23:39:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 149 13.09.2024 23:39 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92341 ФПД: 175197374046958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233952&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92341&fm=175197374046958&tin=02508201610067®Number=0000000000091423&sum=11500 0 [23:39:53]StoreToDocumentArchive [23:39:53]shift 505 fd 92341 [23:39:53]save to /storage/0505/doc_00092341 [23:39:53]save last doc name /storage/0505/doc_00092341 to /storage/kkm_last_doc_name [23:39:53]save OK [23:39:53]Clear old archive folders... [23:39:53]ProcessDocumentItem done err = 0, tmpTLVsize=397 [23:39:53]tlvbuf is 013EEEB0 [23:39:53]SAM_PROTO_ClearQueue [23:39:53]wFMCommunicate request_size=4 [23:39:53]MH_SAM_APDU [23:39:53]CAPDU: 80 09 00 00 [23:39:53]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [23:39:53]Write i2c OK [23:39:53]MH_I2C_Read... [23:39:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:53]Read from MH i2c: E2 [23:39:53]MH_I2C_Read... [23:39:53]Read from MH i2c: E2 03 00 [23:39:53]MH_I2C_Read... [23:39:53]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [23:39:53]RAPDU: 90 00 [23:39:53]wFMCommunicate OK [23:39:53]SAM_PROTO_ClearQueue done [23:39:53]KKMCreateOFDPacket [23:39:53]OFDProtocolAddRootSTLVToBuf [23:39:53]FM_MakeSignedData [23:39:53]FM_MakeSignedData [23:39:53]SAM_PROTO_SignData [23:39:53]wFMCommunicate request_size=4 [23:39:53]MH_SAM_APDU [23:39:53]CAPDU: 80 0D 01 02 [23:39:53]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [23:39:53]Write i2c OK [23:39:53]MH_I2C_Read... [23:39:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:53]Read from MH i2c: E2 [23:39:53]MH_I2C_Read... [23:39:53]Read from MH i2c: E2 03 00 [23:39:53]MH_I2C_Read... [23:39:53]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [23:39:53]RAPDU: 90 00 [23:39:53]wFMCommunicate OK [23:39:53]wFMCommunicate request_size=255 [23:39:53]MH_SAM_APDU [23:39:53]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 [23:39:54]Write to MH i2c: E2 02 01 80 02 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 00 00 E0 [23:39:54]Write i2c OK [23:39:54]MH_I2C_Read... [23:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:54]Read from MH i2c: E2 [23:39:54]MH_I2C_Read... [23:39:54]Read from MH i2c: E2 03 00 [23:39:54]MH_I2C_Read... [23:39:54]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [23:39:54]RAPDU: 90 00 [23:39:54]wFMCommunicate OK [23:39:54]wFMCommunicate request_size=156 [23:39:54]MH_SAM_APDU [23:39:54]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 48 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 68 01 00 35 04 06 00 9F 57 51 3E E2 EE [23:39:54]Write to MH i2c: E2 9F 00 81 02 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 48 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 68 01 00 35 04 06 00 9F 57 51 3E E2 EE 00 00 F9 [23:39:55]Write i2c OK [23:39:55]MH_I2C_Read... [23:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:55]Read from MH i2c: E2 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 03 00 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [23:39:55]RAPDU: 90 00 [23:39:55]wFMCommunicate OK [23:39:55]wFMCommunicate request_size=4 [23:39:55]MH_SAM_APDU [23:39:55]CAPDU: 80 0D 03 02 [23:39:55]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [23:39:55]Write i2c OK [23:39:55]MH_I2C_Read... [23:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:55]Read from MH i2c: E2 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 0B 00 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 0B 00 82 02 00 8F B2 14 25 73 66 BF 58 90 00 6A [23:39:55]RAPDU: 8F B2 14 25 73 66 BF 58 90 00 [23:39:55]wFMCommunicate OK [23:39:55]SAM_PROTO_SignData done [23:39:55]FM_MakeSignedData done [23:39:55]CreateOFDProtocolMessage [23:39:55]wFMCommunicate request_size=4 [23:39:55]MH_SAM_APDU [23:39:55]CAPDU: 80 11 00 00 [23:39:55]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [23:39:55]Write i2c OK [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 [23:39:55]MH_I2C_Read... [23:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:55]Read from MH i2c: E2 17 00 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 56 [23:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:55]wFMCommunicate OK [23:39:55]CreateOFDProtocolMessage done [23:39:55]OFDSenderStorePacket 92341 [23:39:55]StoreOFDPacket docnum=92341 [23:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 3E FC 99 01 78 40 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 48 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 68 01 00 35 04 06 00 9F 57 51 3E E2 EE 8F B2 14 25 73 66 BF 58 [23:39:55]CheckFolder [23:39:55]dirname=/storage/ofd_packets [23:39:55]CheckFolder done [23:39:55]ProducePacketName [23:39:55]name=ofd_packets/00092341 [23:39:55]NVStorageSaveData ofd_packets/00092341 [23:39:55]File name is /storage/ofd_packets/00092341 [23:39:55]Write 447 bytes [23:39:55]NVStorageSaveData done [23:39:55]OFDSenderStorePacket done [23:39:55]KKMCreateOFDPacket done [23:39:55]NVStorageSaveData kkm_last_timestamp [23:39:55]File name is /storage/kkm_last_timestamp [23:39:55]Write 4 bytes [23:39:55]NVStorageSaveData done [23:39:55]ExternCall_PrintAddStr [23:39:55]wPrintStart [23:39:55]Write to MH i2c: 01 00 00 84 02 86 [23:39:55]Write i2c OK [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: 01 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: 01 07 00 [23:39:55]MH_I2C_Read... [23:39:55]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [23:39:55]RasterBufferAndPrint [23:39:55]line Счет N : (3)127268 [23:39:55]line ИНН: 02508201610067 [23:39:55]line Контрольно-Кассовый Чек [23:39:55]line ПРОДАЖА [23:39:55]line Товар: 4600338000183 [23:39:55]line Сок Фруто НЯНЯ яблоко освет 0,2л [23:39:55]line 1.000 * 65.00 [23:39:55]line = 65.00 [23:39:55]line НДС 12% НСП 1% [23:39:55]line > о реализуемом товаре [23:39:55]line Товар: 4700000160358 [23:39:55]line Вода Легенда 1л [23:39:55]line 1.000 * 50.00 [23:39:55]line = 50.00 [23:39:55]line НДС 12% НСП 1% [23:39:55]line > о реализуемом товаре [23:39:55]line ИТОГО: 115.00 [23:39:55]OFD Sender: Processing packet 92341 [packets to send 63, broken 62] [23:39:55]ProducePacketName [23:39:55]name=ofd_packets/00092341 [23:39:55]OFD Sender: To server: pG, [23:39:55]CommunicateWithHost lk.salyk.kg:30040 [23:39:55]ConnectInit lk.salyk.kg [23:39:55]line НСП 1% : 1.01 [23:39:55]line НДС 12% : 12.21 [23:39:55]line Наличными: 115.00 [23:39:55]line Безнал.: 0.00 [23:39:55]line Место: АЗС № 5 "Партнер Нефть" [23:39:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:39:55]line СНО: Общий режим [23:39:55]line Чек 149 13.09.2024 23:39 [23:39:55]line Смена: 505 ФФД: 1.0 [23:39:55]line ЗНМ: 03000000022 [23:39:55]line РНМ: 0000000000091423 [23:39:55]line Версия ККМ: 001 [23:39:55]line ФМ: 0000000000874692 [23:39:55]line ФД: 92341 [23:39:55]line ФПД: 175197374046958 [23:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T233952&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92341&fm=175197374046958&tin=02508201610067®Number=0000000000091423&sum=11500 [23:39:55]line 0 [23:39:55]written 0, free lines is 4095 [23:39:55]Connected sock=10 [23:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 3E FC 99 01 78 40 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 48 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 30 00 39 B3 31 02 34 B5 32 [23:39:56]33 11 04 10 00 30 30 30 30 30 30 30 30 Write i2c OK [23:39:56]30 MH_I2C_Read... [23:39:56]30 38 37 34 36 39 32 Read from MH i2c: 10 01 04 [23:39:56]04 MH_I2C_Read... [23:39:56]00 B5 68 01 00 35 04 06 00 9F 57 51 3E E2 Read from MH i2c: EE 01 8F 07 B2 00 14 [23:39:56]25 MH_I2C_Read... [23:39:56]73 66 BF 58 [23:39:56]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 D2 0C 9A [23:39:56]RasterBufferAndPrint [23:39:56]line [23:39:56]line [23:39:56]line [23:39:56]line [23:39:56]line [23:39:56]written 0, free lines is 3418 [23:39:56]MH_Cut [23:39:56]Write to MH i2c: D1 01 00 BA 02 01 8E [23:39:56]Write i2c OK [23:39:56]MH_I2C_Read... [23:39:56]Read from MH i2c: D1 [23:39:56]MH_I2C_Read... [23:39:56]Read from MH i2c: D1 01 00 [23:39:56]MH_I2C_Read... [23:39:56]Read from MH i2c: D1 01 00 BA 02 00 8D [23:39:56]Write to MH i2c: 01 00 00 BB 02 BD [23:39:56]Write i2c OK [23:39:56]MH_I2C_Read... [23:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0D 8A 47 00 FB 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B5 68 01 00 F4 03 04 00 C7 75 E4 66 B6 04 01 00 00 88 82 E0 68 8F 69 4D 82 [23:39:56]CommunicateWithHost err = 0 [23:39:56]CheckOFDResponse [23:39:56]1017 (14) - 77093643461234 [23:39:56]1041 (16) - 0000000000874692 [23:39:56]1040 (4) - 92341 [23:39:56]1012 (4) - 13.09.2024 17:26 [23:39:56]1206 (1) - 0 [23:39:56]OFD Sender: Remove packet 92341 [23:39:56]ProducePacketName [23:39:56]name=ofd_packets/00092341 [23:39:56]NVStorageDeleteData [23:39:56]*** Cut start [23:39:56]*** Purtial cut [23:39:56]*** Stage 1: CUTSNS_PIN = 1 [23:39:57]OFD Sender: No OFD packet to send [23:39:58]Read from MH i2c: 01 [23:39:58]MH_I2C_Read... [23:39:58]*** Stop cut motor [23:39:58]*** Cut end [23:39:58]Read from MH i2c: 01 07 00 [23:39:58]MH_I2C_Read... [23:39:58]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [23:39:58]process_action close_receipt done [23:39:58]requested_data is exist [23:39:58]produce_requested_data [23:39:58]requested_item fm.sn is exist - process it [23:39:58]wFMCommunicate request_size=4 [23:39:58]MH_SAM_APDU [23:39:58]CAPDU: 80 11 00 00 [23:39:58]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [23:39:58]Write i2c OK [23:39:58]MH_I2C_Read... [23:39:58]Read from MH i2c: E2 [23:39:58]MH_I2C_Read... [23:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:58]Read from MH i2c: E2 17 00 [23:39:58]MH_I2C_Read... [23:39:58]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8F [23:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:39:58]wFMCommunicate OK [23:39:58]requested_item fd.num is exist - process it [23:39:58]SAM_PROTO_GetFieldsCounters [23:39:58]wFMCommunicate request_size=4 [23:39:58]MH_SAM_APDU [23:39:58]CAPDU: 80 13 00 00 [23:39:58]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [23:39:58]Write i2c OK [23:39:58]MH_I2C_Read... [23:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:59]Read from MH i2c: E2 [23:39:59]MH_I2C_Read... [23:39:59]Read from MH i2c: E2 62 00 [23:39:59]MH_I2C_Read... [23:39:59]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B5 68 01 00 0E 04 04 00 F9 01 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 31 [23:39:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B5 68 01 00 0E 04 04 00 F9 01 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 [23:39:59]wFMCommunicate OK [23:39:59]SAM_PROTO_GetFieldsCounters done [23:39:59]requested_item shift.num is exist - process it [23:39:59]requested_item shift.opened is exist - process it [23:39:59]req_shift_opened [23:39:59]FM_GetShiftState [23:39:59]SAM_PROTO_GetShiftState [23:39:59]wFMCommunicate request_size=4 [23:39:59]MH_SAM_APDU [23:39:59]CAPDU: 80 13 01 00 [23:39:59]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [23:39:59]Write i2c OK [23:39:59]MH_I2C_Read... [23:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:59]Read from MH i2c: E2 [23:39:59]MH_I2C_Read... [23:39:59]Read from MH i2c: E2 0E 00 [23:39:59]MH_I2C_Read... [23:39:59]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 C9 [23:39:59]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:39:59]wFMCommunicate OK [23:39:59]SAM_PROTO_GetShiftState done [23:39:59]FM_GetShiftState done [23:39:59]req_shift_opened done [23:39:59]requested_item shift.open_date is exist - process it [23:39:59]req_shift_open_date [23:39:59]req_shift_open_date done [23:39:59]produce_requested_data done [23:39:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92341,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:39:59]process_action_free close_receipt [23:39:59]json_value_free [23:39:59]json_value_free done [23:39:59]process_json_proto returns [23:39:59]Send response to host [23:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92341,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:39:59]free response buf [23:39:59]execute_script done [23:39:59]execute_script returns [23:39:59]free content buf [23:39:59]Sock 9.Close socket [23:39:59]Sock 9.Thread stoped [23:40:01]accept exits with 8 [23:40:01]New connection [23:40:01]New thread 3067247972 created [23:40:01]Thread 3067391332 joined [23:40:01]Waiting for new connection... [23:40:01] Sock 8.Parse request [23:40:01]Sock 8.Check first char [23:40:01]Sock 8.First char is OK [23:40:01]request: POST /json_proto HTTP/1.0 [23:40:01]Method: POST [23:40:01]URL: /json_proto [23:40:01]Method is POST - this is cgi request [23:40:01]url: /json_proto [23:40:01]query_string will be loaded in cgi processing [23:40:01]execute_cgi json_proto POST (null) [23:40:01]execute_cgi path=json_proto method=POST [23:40:01]POST find Content-Length [23:40:01]Host: 172.17.57.71:8080 [23:40:01]Content-Length: 617 [23:40:01]Content-Type: application/json [23:40:01] [23:40:01]POST finish read [23:40:01]Found Content-Length = 617 [23:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127269", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:01]execute_script... [23:40: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 : (3)127269", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:01]POST & json_proto [23:40:01]process_json_proto [23:40:01]json parsed OK: [23:40:01]protocol is kg_v1.0 [23:40:01]action value=close_receipt [23:40:01]process_action close_receipt [23:40:01]cmd_close_receipt [23:40:01]MH_GetDate [23:40:01]Write to MH i2c: F0 00 00 BF 02 B0 [23:40:01]Write i2c OK [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 09 00 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 09 00 BF 02 00 51 CD E4 66 33 3A A4 66 98 [23:40:01]GetLastDocTimeStamp 1726270792 [23:40:01]current date 1726270801 [23:40:01]FM_GetShiftState [23:40:01]SAM_PROTO_GetShiftState [23:40:01]wFMCommunicate request_size=4 [23:40:01]MH_SAM_APDU [23:40:01]CAPDU: 80 13 01 00 [23:40:01]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [23:40:01]Write i2c OK [23:40:01]MH_I2C_Read... [23:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:01]Read from MH i2c: E2 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: E2 0E 00 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 CB [23:40:01]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:01]wFMCommunicate OK [23:40:01]SAM_PROTO_GetShiftState done [23:40:01]FM_GetShiftState done [23:40:01]opened in 1726186930 [23:40:01]opened+sec_in_day 1726273330 [23:40:01]quantity*price = 43500 [23:40:01]sum+1 = 43501 [23:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.85 НДС 12% : 46.19 Наличными: 435.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 150 13.09.2024 23:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92342 ФПД: 86525759815629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92342&fm=86525759815629&tin=02508201610067®Number=0000000000091423&sum=43500 0 [23:40:03]StoreToDocumentArchive [23:40:03]shift 505 fd 92342 [23:40:03]save to /storage/0505/doc_00092342 [23:40:03]save last doc name /storage/0505/doc_00092342 to /storage/kkm_last_doc_name [23:40:03]save OK [23:40:03]Clear old archive folders... [23:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=265 [23:40:03]tlvbuf is 013DFE10 [23:40:03]SAM_PROTO_ClearQueue [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 09 00 00 [23:40:03]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]SAM_PROTO_ClearQueue done [23:40:03]KKMCreateOFDPacket [23:40:03]OFDProtocolAddRootSTLVToBuf [23:40:03]FM_MakeSignedData [23:40:03]FM_MakeSignedData [23:40:03]SAM_PROTO_SignData [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 01 02 [23:40:03]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=255 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 51 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 [23:40:03]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 51 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 00 00 23 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:04]Read from MH i2c: E2 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 03 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [23:40:04]RAPDU: 90 00 [23:40:04]wFMCommunicate OK [23:40:04]wFMCommunicate request_size=24 [23:40:04]MH_SAM_APDU [23:40:04]CAPDU: 80 0D 02 02 13 32 10 04 04 00 B6 68 01 00 35 04 06 00 4E B1 D9 2D 7F CD [23:40:04]Write to MH i2c: E2 1B 00 D0 02 80 0D 02 02 13 00 32 10 04 04 00 B6 68 01 00 35 04 06 00 4E B1 D9 2D 7F CD 00 00 6B [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:04]Read from MH i2c: E2 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 03 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [23:40:04]RAPDU: 90 00 [23:40:04]wFMCommunicate OK [23:40:04]wFMCommunicate request_size=4 [23:40:04]MH_SAM_APDU [23:40:04]CAPDU: 80 0D 03 02 [23:40:04]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:04]Read from MH i2c: E2 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 0B 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 0B 00 D1 02 00 A8 E5 63 7F BF D3 A4 2E 90 00 22 [23:40:04]RAPDU: A8 E5 63 7F BF D3 A4 2E 90 00 [23:40:04]wFMCommunicate OK [23:40:04]SAM_PROTO_SignData done [23:40:04]FM_MakeSignedData done [23:40:04]CreateOFDProtocolMessage [23:40:04]wFMCommunicate request_size=4 [23:40:04]MH_SAM_APDU [23:40:04]CAPDU: 80 11 00 00 [23:40:04]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 [23:40:04]MH_I2C_Read... [23:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:04]Read from MH i2c: E2 17 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [23:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:04]wFMCommunicate OK [23:40:04]CreateOFDProtocolMessage done [23:40:04]OFDSenderStorePacket 92342 [23:40:04]StoreOFDPacket docnum=92342 [23:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1D 01 00 00 55 44 15 01 EE 9B 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 51 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 68 01 00 35 04 06 00 4E B1 D9 2D 7F CD A8 E5 63 7F BF D3 A4 2E [23:40:04]CheckFolder [23:40:04]dirname=/storage/ofd_packets [23:40:04]CheckFolder done [23:40:04]ProducePacketName [23:40:04]name=ofd_packets/00092342 [23:40:04]NVStorageSaveData ofd_packets/00092342 [23:40:04]File name is /storage/ofd_packets/00092342 [23:40:04]Write 315 bytes [23:40:04]NVStorageSaveData done [23:40:04]OFDSenderStorePacket done [23:40:04]KKMCreateOFDPacket done [23:40:04]NVStorageSaveData kkm_last_timestamp [23:40:04]File name is /storage/kkm_last_timestamp [23:40:04]Write 4 bytes [23:40:04]NVStorageSaveData done [23:40:04]ExternCall_PrintAddStr [23:40:04]wPrintStart [23:40:04]Write to MH i2c: 01 00 00 D3 02 D5 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [23:40:04]RasterBufferAndPrint [23:40:04]line Счет N : (3)127269 [23:40:04]line ИНН: 02508201610067 [23:40:04]line Контрольно-Кассовый Чек [23:40:04]line ПРОДАЖА [23:40:04]line Товар: 4700001610012 [23:40:05]line Пиво Арпа 0,5л [23:40:05]line 3.000 * 145.00 [23:40:05]line = 435.00 [23:40:05]line НДС 12% НСП 1% [23:40:05]line > о реализуемом товаре [23:40:05]line ИТОГО: 435.00 [23:40:05]line НСП 1% : 3.85 [23:40:05]line НДС 12% : 46.19 [23:40:05]line Наличными: 435.00 [23:40:05]line Безнал.: 0.00 [23:40:05]line Место: АЗС № 5 "Партнер Нефть" [23:40:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:40:05]line СНО: Общий режим [23:40:05]line Чек 150 13.09.2024 23:40 [23:40:05]line Смена: 505 ФФД: 1.0 [23:40:05]line ЗНМ: 03000000022 [23:40:05]line РНМ: 0000000000091423 [23:40:05]line Версия ККМ: 001 [23:40:05]line ФМ: 0000000000874692 [23:40:05]line ФД: 92342 [23:40:05]line ФПД: 86525759815629 [23:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92342&fm=86525759815629&tin=02508201610067®Number=0000000000091423&sum=43500 [23:40:05]line 0 [23:40:05]OFD Sender: Processing packet 92342 [packets to send 63, broken 62] [23:40:05]ProducePacketName [23:40:05]written 0, free lines is 4095 [23:40:05]name=ofd_packets/00092342 [23:40:05]OFD Sender: To server: pG, [23:40:05]CommunicateWithHost lk.salyk.kg:30040 [23:40:05]ConnectInit lk.salyk.kg [23:40:05]Connected sock=10 [23:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1D 01 00 00 55 44 15 01 EE 9B 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 51 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 68 01 00 35 04 06 00 4E B1 D9 2D 7F CD A8 E5 63 7F BF D3 A4 2E [23:40:05]Write to MH i2c: 01 00 00 FB 02 FD [23:40:05]Write i2c OK [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: 01 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: 01 07 00 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 7A 0D 8B [23:40:05]RasterBufferAndPrint [23:40:05]line [23:40:05]line [23:40:05]line [23:40:05]line [23:40:05]line [23:40:05]written 0, free lines is 3513 [23:40:05]MH_Cut [23:40:05]Write to MH i2c: D1 01 00 02 03 01 D7 [23:40:05]Write i2c OK [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: D1 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: D1 01 00 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: D1 01 00 02 03 00 D6 [23:40:05]Write to MH i2c: 01 00 00 03 03 06 [23:40:05]Write i2c OK [23:40:05]MH_I2C_Read... [23:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F9 06 47 00 49 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B6 68 01 00 F4 03 04 00 D1 75 E4 66 B6 04 01 00 00 27 86 ED 76 B2 B4 01 79 [23:40:05]CommunicateWithHost err = 0 [23:40:05]CheckOFDResponse [23:40:05]1017 (14) - 77093643461234 [23:40:05]1041 (16) - 0000000000874692 [23:40:05]1040 (4) - 92342 [23:40:05]1012 (4) - 13.09.2024 17:26 [23:40:05]1206 (1) - 0 [23:40:05]OFD Sender: Remove packet 92342 [23:40:05]ProducePacketName [23:40:05]name=ofd_packets/00092342 [23:40:05]NVStorageDeleteData [23:40:06]*** Cut start [23:40:06]*** Purtial cut [23:40:06]*** Stage 1: CUTSNS_PIN = 1 [23:40:06]OFD Sender: No OFD packet to send [23:40:08]Read from MH i2c: 01 [23:40:08]MH_I2C_Read... [23:40:08]*** Stop cut motor [23:40:08]*** Cut end [23:40:08]Read from MH i2c: 01 07 00 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [23:40:08]process_action close_receipt done [23:40:08]requested_data is exist [23:40:08]produce_requested_data [23:40:08]requested_item fm.sn is exist - process it [23:40:08]wFMCommunicate request_size=4 [23:40:08]MH_SAM_APDU [23:40:08]CAPDU: 80 11 00 00 [23:40:08]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [23:40:08]Write i2c OK [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 [23:40:08]MH_I2C_Read... [23:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:08]Read from MH i2c: E2 17 00 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D8 [23:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:08]wFMCommunicate OK [23:40:08]requested_item fd.num is exist - process it [23:40:08]SAM_PROTO_GetFieldsCounters [23:40:08]wFMCommunicate request_size=4 [23:40:08]MH_SAM_APDU [23:40:08]CAPDU: 80 13 00 00 [23:40:08]Write to MH i2c: E2 08 00 05 03 80 13 00 00 00 00 00 00 84 [23:40:08]Write i2c OK [23:40:08]MH_I2C_Read... [23:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:08]Read from MH i2c: E2 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 62 00 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 62 00 05 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B6 68 01 00 0E 04 04 00 F9 01 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 7E [23:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B6 68 01 00 0E 04 04 00 F9 01 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 [23:40:08]wFMCommunicate OK [23:40:08]SAM_PROTO_GetFieldsCounters done [23:40:08]requested_item shift.num is exist - process it [23:40:08]requested_item shift.opened is exist - process it [23:40:08]req_shift_opened [23:40:08]FM_GetShiftState [23:40:08]SAM_PROTO_GetShiftState [23:40:08]wFMCommunicate request_size=4 [23:40:08]MH_SAM_APDU [23:40:08]CAPDU: 80 13 01 00 [23:40:08]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [23:40:08]Write i2c OK [23:40:08]MH_I2C_Read... [23:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:08]Read from MH i2c: E2 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 0E 00 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 12 [23:40:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:08]wFMCommunicate OK [23:40:08]SAM_PROTO_GetShiftState done [23:40:08]FM_GetShiftState done [23:40:08]req_shift_opened done [23:40:08]requested_item shift.open_date is exist - process it [23:40:08]req_shift_open_date [23:40:08]req_shift_open_date done [23:40:08]produce_requested_data done [23:40:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92342,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:40:08]process_action_free close_receipt [23:40:08]json_value_free [23:40:08]json_value_free done [23:40:08]process_json_proto returns [23:40:08]Send response to host [23:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92342,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:40:08]free response buf [23:40:08]execute_script done [23:40:08]execute_script returns [23:40:08]free content buf [23:40:08]Sock 8.Close socket [23:40:08]Sock 8.Thread stoped [23:40:10]accept exits with 9 [23:40:10]New connection [23:40:10]New thread 3067391332 created [23:40:10]Thread 3067247972 joined [23:40:10]Waiting for new connection... [23:40:10] Sock 9.Parse request [23:40:10]Sock 9.Check first char [23:40:10]Sock 9.First char is OK [23:40:10]request: POST /json_proto HTTP/1.0 [23:40:10]Method: POST [23:40:10]URL: /json_proto [23:40:10]Method is POST - this is cgi request [23:40:10]url: /json_proto [23:40:10]query_string will be loaded in cgi processing [23:40:10]execute_cgi json_proto POST (null) [23:40:10]execute_cgi path=json_proto method=POST [23:40:10]POST find Content-Length [23:40:10]Host: 172.17.57.71:8080 [23:40:10]Content-Length: 1045 [23:40:10]Content-Type: application/json [23:40:10] [23:40:10]POST finish read [23:40:10]Found Content-Length = 1045 [23:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127270", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:10]execute_script... [23: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 : (3)127270", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:10]POST & json_proto [23:40:10]process_json_proto [23:40:10]json parsed OK: [23:40:10]protocol is kg_v1.0 [23:40:10]action value=close_receipt [23:40:10]process_action close_receipt [23:40:10]cmd_close_receipt [23:40:10]MH_GetDate [23:40:10]Write to MH i2c: F0 00 00 07 03 F9 [23:40:10]Write i2c OK [23:40:10]MH_I2C_Read... [23:40:10]Read from MH i2c: F0 [23:40:10]MH_I2C_Read... [23:40:10]Read from MH i2c: F0 09 00 [23:40:10]MH_I2C_Read... [23:40:10]Read from MH i2c: F0 09 00 07 03 00 5A CD E4 66 33 3A A4 66 EA [23:40:10]GetLastDocTimeStamp 1726270801 [23:40:10]current date 1726270810 [23:40:10]FM_GetShiftState [23:40:10]SAM_PROTO_GetShiftState [23:40:10]wFMCommunicate request_size=4 [23:40:10]MH_SAM_APDU [23:40:10]CAPDU: 80 13 01 00 [23:40:10]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [23:40:10]Write i2c OK [23:40:10]MH_I2C_Read... [23:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:10]Read from MH i2c: E2 [23:40:10]MH_I2C_Read... [23:40:10]Read from MH i2c: E2 0E 00 [23:40:10]MH_I2C_Read... [23:40:10]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 14 [23:40:10]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:10]wFMCommunicate OK [23:40:10]SAM_PROTO_GetShiftState done [23:40:10]FM_GetShiftState done [23:40:10]opened in 1726186930 [23:40:10]opened+sec_in_day 1726273330 [23:40:10]quantity*price = 10500 [23:40:10]sum+1 = 10501 [23:40:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 2.000 * 89.00 = 178.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 283.00 НСП 1% : 2.50 НДС 12% : 30.05 Наличными: 283.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 151 13.09.2024 23:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92343 ФПД: 188158268300856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234011&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92343&fm=188158268300856&tin=02508201610067®Number=0000000000091423&sum=28300 0 [23:40:12]StoreToDocumentArchive [23:40:12]shift 505 fd 92343 [23:40:12]save to /storage/0505/doc_00092343 [23:40:12]save last doc name /storage/0505/doc_00092343 to /storage/kkm_last_doc_name [23:40:12]save OK [23:40:12]Clear old archive folders... [23:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=432 [23:40:12]tlvbuf is 0138D760 [23:40:12]SAM_PROTO_ClearQueue [23:40:12]wFMCommunicate request_size=4 [23:40:12]MH_SAM_APDU [23:40:12]CAPDU: 80 09 00 00 [23:40:12]Write to MH i2c: E2 08 00 15 03 80 09 00 00 00 00 00 00 8A [23:40:12]Write i2c OK [23:40:12]MH_I2C_Read... [23:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:12]Read from MH i2c: E2 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 03 00 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [23:40:12]RAPDU: 90 00 [23:40:12]wFMCommunicate OK [23:40:12]SAM_PROTO_ClearQueue done [23:40:12]KKMCreateOFDPacket [23:40:12]OFDProtocolAddRootSTLVToBuf [23:40:12]FM_MakeSignedData [23:40:12]FM_MakeSignedData [23:40:12]SAM_PROTO_SignData [23:40:12]wFMCommunicate request_size=4 [23:40:12]MH_SAM_APDU [23:40:12]CAPDU: 80 0D 01 02 [23:40:12]Write to MH i2c: E2 08 00 16 03 80 0D 01 02 00 00 00 00 92 [23:40:13]Write i2c OK [23:40:13]MH_I2C_Read... [23:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:13]Read from MH i2c: E2 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 03 00 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [23:40:13]RAPDU: 90 00 [23:40:13]wFMCommunicate OK [23:40:13]wFMCommunicate request_size=255 [23:40:13]MH_SAM_APDU [23:40:13]CAPDU: 80 0D 02 02 FA 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 [23:40:13]Write to MH i2c: E2 02 01 17 03 80 0D 02 02 FA 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 00 00 5F [23:40:13]Write i2c OK [23:40:13]MH_I2C_Read... [23:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:13]Read from MH i2c: E2 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 03 00 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [23:40:13]RAPDU: 90 00 [23:40:13]wFMCommunicate OK [23:40:13]wFMCommunicate request_size=191 [23:40:13]MH_SAM_APDU [23:40:13]CAPDU: 80 0D 02 02 BA 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 5B CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 68 01 00 35 04 06 00 AB 21 02 BE 5E 38 [23:40:14]Write to MH i2c: E2 C2 00 18 03 80 0D 02 02 BA 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 5B CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 68 01 00 35 04 06 00 AB 21 02 BE 5E 38 00 00 C5 [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:14]Read from MH i2c: E2 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 03 00 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [23:40:14]RAPDU: 90 00 [23:40:14]wFMCommunicate OK [23:40:14]wFMCommunicate request_size=4 [23:40:14]MH_SAM_APDU [23:40:14]CAPDU: 80 0D 03 02 [23:40:14]Write to MH i2c: E2 08 00 19 03 80 0D 03 02 00 00 00 00 97 [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:14]Read from MH i2c: E2 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 0B 00 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 0B 00 19 03 00 C0 DE B9 66 A3 03 A0 93 90 00 2E [23:40:14]RAPDU: C0 DE B9 66 A3 03 A0 93 90 00 [23:40:14]wFMCommunicate OK [23:40:14]SAM_PROTO_SignData done [23:40:14]FM_MakeSignedData done [23:40:14]CreateOFDProtocolMessage [23:40:14]wFMCommunicate request_size=4 [23:40:14]MH_SAM_APDU [23:40:14]CAPDU: 80 11 00 00 [23:40:14]Write to MH i2c: E2 08 00 1A 03 80 11 00 00 00 00 00 00 97 [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:14]Read from MH i2c: E2 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 17 00 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 17 00 1A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EE [23:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:14]wFMCommunicate OK [23:40:14]CreateOFDProtocolMessage done [23:40:14]OFDSenderStorePacket 92343 [23:40:14]StoreOFDPacket docnum=92343 [23:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C4 01 00 00 2C 53 BC 01 EE 7E 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 5B CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 68 01 00 35 04 06 00 AB 21 02 BE 5E 38 C0 DE B9 66 A3 03 A0 93 [23:40:14]CheckFolder [23:40:14]dirname=/storage/ofd_packets [23:40:14]CheckFolder done [23:40:14]ProducePacketName [23:40:14]name=ofd_packets/00092343 [23:40:14]NVStorageSaveData ofd_packets/00092343 [23:40:14]File name is /storage/ofd_packets/00092343 [23:40:14]Write 482 bytes [23:40:14]NVStorageSaveData done [23:40:14]OFDSenderStorePacket done [23:40:14]KKMCreateOFDPacket done [23:40:14]NVStorageSaveData kkm_last_timestamp [23:40:14]File name is /storage/kkm_last_timestamp [23:40:14]Write 4 bytes [23:40:14]NVStorageSaveData done [23:40:14]ExternCall_PrintAddStr [23:40:14]wPrintStart [23:40:14]Write to MH i2c: 01 00 00 1B 03 1E [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: 01 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: 01 07 00 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [23:40:14]RasterBufferAndPrint [23:40:14]line Счет N : (3)127270 [23:40:14]line ИНН: 02508201610067 [23:40:14]line Контрольно-Кассовый Чек [23:40:14]line ПРОДАЖА [23:40:14]line Товар: 5449000027474 [23:40:14]line Напиток FuzeTea зел чай манго,ромашка 1л [23:40:14]line 1.000 * 105.00 [23:40:14]line = 105.00 [23:40:14]line НДС 12% НСП 1% [23:40:14]line > о реализуемом товаре [23:40:14]line Товар: 5000159390729 [23:40:14]line Шок Батончик Твикс Экстра 82г [23:40:14]line 2.000 * 89.00 [23:40:14]line = 178.00 [23:40:14]line НДС 12% НСП 1% [23:40:14]line > о реализуемом товаре [23:40:14]line ИТОГО: 283.00 [23:40:14]line НСП 1% : 2.50 [23:40:14]line НДС 12% : 30.05 [23:40:14]line Наличными: 283.00 [23:40:14]line Безнал.: 0.00 [23:40:14]line Место: АЗС № 5 "Партнер Нефть" [23:40:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:40:14]line СНО: Общий режим [23:40:14]line Чек 151 13.09.2024 23:40 [23:40:14]line Смена: 505 ФФД: 1.0 [23:40:14]line ЗНМ: 03000000022 [23:40:14]line РНМ: 0000000000091423 [23:40:14]line Версия ККМ: 001 [23:40:14]line ФМ: 0000000000874692 [23:40:14]line ФД: 92343 [23:40:14]line ФПД: 188158268300856 [23:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234011&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92343&fm=188158268300856&tin=02508201610067®Number=0000000000091423&sum=28300 [23:40:14]OFD Sender: Processing packet 92343 [packets to send 63, broken 62] [23:40:14]ProducePacketName [23:40:14]name=ofd_packets/00092343 [23:40:14]OFD Sender: To server: pG, [23:40:14]CommunicateWithHost lk.salyk.kg:30040 [23:40:15]ConnectInit lk.salyk.kg [23:40:15]line 0 [23:40:15]written 0, free lines is 4095 [23:40:15]Connected sock=10 [23:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C4 01 00 00 2C 53 BC 01 EE 7E 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C Write to MH i2c: 6E 01 00 00 00 00 00 4B 00 03 EB 4E 03 [23:40:15]26 Write i2c OK [23:40:15]00 MH_I2C_Read... [23:40:15]EF 03 0F 00 F6 03 01 00 Read from MH i2c: 01 01 F7 [23:40:15]03 MH_I2C_Read... [23:40:15]06 00 FA 00 00 00 00 00 EE 03 Read from MH i2c: 0F 01 00 07 F2 00 03 [23:40:15]01 MH_I2C_Read... [23:40:15]00 01 F3 03 Read from MH i2c: 06 01 00 07 BD 00 0B 4B 00 03 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 00 00 00 00 00 2F 1F 0D 04 91 02 [23:40:15]00 01 00 12 04 04 00 97 00 00 RasterBufferAndPrint [23:40:15]00 line [23:40:15]F4 line [23:40:15]03 line [23:40:15]04 line [23:40:15]line [23:40:15]00 5B CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 68 01 00 35 04 06 00 AB 21 02 BE 5E 38 C0 DE B9 66 A3 03 A0 93 [23:40:15]written 0, free lines is 3605 [23:40:15]MH_Cut [23:40:15]Write to MH i2c: D1 01 00 52 03 01 27 [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: D1 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: D1 01 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: D1 01 00 52 03 00 26 [23:40:15]Write to MH i2c: 01 00 00 53 03 56 [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C9 00 47 00 DC 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B7 68 01 00 F4 03 04 00 DB 75 E4 66 B6 04 01 00 00 68 C7 CC 89 7B 6A 8C *** Cut start [23:40:16]76 *** Purtial cut [23:40:16] [23:40:16]CommunicateWithHost err = 0 [23:40:16]CheckOFDResponse [23:40:16]1017 (14) - 77093643461234 [23:40:16]*** Stage 1: CUTSNS_PIN = 1 [23:40:16]1041 (16) - 0000000000874692 [23:40:16]1040 (4) - 92343 [23:40:16]1012 (4) - 13.09.2024 17:26 [23:40:16]1206 (1) - 0 [23:40:16]OFD Sender: Remove packet 92343 [23:40:16]ProducePacketName [23:40:16]name=ofd_packets/00092343 [23:40:16]NVStorageDeleteData [23:40:17]OFD Sender: No OFD packet to send [23:40:18]Read from MH i2c: *** Stop cut motor [23:40:18]01 *** Cut end [23:40:18] [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: 01 07 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [23:40:18]process_action close_receipt done [23:40:18]requested_data is exist [23:40:18]produce_requested_data [23:40:18]requested_item fm.sn is exist - process it [23:40:18]wFMCommunicate request_size=4 [23:40:18]MH_SAM_APDU [23:40:18]CAPDU: 80 11 00 00 [23:40:18]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [23:40:18]Write i2c OK [23:40:18]MH_I2C_Read... [23:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:18]Read from MH i2c: E2 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 17 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 28 [23:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:18]wFMCommunicate OK [23:40:18]requested_item fd.num is exist - process it [23:40:18]SAM_PROTO_GetFieldsCounters [23:40:18]wFMCommunicate request_size=4 [23:40:18]MH_SAM_APDU [23:40:18]CAPDU: 80 13 00 00 [23:40:18]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [23:40:18]Write i2c OK [23:40:18]MH_I2C_Read... [23:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:18]Read from MH i2c: E2 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 62 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 62 00 55 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B7 68 01 00 0E 04 04 00 F9 01 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 D2 [23: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B7 68 01 00 0E 04 04 00 F9 01 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 [23:40:18]wFMCommunicate OK [23:40:18]SAM_PROTO_GetFieldsCounters done [23:40:18]requested_item shift.num is exist - process it [23:40:18]requested_item shift.opened is exist - process it [23:40:18]req_shift_opened [23:40:18]FM_GetShiftState [23:40:18]SAM_PROTO_GetShiftState [23:40:18]wFMCommunicate request_size=4 [23:40:18]MH_SAM_APDU [23:40:18]CAPDU: 80 13 01 00 [23:40:18]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [23:40:18]Write i2c OK [23:40:18]MH_I2C_Read... [23:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:18]Read from MH i2c: E2 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 0E 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 62 [23:40:18]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:18]wFMCommunicate OK [23:40:18]SAM_PROTO_GetShiftState done [23:40:18]FM_GetShiftState done [23:40:18]req_shift_opened done [23:40:18]requested_item shift.open_date is exist - process it [23:40:18]req_shift_open_date [23:40:18]req_shift_open_date done [23:40:18]produce_requested_data done [23:40:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92343,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:40:18]process_action_free close_receipt [23:40:18]json_value_free [23:40:18]json_value_free done [23:40:18]process_json_proto returns [23:40:18]Send response to host [23:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92343,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:40:18]free response buf [23:40:18]execute_script done [23:40:18]execute_script returns [23:40:18]free content buf [23:40:18]Sock 9.Close socket [23:40:18]Sock 9.Thread stoped [23:40:20]accept exits with 8 [23:40:20]New connection [23:40:20]New thread 3067247972 created [23:40:20]Thread 3067391332 joined [23:40:20]Waiting for new connection... [23:40:20] Sock 8.Parse request [23:40:20]Sock 8.Check first char [23:40:20]Sock 8.First char is OK [23:40:20]request: POST /json_proto HTTP/1.0 [23:40:20]Method: POST [23:40:20]URL: /json_proto [23:40:20]Method is POST - this is cgi request [23:40:20]url: /json_proto [23:40:20]query_string will be loaded in cgi processing [23:40:20]execute_cgi json_proto POST (null) [23:40:20]execute_cgi path=json_proto method=POST [23:40:20]POST find Content-Length [23:40:20]Host: 172.17.57.71:8080 [23:40:20]Content-Length: 831 [23:40:20]Content-Type: application/json [23:40:20] [23:40:20]POST finish read [23:40:20]Found Content-Length = 831 [23:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127271", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:20]execute_script... [23:40: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 : (3)127271", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:20]POST & json_proto [23:40:20]process_json_proto [23:40:20]json parsed OK: [23:40:20]protocol is kg_v1.0 [23:40:20]action value=close_receipt [23:40:20]process_action close_receipt [23:40:20]cmd_close_receipt [23:40:20]MH_GetDate [23:40:20]Write to MH i2c: F0 00 00 57 03 49 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: F0 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: F0 09 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: F0 09 00 57 03 00 64 CD E4 66 33 3A A4 66 44 [23:40:20]GetLastDocTimeStamp 1726270811 [23:40:20]current date 1726270820 [23:40:20]FM_GetShiftState [23:40:20]SAM_PROTO_GetShiftState [23:40:20]wFMCommunicate request_size=4 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 13 01 00 [23:40:20]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 0E 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 64 [23:40:20]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:20]wFMCommunicate OK [23:40:20]SAM_PROTO_GetShiftState done [23:40:20]FM_GetShiftState done [23:40:20]opened in 1726186930 [23:40:20]opened+sec_in_day 1726273330 [23:40:20]quantity*price = 7700 [23:40:20]sum+1 = 7701 [23:40:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 152 13.09.2024 23:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92344 ФПД: 138242057952478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234021&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92344&fm=138242057952478&tin=02508201610067®Number=0000000000091423&sum=7700 0 [23:40:22]StoreToDocumentArchive [23:40:22]shift 505 fd 92344 [23:40:22]save to /storage/0505/doc_00092344 [23:40:22]save last doc name /storage/0505/doc_00092344 to /storage/kkm_last_doc_name [23:40:22]save OK [23:40:22]Clear old archive folders... [23:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=293 [23:40:22]tlvbuf is 0144CEC0 [23:40:22]SAM_PROTO_ClearQueue [23:40:22]wFMCommunicate request_size=4 [23:40:22]MH_SAM_APDU [23:40:22]CAPDU: 80 09 00 00 [23:40:22]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [23:40:22]Write i2c OK [23:40:22]MH_I2C_Read... [23:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:22]Read from MH i2c: E2 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 03 00 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [23:40:22]RAPDU: 90 00 [23:40:22]wFMCommunicate OK [23:40:22]SAM_PROTO_ClearQueue done [23:40:22]KKMCreateOFDPacket [23:40:22]OFDProtocolAddRootSTLVToBuf [23:40:22]FM_MakeSignedData [23:40:22]FM_MakeSignedData [23:40:22]SAM_PROTO_SignData [23:40:22]wFMCommunicate request_size=4 [23:40:22]MH_SAM_APDU [23:40:22]CAPDU: 80 0D 01 02 [23:40:22]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [23:40:22]Write i2c OK [23:40:22]MH_I2C_Read... [23:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:22]Read from MH i2c: E2 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 03 00 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [23:40:22]RAPDU: 90 00 [23:40:22]wFMCommunicate OK [23:40:22]wFMCommunicate request_size=255 [23:40:22]MH_SAM_APDU [23:40:22]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [23:40:22]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 85 [23:40:23]Write i2c OK [23:40:23]MH_I2C_Read... [23:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:23]Read from MH i2c: E2 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 03 00 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [23:40:23]RAPDU: 90 00 [23:40:23]wFMCommunicate OK [23:40:23]wFMCommunicate request_size=52 [23:40:23]MH_SAM_APDU [23:40:23]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 68 01 00 35 04 06 00 7D BA FC C1 DC DE [23:40:23]Write to MH i2c: E2 37 00 68 03 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 68 01 00 35 04 06 00 7D BA FC C1 DC DE 00 00 75 [23:40:23]Write i2c OK [23:40:23]MH_I2C_Read... [23:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:23]Read from MH i2c: E2 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 03 00 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [23:40:23]RAPDU: 90 00 [23:40:23]wFMCommunicate OK [23:40:23]wFMCommunicate request_size=4 [23:40:23]MH_SAM_APDU [23:40:23]CAPDU: 80 0D 03 02 [23:40:23]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [23:40:23]Write i2c OK [23:40:23]MH_I2C_Read... [23:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:23]Read from MH i2c: E2 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 0B 00 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 0B 00 69 03 00 2C 5A 88 64 0E 10 95 AA 90 00 B7 [23:40:23]RAPDU: 2C 5A 88 64 0E 10 95 AA 90 00 [23:40:23]wFMCommunicate OK [23:40:23]SAM_PROTO_SignData done [23:40:23]FM_MakeSignedData done [23:40:23]CreateOFDProtocolMessage [23:40:23]wFMCommunicate request_size=4 [23:40:23]MH_SAM_APDU [23:40:23]CAPDU: 80 11 00 00 [23:40:23]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [23:40:23]Write i2c OK [23:40:23]MH_I2C_Read... [23:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:24]Read from MH i2c: E2 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: E2 17 00 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3E [23:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:24]wFMCommunicate OK [23:40:24]CreateOFDProtocolMessage done [23:40:24]OFDSenderStorePacket 92344 [23:40:24]StoreOFDPacket docnum=92344 [23:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 88 35 31 01 CF DC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 68 01 00 35 04 06 00 7D BA FC C1 DC DE 2C 5A 88 64 0E 10 95 AA [23:40:24]CheckFolder [23:40:24]dirname=/storage/ofd_packets [23:40:24]CheckFolder done [23:40:24]ProducePacketName [23:40:24]name=ofd_packets/00092344 [23:40:24]NVStorageSaveData ofd_packets/00092344 [23:40:24]File name is /storage/ofd_packets/00092344 [23:40:24]Write 343 bytes [23:40:24]NVStorageSaveData done [23:40:24]OFDSenderStorePacket done [23:40:24]KKMCreateOFDPacket done [23:40:24]NVStorageSaveData kkm_last_timestamp [23:40:24]File name is /storage/kkm_last_timestamp [23:40:24]Write 4 bytes [23:40:24]NVStorageSaveData done [23:40:24]ExternCall_PrintAddStr [23:40:24]wPrintStart [23:40:24]Write to MH i2c: 01 00 00 6B 03 6E [23:40:24]Write i2c OK [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 07 00 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [23:40:24]RasterBufferAndPrint [23:40:24]line Счет N : (3)127271 [23:40:24]line ИНН: 02508201610067 [23:40:24]line Контрольно-Кассовый Чек [23:40:24]line ПРОДАЖА [23:40:24]line Товар: 4700000480050 [23:40:24]line Напиток Nitro Energy эн green ж/б 0,45л [23:40:24]line 1.000 * 77.00 [23:40:24]line = 77.00 [23:40:24]line НДС 12% НСП 1% [23:40:24]line > о реализуемом товаре [23:40:24]line ИТОГО: 77.00 [23:40:24]line НСП 1% : 0.68 [23:40:24]line НДС 12% : 8.18 [23:40:24]line Наличными: 0.00 [23:40:24]line Безнал.: 77.00 [23:40:24]line Место: АЗС № 5 "Партнер Нефть" [23:40:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:40:24]line СНО: Общий режим [23:40:24]line Чек 152 13.09.2024 23:40 [23:40:24]line Смена: 505 ФФД: 1.0 [23:40:24]line ЗНМ: 03000000022 [23:40:24]line РНМ: 0000000000091423 [23:40:24]line Версия ККМ: 001 [23:40:24]line Платежная система: Бакай Банк [23:40:24]line ФМ: 0000000000874692 [23:40:24]line ФД: 92344 [23:40:24]line ФПД: 138242057952478 [23:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234021&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92344&fm=138242057952478&tin=02508201610067®Number=0000000000091423&sum=7700 [23:40:24]line 0 [23:40:24]OFD Sender: Processing packet 92344 [packets to send 63, broken 62] [23:40:24]ProducePacketName [23:40:24]name=ofd_packets/00092344 [23:40:24]OFD Sender: To server: pG, [23:40:24]CommunicateWithHost lk.salyk.kg:30040 [23:40:24]ConnectInit lk.salyk.kg [23:40:24]written 0, free lines is 4095 [23:40:24]Connected sock=6 [23:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 88 35 31 01 CF DC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 68 01 00 35 04 06 00 7D BA FC C1 DC DE 2C 5A 88 64 0E 10 95 AA [23:40:24]Write to MH i2c: 01 00 00 96 03 99 [23:40:24]Write i2c OK [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 07 00 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 B7 0D 64 [23:40:24]RasterBufferAndPrint [23:40:24]line [23:40:24]line [23:40:24]line [23:40:24]line [23:40:24]line [23:40:24]written 0, free lines is 3584 [23:40:24]MH_Cut [23:40:24]Write to MH i2c: D1 01 00 9D 03 01 72 [23:40:24]Write i2c OK [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: D1 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: D1 01 00 [23:40:24]MH_I2C_Read... [23:40:24]Read from MH i2c: D1 01 00 9D 03 00 71 [23:40:24]Write to MH i2c: 01 00 00 9E 03 A1 [23:40:24]Write i2c OK [23:40:24]MH_I2C_Read... [23:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 23 85 47 00 AD C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B8 68 01 00 F4 03 04 00 E4 75 E4 66 B6 04 01 00 00 E4 56 D7 51 86 89 A9 34 [23:40:25]CommunicateWithHost err = 0 [23:40:25]CheckOFDResponse [23:40:25]1017 (14) - 77093643461234 [23:40:25]1041 (16) - 0000000000874692 [23:40:25]1040 (4) - 92344 [23:40:25]1012 (4) - 13.09.2024 17:27 [23:40:25]1206 (1) - 0 [23:40:25]OFD Sender: Remove packet 92344 [23:40:25]ProducePacketName [23:40:25]name=ofd_packets/00092344 [23:40:25]NVStorageDeleteData [23:40:25]*** Cut start [23:40:25]*** Purtial cut [23:40:25]*** Stage 1: CUTSNS_PIN = 1 [23:40:25]OFD Sender: No OFD packet to send [23:40:27]Read from MH i2c: 01 [23:40:27]MH_I2C_Read... [23:40:27]*** Stop cut motor [23:40:27]*** Cut end [23:40:27]Read from MH i2c: 01 07 00 [23:40:27]MH_I2C_Read... [23:40:27]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [23:40:27]process_action close_receipt done [23:40:27]requested_data is exist [23:40:27]produce_requested_data [23:40:27]requested_item fm.sn is exist - process it [23:40:27]wFMCommunicate request_size=4 [23:40:27]MH_SAM_APDU [23:40:27]CAPDU: 80 11 00 00 [23:40:27]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [23:40:27]Write i2c OK [23:40:27]MH_I2C_Read... [23:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:27]Read from MH i2c: E2 [23:40:27]MH_I2C_Read... [23:40:27]Read from MH i2c: E2 17 00 [23:40:27]MH_I2C_Read... [23:40:27]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 73 [23:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:27]wFMCommunicate OK [23:40:27]requested_item fd.num is exist - process it [23:40:27]SAM_PROTO_GetFieldsCounters [23:40:27]wFMCommunicate request_size=4 [23:40:27]MH_SAM_APDU [23:40:27]CAPDU: 80 13 00 00 [23:40:27]Write to MH i2c: E2 08 00 A0 03 80 13 00 00 00 00 00 00 1F [23:40:27]Write i2c OK [23:40:27]MH_I2C_Read... [23:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:27]Read from MH i2c: E2 [23:40:27]MH_I2C_Read... [23:40:27]Read from MH i2c: E2 62 00 [23:40:27]MH_I2C_Read... [23:40:27]Read from MH i2c: E2 62 00 A0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B8 68 01 00 0E 04 04 00 F9 01 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 21 [23: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B8 68 01 00 0E 04 04 00 F9 01 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 [23:40:28]wFMCommunicate OK [23:40:28]SAM_PROTO_GetFieldsCounters done [23:40:28]requested_item shift.num is exist - process it [23:40:28]requested_item shift.opened is exist - process it [23:40:28]req_shift_opened [23:40:28]FM_GetShiftState [23:40:28]SAM_PROTO_GetShiftState [23:40:28]wFMCommunicate request_size=4 [23:40:28]MH_SAM_APDU [23:40:28]CAPDU: 80 13 01 00 [23:40:28]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [23:40:28]Write i2c OK [23:40:28]MH_I2C_Read... [23:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:28]Read from MH i2c: E2 [23:40:28]MH_I2C_Read... [23:40:28]Read from MH i2c: E2 0E 00 [23:40:28]MH_I2C_Read... [23:40:28]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AD [23:40:28]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:28]wFMCommunicate OK [23:40:28]SAM_PROTO_GetShiftState done [23:40:28]FM_GetShiftState done [23:40:28]req_shift_opened done [23:40:28]requested_item shift.open_date is exist - process it [23:40:28]req_shift_open_date [23:40:28]req_shift_open_date done [23:40:28]produce_requested_data done [23:40:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92344,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:40:28]process_action_free close_receipt [23:40:28]json_value_free [23:40:28]json_value_free done [23:40:28]process_json_proto returns [23:40:28]Send response to host [23:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92344,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:40:28]free response buf [23:40:28]execute_script done [23:40:28]execute_script returns [23:40:28]free content buf [23:40:28]Sock 8.Close socket [23:40:28]Sock 8.Thread stoped [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:48]accept exits with 9 [23:40:48]New connection [23:40:48]New thread 3067391332 created [23:40:48]Thread 3067247972 joined [23:40:48]Waiting for new connection... [23:40:48] Sock 9.Parse request [23:40:48]Sock 9.Check first char [23:40:48]Sock 9.First char is OK [23:40:48]request: POST /json_proto HTTP/1.0 [23:40:48]Method: POST [23:40:48]URL: /json_proto [23:40:48]Method is POST - this is cgi request [23:40:48]url: /json_proto [23:40:48]query_string will be loaded in cgi processing [23:40:48]execute_cgi json_proto POST (null) [23:40:48]execute_cgi path=json_proto method=POST [23:40:48]POST find Content-Length [23:40:48]Host: 172.17.57.71:8080 [23:40:48]Content-Length: 913 [23:40:48]Content-Type: application/json [23:40:48] [23:40:48]POST finish read [23:40:48]Found Content-Length = 913 [23:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92261, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127193", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "92261" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:48]execute_script... [23:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92261, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127193", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "92261" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:48]POST & json_proto [23:40:48]process_json_proto [23:40:48]json parsed OK: [23:40:48]protocol is kg_v1.0 [23:40:48]action value=close_receipt [23:40:48]process_action close_receipt [23:40:48]cmd_close_receipt [23:40:48]MH_GetDate [23:40:48]Write to MH i2c: F0 00 00 A2 03 94 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: F0 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: F0 09 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: F0 09 00 A2 03 00 80 CD E4 66 33 3A A4 66 AB [23:40:48]GetLastDocTimeStamp 1726270821 [23:40:48]current date 1726270848 [23:40:48]FM_GetShiftState [23:40:48]SAM_PROTO_GetShiftState [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 13 01 00 [23:40:48]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0E 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 AF [23:40:48]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:48]wFMCommunicate OK [23:40:48]SAM_PROTO_GetShiftState done [23:40:48]FM_GetShiftState done [23:40:48]opened in 1726186930 [23:40:48]opened+sec_in_day 1726273330 [23:40:48]quantity*price = 14400 [23:40:48]sum+1 = 14401 [23:40:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329487 Напиток Pepsi 1,5л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 319.00 НСП 1% : 2.82 НДС 12% : 33.87 Наличными: 319.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 153 13.09.2024 23:40 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92261 ФМ осн.: 0000000000874692 ФМ: 0000000000874692 ФД: 92345 ФПД: 183839281534626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234049&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92345&fm=183839281534626&tin=02508201610067®Number=0000000000091423&sum=31900 92261 [23:40:50]StoreToDocumentArchive [23:40:50]shift 505 fd 92345 [23:40:50]save to /storage/0505/doc_00092345 [23:40:50]save last doc name /storage/0505/doc_00092345 to /storage/kkm_last_doc_name [23:40:50]OFD Sender: No OFD packet to send [23:40:50]save OK [23:40:50]Clear old archive folders... [23:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=399 [23:40:50]tlvbuf is 01348F10 [23:40:50]SAM_PROTO_ClearQueue [23:40:50]wFMCommunicate request_size=4 [23:40:50]MH_SAM_APDU [23:40:50]CAPDU: 80 09 00 00 [23:40:50]Write to MH i2c: E2 08 00 B2 03 80 09 00 00 00 00 00 00 27 [23:40:50]Write i2c OK [23:40:50]MH_I2C_Read... [23:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:50]Read from MH i2c: E2 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: E2 03 00 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [23:40:50]RAPDU: 90 00 [23:40:50]wFMCommunicate OK [23:40:50]SAM_PROTO_ClearQueue done [23:40:50]KKMCreateOFDPacket [23:40:50]OFDProtocolAddRootSTLVToBuf [23:40:50]FM_MakeSignedData [23:40:50]FM_MakeSignedData [23:40:50]SAM_PROTO_SignData [23:40:50]wFMCommunicate request_size=4 [23:40:50]MH_SAM_APDU [23:40:50]CAPDU: 80 0D 01 02 [23:40:51]Write to MH i2c: E2 08 00 B3 03 80 0D 01 02 00 00 00 00 2F [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=255 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 02 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 [23:40:51]Write to MH i2c: E2 02 01 B4 03 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 02 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 CF [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=158 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 02 02 99 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 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 81 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 65 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 68 01 00 35 04 06 00 A7 33 6B 12 56 A2 [23:40:52]Write to MH i2c: E2 A1 00 B5 03 80 0D 02 02 99 00 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 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 81 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 65 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 68 01 00 35 04 06 00 A7 33 6B 12 56 A2 00 00 F2 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [23:40:52]RAPDU: 90 00 [23:40:52]wFMCommunicate OK [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 0D 03 02 [23:40:52]Write to MH i2c: E2 08 00 B6 03 80 0D 03 02 00 00 00 00 34 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0B 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0B 00 B6 03 00 65 93 C1 83 17 A8 6C 3A 90 00 D6 [23:40:52]RAPDU: 65 93 C1 83 17 A8 6C 3A 90 00 [23:40:52]wFMCommunicate OK [23:40:52]SAM_PROTO_SignData done [23:40:52]FM_MakeSignedData done [23:40:52]CreateOFDProtocolMessage [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 11 00 00 [23:40:52]Write to MH i2c: E2 08 00 B7 03 80 11 00 00 00 00 00 00 34 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 B7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8B [23:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:52]wFMCommunicate OK [23:40:52]CreateOFDProtocolMessage done [23:40:52]OFDSenderStorePacket 92345 [23:40:52]StoreOFDPacket docnum=92345 [23:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 DD AF 9B 01 67 39 5A 03 01 00 03 00 8F 01 1E 04 01 00 02 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 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 81 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 65 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 68 01 00 35 04 06 00 A7 33 6B 12 56 A2 65 93 C1 83 17 A8 6C 3A [23:40:52]CheckFolder [23:40:52]dirname=/storage/ofd_packets [23:40:52]CheckFolder done [23:40:52]ProducePacketName [23:40:52]name=ofd_packets/00092345 [23:40:52]NVStorageSaveData ofd_packets/00092345 [23:40:52]File name is /storage/ofd_packets/00092345 [23:40:52]Write 449 bytes [23:40:52]NVStorageSaveData done [23:40:52]OFDSenderStorePacket done [23:40:52]KKMCreateOFDPacket done [23:40:52]NVStorageSaveData kkm_last_timestamp [23:40:52]File name is /storage/kkm_last_timestamp [23:40:52]Write 4 bytes [23:40:52]NVStorageSaveData done [23:40:52]ExternCall_PrintAddStr [23:40:52]wPrintStart [23:40:52]Write to MH i2c: 01 00 00 B8 03 BB [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [23:40:52]RasterBufferAndPrint [23:40:52]line Счет N : (3)127193 [23:40:52]line ИНН: 02508201610067 [23:40:52]line Контрольно-Кассовый Чек [23:40:52]line ВОЗВРАТ ПРОДАЖИ [23:40:52]line Товар: 48743570 [23:40:52]line Сигареты Winston XStyle Blue [23:40:52]line 1.000 * 144.00 [23:40:52]line = 144.00 [23:40:52]line НДС 12% НСП 1% [23:40:52]line > о реализуемом товаре [23:40:52]line Товар: 4870002329487 [23:40:52]line Напиток Pepsi 1,5л [23:40:52]line 1.000 * 175.00 [23:40:52]line = 175.00 [23:40:52]line НДС 12% НСП 1% [23:40:52]line > о реализуемом товаре [23:40:52]line ИТОГО: 319.00 [23:40:52]line НСП 1% : 2.82 [23:40:52]line НДС 12% : 33.87 [23:40:52]line Наличными: 319.00 [23:40:52]line Безнал.: 0.00 [23:40:52]line Место: АЗС № 5 "Партнер Нефть" [23:40:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:40:52]line СНО: Общий режим [23:40:52]line Чек 153 13.09.2024 23:40 [23:40:52]line Смена: 505 ФФД: 1.0 [23:40:52]line ЗНМ: 03000000022 [23:40:52]line РНМ: 0000000000091423 [23:40:52]line Версия ККМ: 001 [23:40:52]line ФД осн.: 92261 [23:40:52]line ФМ осн.: 0000000000874692 [23:40:52]line ФМ: 0000000000874692 [23:40:52]line ФД: 92345 [23:40:52]line ФПД: 183839281534626 [23:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234049&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92345&fm=183839281534626&tin=02508201610067®Number=0000000000091423&sum=31900 [23:40:52]line 92261 [23:40:52]OFD Sender: Processing packet 92345 [packets to send 63, broken 62] [23:40:52]ProducePacketName [23:40:52]name=ofd_packets/00092345 [23:40:52]OFD Sender: To server: pG, [23:40:52]CommunicateWithHost lk.salyk.kg:30040 [23:40:52]ConnectInit lk.salyk.kg [23:40:52]written 0, free lines is 4095 [23:40:53]Connected sock=10 [23:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 DD AF 9B 01 67 39 5A 03 01 00 03 00 8F 01 1E 04 01 00 02 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 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 81 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 65 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 Write to MH i2c: 10 01 04 00 04 00 00 E8 B9 03 68 EB 01 [23:40:53]00 Write i2c OK [23:40:53]35 MH_I2C_Read... [23:40:53]04 06 00 A7 33 6B 12 Read from MH i2c: 56 01 A2 [23:40:53]65 MH_I2C_Read... [23:40:53]93 C1 83 17 A8 6C 3A [23:40:53]Read from MH i2c: 01 07 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 AB 0D AA [23:40:53]RasterBufferAndPrint [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]written 0, free lines is 3603 [23:40:53]MH_Cut [23:40:53]Write to MH i2c: D1 01 00 EF 03 01 C4 [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 01 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 01 00 EF 03 00 C3 [23:40:53]Write to MH i2c: 01 00 00 F0 03 F3 [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 68 34 47 00 5A E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 B9 68 01 00 F4 03 04 00 01 76 E4 66 B6 04 01 00 00 25 36 A5 52 42 C2 1C 93 [23:40:54]CommunicateWithHost err = 0 [23:40:54]CheckOFDResponse [23:40:54]1017 (14) - 77093643461234 [23:40:54]1041 (16) - 0000000000874692 [23:40:54]1040 (4) - 92345 [23:40:54]1012 (4) - 13.09.2024 17:27 [23:40:54]1206 (1) - 0 [23:40:54]OFD Sender: Remove packet 92345 [23:40:54]ProducePacketName [23:40:54]name=ofd_packets/00092345 [23:40:54]NVStorageDeleteData [23:40:54]*** Cut start [23:40:54]*** Purtial cut [23:40:54]*** Stage 1: CUTSNS_PIN = 1 [23:40:54]OFD Sender: No OFD packet to send [23:40:56]Read from MH i2c: 01 [23:40:56]MH_I2C_Read... [23:40:56]*** Stop cut motor [23:40:56]*** Cut end [23:40:56]Read from MH i2c: 01 07 00 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [23:40:56]process_action close_receipt done [23:40:56]requested_data is exist [23:40:56]produce_requested_data [23:40:56]requested_item fm.sn is exist - process it [23:40:56]wFMCommunicate request_size=4 [23:40:56]MH_SAM_APDU [23:40:56]CAPDU: 80 11 00 00 [23:40:56]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [23:40:56]Write i2c OK [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 [23:40:56]MH_I2C_Read... [23:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:56]Read from MH i2c: E2 17 00 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [23:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:40:56]wFMCommunicate OK [23:40:56]requested_item fd.num is exist - process it [23:40:56]SAM_PROTO_GetFieldsCounters [23:40:56]wFMCommunicate request_size=4 [23:40:56]MH_SAM_APDU [23:40:56]CAPDU: 80 13 00 00 [23:40:56]Write to MH i2c: E2 08 00 F2 03 80 13 00 00 00 00 00 00 71 [23:40:56]Write i2c OK [23:40:56]MH_I2C_Read... [23:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:56]Read from MH i2c: E2 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 62 00 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 62 00 F2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B9 68 01 00 0E 04 04 00 F9 01 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 77 [23:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 B9 68 01 00 0E 04 04 00 F9 01 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 [23:40:56]wFMCommunicate OK [23:40:56]SAM_PROTO_GetFieldsCounters done [23:40:56]requested_item shift.num is exist - process it [23:40:56]requested_item shift.opened is exist - process it [23:40:56]req_shift_opened [23:40:56]FM_GetShiftState [23:40:56]SAM_PROTO_GetShiftState [23:40:56]wFMCommunicate request_size=4 [23:40:56]MH_SAM_APDU [23:40:56]CAPDU: 80 13 01 00 [23:40:56]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [23:40:56]Write i2c OK [23:40:56]MH_I2C_Read... [23:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:56]Read from MH i2c: E2 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 0E 00 [23:40:56]MH_I2C_Read... [23:40:56]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 FF [23:40:56]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:40:56]wFMCommunicate OK [23:40:56]SAM_PROTO_GetShiftState done [23:40:56]FM_GetShiftState done [23:40:56]req_shift_opened done [23:40:56]requested_item shift.open_date is exist - process it [23:40:56]req_shift_open_date [23:40:56]req_shift_open_date done [23:40:56]produce_requested_data done [23:40:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92345,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:40:56]process_action_free close_receipt [23:40:56]json_value_free [23:40:56]json_value_free done [23:40:56]process_json_proto returns [23:40:56]Send response to host [23:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92345,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:40:56]free response buf [23:40:56]execute_script done [23:40:56]execute_script returns [23:40:56]free content buf [23:40:56]Sock 9.Close socket [23:40:56]Sock 9.Thread stoped [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:08]accept exits with 8 [23:41:08]New connection [23:41:08]New thread 3067247972 created [23:41:08]Thread 3067391332 joined [23:41:08]Waiting for new connection... [23:41:08] Sock 8.Parse request [23:41:08]Sock 8.Check first char [23:41:08]Sock 8.First char is OK [23:41:08]request: POST /json_proto HTTP/1.0 [23:41:08]Method: POST [23:41:08]URL: /json_proto [23:41:08]Method is POST - this is cgi request [23:41:08]url: /json_proto [23:41:08]query_string will be loaded in cgi processing [23:41:08]execute_cgi json_proto POST (null) [23:41:08]execute_cgi path=json_proto method=POST [23:41:08]POST find Content-Length [23:41:08]Host: 172.17.57.71:8080 [23:41:08]Content-Length: 1030 [23:41:08]Content-Type: application/json [23:41:08] [23:41:08]POST finish read [23:41:08]Found Content-Length = 1030 [23:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127272", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:08]execute_script... [23: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 : (3)127272", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:08]POST & json_proto [23:41:08]process_json_proto [23:41:08]json parsed OK: [23:41:08]protocol is kg_v1.0 [23:41:08]action value=close_receipt [23:41:08]process_action close_receipt [23:41:08]cmd_close_receipt [23:41:08]MH_GetDate [23:41:08]Write to MH i2c: F0 00 00 F4 03 E6 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: F0 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: F0 09 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: F0 09 00 F4 03 00 94 CD E4 66 33 3A A4 66 11 [23:41:08]GetLastDocTimeStamp 1726270849 [23:41:08]current date 1726270868 [23:41:08]FM_GetShiftState [23:41:08]SAM_PROTO_GetShiftState [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 13 01 00 [23:41:08]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 0E 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 01 [23:41:08]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:41:08]wFMCommunicate OK [23:41:08]SAM_PROTO_GetShiftState done [23:41:08]FM_GetShiftState done [23:41:08]opened in 1726186930 [23:41:08]opened+sec_in_day 1726273330 [23:41:08]quantity*price = 14400 [23:41:08]sum+1 = 14401 [23:41:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329487 Напиток Pepsi 1,5л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 319.00 НСП 1% : 2.82 НДС 12% : 33.87 Наличными: 0.00 Безнал.: 319.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 154 13.09.2024 23:41 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92346 ФПД: 25389500989134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234109&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92346&fm=25389500989134&tin=02508201610067®Number=0000000000091423&sum=31900 0 [23:41:10]StoreToDocumentArchive [23:41:10]shift 505 fd 92346 [23:41:10]save to /storage/0505/doc_00092346 [23:41:10]save last doc name /storage/0505/doc_00092346 to /storage/kkm_last_doc_name [23:41:10]save OK [23:41:10]Clear old archive folders... [23:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=371 [23:41:10]tlvbuf is 01351090 [23:41:10]SAM_PROTO_ClearQueue [23:41:10]wFMCommunicate request_size=4 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 09 00 00 [23:41:10]Write to MH i2c: E2 08 00 02 04 80 09 00 00 00 00 00 00 78 [23:41:10]Write i2c OK [23:41:10]MH_I2C_Read... [23:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:10]Read from MH i2c: E2 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 03 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [23:41:10]RAPDU: 90 00 [23:41:10]wFMCommunicate OK [23:41:10]SAM_PROTO_ClearQueue done [23:41:10]KKMCreateOFDPacket [23:41:10]OFDProtocolAddRootSTLVToBuf [23:41:10]FM_MakeSignedData [23:41:10]FM_MakeSignedData [23:41:10]SAM_PROTO_SignData [23:41:10]wFMCommunicate request_size=4 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 0D 01 02 [23:41:10]Write to MH i2c: E2 08 00 03 04 80 0D 01 02 00 00 00 00 80 [23:41:10]Write i2c OK [23:41:10]MH_I2C_Read... [23:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:10]Read from MH i2c: E2 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 03 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [23:41:10]RAPDU: 90 00 [23:41:10]wFMCommunicate OK [23:41:10]wFMCommunicate request_size=255 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 [23:41:11]Write to MH i2c: E2 02 01 04 04 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 03 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [23:41:11]RAPDU: 90 00 [23:41:11]wFMCommunicate OK [23:41:11]wFMCommunicate request_size=130 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 95 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 68 01 00 35 04 06 00 17 17 74 2F FE CE [23:41:11]Write to MH i2c: E2 85 00 05 04 80 0D 02 02 7D 00 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 95 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 68 01 00 35 04 06 00 17 17 74 2F FE CE 00 00 12 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [23:41:12]RAPDU: 90 00 [23:41:12]wFMCommunicate OK [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 0D 03 02 [23:41:12]Write to MH i2c: E2 08 00 06 04 80 0D 03 02 00 00 00 00 85 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0B 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0B 00 06 04 00 57 7C 1D FC A4 0B 5C 45 90 00 C2 [23:41:12]RAPDU: 57 7C 1D FC A4 0B 5C 45 90 00 [23:41:12]wFMCommunicate OK [23:41:12]SAM_PROTO_SignData done [23:41:12]FM_MakeSignedData done [23:41:12]CreateOFDProtocolMessage [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 11 00 00 [23:41:12]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:12]Read from MH i2c: E2 17 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DC [23:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:41:12]wFMCommunicate OK [23:41:12]CreateOFDProtocolMessage done [23:41:12]OFDSenderStorePacket 92346 [23:41:12]StoreOFDPacket docnum=92346 [23:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 87 01 00 00 4C 2F 7F 01 DA 03 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 95 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 68 01 00 35 04 06 00 17 17 74 2F FE CE 57 7C 1D FC A4 0B 5C 45 [23:41:12]CheckFolder [23:41:12]dirname=/storage/ofd_packets [23:41:12]CheckFolder done [23:41:12]ProducePacketName [23:41:12]name=ofd_packets/00092346 [23:41:12]NVStorageSaveData ofd_packets/00092346 [23:41:12]File name is /storage/ofd_packets/00092346 [23:41:12]Write 421 bytes [23:41:12]NVStorageSaveData done [23:41:12]OFDSenderStorePacket done [23:41:12]KKMCreateOFDPacket done [23:41:12]NVStorageSaveData kkm_last_timestamp [23:41:12]File name is /storage/kkm_last_timestamp [23:41:12]Write 4 bytes [23:41:12]NVStorageSaveData done [23:41:12]ExternCall_PrintAddStr [23:41:12]wPrintStart [23:41:12]Write to MH i2c: 01 00 00 08 04 0C [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: 01 [23:41:12]MH_I2C_Read... [23:41:12]OFD Sender: Processing packet 92346 [packets to send 63, broken 62] [23:41:12]ProducePacketName [23:41:12]name=ofd_packets/00092346 [23:41:12]OFD Sender: To server: pG, [23:41:12]CommunicateWithHost lk.salyk.kg:30040 [23:41:12]ConnectInit lk.salyk.kg [23:41:12]Read from MH i2c: 01 07 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 FF 0F 21 [23:41:12]RasterBufferAndPrint [23:41:12]line Счет N : (3)127272 [23:41:12]line ИНН: 02508201610067 [23:41:12]line Контрольно-Кассовый Чек [23:41:12]line ПРОДАЖА [23:41:12]line Товар: 48743570 [23:41:12]line Сигареты Winston XStyle Blue [23:41:12]line 1.000 * 144.00 [23:41:12]line = 144.00 [23:41:12]line НДС 12% НСП 1% [23:41:12]line > о реализуемом товаре [23:41:12]line Товар: 4870002329487 [23:41:12]line Напиток Pepsi 1,5л [23:41:12]line 1.000 * 175.00 [23:41:12]line = 175.00 [23:41:12]line НДС 12% НСП 1% [23:41:12]line > о реализуемом товаре [23:41:12]line ИТОГО: 319.00 [23:41:12]line НСП 1% : 2.82 [23:41:12]line НДС 12% : 33.87 [23:41:12]line Наличными: 0.00 [23:41:12]line Безнал.: 319.00 [23:41:12]line Место: АЗС № 5 "Партнер Нефть" [23:41:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:41:12]line СНО: Общий режим [23:41:12]line Чек 154 13.09.2024 23:41 [23:41:12]line Смена: 505 ФФД: 1.0 [23:41:12]line ЗНМ: 03000000022 [23:41:12]line РНМ: 0000000000091423 [23:41:12]line Версия ККМ: 001 [23:41:12]line Платежная система: Бакай Банк [23:41:12]line ФМ: 0000000000874692 [23:41:12]line ФД: 92346 [23:41:12]line ФПД: 25389500989134 [23:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234109&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92346&fm=25389500989134&tin=02508201610067®Number=0000000000091423&sum=31900 [23:41:12]line 0 [23:41:12]written 0, free lines is 4095 [23:41:12]Connected sock=10 [23:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 87 01 00 00 4C 2F 7F 01 DA 03 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 95 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 68 01 00 35 04 06 00 17 17 74 2F FE CE 57 7C 1D FC A4 0B 5C 45 [23:41:13]Write to MH i2c: 01 00 00 38 04 3C [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 CA 0C 19 [23:41:13]RasterBufferAndPrint [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]written 0, free lines is 3342 [23:41:13]MH_Cut [23:41:13]Write to MH i2c: D1 01 00 3F 04 01 15 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 01 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 01 00 3F 04 00 14 [23:41:13]Write to MH i2c: 01 00 00 40 04 44 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E2 7D 47 00 58 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BA 68 01 00 F4 03 04 00 14 76 E4 66 B6 04 01 00 00 7F 57 FD 35 51 26 45 96 [23:41:13]CommunicateWithHost err = 0 [23:41:13]CheckOFDResponse [23:41:13]1017 (14) - 77093643461234 [23:41:13]1041 (16) - 0000000000874692 [23:41:13]1040 (4) - 92346 [23:41:13]1012 (4) - 13.09.2024 17:27 [23:41:13]1206 (1) - 0 [23:41:13]OFD Sender: Remove packet 92346 [23:41:13]ProducePacketName [23:41:13]name=ofd_packets/00092346 [23:41:13]NVStorageDeleteData [23:41:13]*** Cut start [23:41:13]*** Purtial cut [23:41:13]*** Stage 1: CUTSNS_PIN = 1 [23:41:13]OFD Sender: No OFD packet to send [23:41:15]Read from MH i2c: 01 [23:41:15]MH_I2C_Read... [23:41:15]*** Stop cut motor [23:41:15]*** Cut end [23:41:15]Read from MH i2c: 01 07 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [23:41:15]process_action close_receipt done [23:41:15]requested_data is exist [23:41:15]produce_requested_data [23:41:15]requested_item fm.sn is exist - process it [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 11 00 00 [23:41:15]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 17 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 16 [23:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:41:15]wFMCommunicate OK [23:41:15]requested_item fd.num is exist - process it [23:41:15]SAM_PROTO_GetFieldsCounters [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 13 00 00 [23:41:15]Write to MH i2c: E2 08 00 42 04 80 13 00 00 00 00 00 00 C2 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 42 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BA 68 01 00 0E 04 04 00 F9 01 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 CC [23:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BA 68 01 00 0E 04 04 00 F9 01 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 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetFieldsCounters done [23:41:16]requested_item shift.num is exist - process it [23:41:16]requested_item shift.opened is exist - process it [23:41:16]req_shift_opened [23:41:16]FM_GetShiftState [23:41:16]SAM_PROTO_GetShiftState [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 01 00 [23:41:16]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 50 [23:41:16]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetShiftState done [23:41:16]FM_GetShiftState done [23:41:16]req_shift_opened done [23:41:16]requested_item shift.open_date is exist - process it [23:41:16]req_shift_open_date [23:41:16]req_shift_open_date done [23:41:16]produce_requested_data done [23:41:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92346,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:41:16]process_action_free close_receipt [23:41:16]json_value_free [23:41:16]json_value_free done [23:41:16]process_json_proto returns [23:41:16]Send response to host [23:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92346,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:41:16]free response buf [23:41:16]execute_script done [23:41:16]execute_script returns [23:41:16]free content buf [23:41:16]Sock 8.Close socket [23:41:16]Sock 8.Thread stoped [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:27]accept exits with 9 [23:41:27]New connection [23:41:27]New thread 3067391332 created [23:41:27]Thread 3067247972 joined [23:41:27]Waiting for new connection... [23:41:27] Sock 9.Parse request [23:41:27]Sock 9.Check first char [23:41:27]Sock 9.First char is OK [23:41:27]request: POST /json_proto HTTP/1.0 [23:41:27]Method: POST [23:41:27]URL: /json_proto [23:41:27]Method is POST - this is cgi request [23:41:27]url: /json_proto [23:41:27]query_string will be loaded in cgi processing [23:41:27]execute_cgi json_proto POST (null) [23:41:27]execute_cgi path=json_proto method=POST [23:41:27]POST find Content-Length [23:41:27]Host: 172.17.57.71:8080 [23:41:27]Content-Length: 812 [23:41:27]Content-Type: application/json [23:41:27] [23:41:27]POST finish read [23:41:27]Found Content-Length = 812 [23:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127273", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:27]execute_script... [23:41: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 : (3)127273", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:27]POST & json_proto [23:41:27]process_json_proto [23:41:27]json parsed OK: [23:41:27]protocol is kg_v1.0 [23:41:27]action value=close_receipt [23:41:27]process_action close_receipt [23:41:27]cmd_close_receipt [23:41:27]MH_GetDate [23:41:27]Write to MH i2c: F0 00 00 44 04 37 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: F0 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: F0 09 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: F0 09 00 44 04 00 A7 CD E4 66 33 3A A4 66 75 [23:41:27]GetLastDocTimeStamp 1726270869 [23:41:27]current date 1726270887 [23:41:27]FM_GetShiftState [23:41:27]SAM_PROTO_GetShiftState [23:41:27]wFMCommunicate request_size=4 [23:41:27]MH_SAM_APDU [23:41:27]CAPDU: 80 13 01 00 [23:41:27]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:27]Read from MH i2c: E2 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: E2 0E 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 52 [23:41:27]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:41:27]wFMCommunicate OK [23:41:27]SAM_PROTO_GetShiftState done [23:41:27]FM_GetShiftState done [23:41:27]opened in 1726186930 [23:41:27]opened+sec_in_day 1726273330 [23:41:27]quantity*price = 13000 [23:41:27]sum+1 = 13001 [23:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 155 13.09.2024 23:41 Смена: 505 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92347 ФПД: 12606260915093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234128&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92347&fm=12606260915093&tin=02508201610067®Number=0000000000091423&sum=13000 0 [23:41:29]StoreToDocumentArchive [23:41:29]shift 505 fd 92347 [23:41:29]save to /storage/0505/doc_00092347 [23:41:29]save last doc name /storage/0505/doc_00092347 to /storage/kkm_last_doc_name [23:41:29]save OK [23:41:29]Clear old archive folders... [23:41:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [23:41:29]tlvbuf is 0134E500 [23:41:29]SAM_PROTO_ClearQueue [23:41:29]wFMCommunicate request_size=4 [23:41:29]MH_SAM_APDU [23:41:29]CAPDU: 80 09 00 00 [23:41:29]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:29]Read from MH i2c: E2 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 03 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [23:41:29]RAPDU: 90 00 [23:41:29]wFMCommunicate OK [23:41:29]SAM_PROTO_ClearQueue done [23:41:29]KKMCreateOFDPacket [23:41:29]OFDProtocolAddRootSTLVToBuf [23:41:29]FM_MakeSignedData [23:41:29]FM_MakeSignedData [23:41:29]SAM_PROTO_SignData [23:41:29]wFMCommunicate request_size=4 [23:41:29]MH_SAM_APDU [23:41:29]CAPDU: 80 0D 01 02 [23:41:29]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:29]Read from MH i2c: E2 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 03 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [23:41:29]RAPDU: 90 00 [23:41:29]wFMCommunicate OK [23:41:29]wFMCommunicate request_size=255 [23:41:29]MH_SAM_APDU [23:41:29]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A8 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [23:41:29]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A8 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 2D [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]wFMCommunicate request_size=41 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 68 01 00 35 04 06 00 0B 77 1F B4 2B 95 [23:41:30]Write to MH i2c: E2 2C 00 55 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 68 01 00 35 04 06 00 0B 77 1F B4 2B 95 00 00 DF [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 03 02 [23:41:30]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 0B 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 0B 00 56 04 00 1A EA 22 4C F8 15 33 B5 90 00 3D [23:41:30]RAPDU: 1A EA 22 4C F8 15 33 B5 90 00 [23:41:30]wFMCommunicate OK [23:41:30]SAM_PROTO_SignData done [23:41:30]FM_MakeSignedData done [23:41:30]CreateOFDProtocolMessage [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 11 00 00 [23:41:30]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 17 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2C [23:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:41:30]wFMCommunicate OK [23:41:30]CreateOFDProtocolMessage done [23:41:30]OFDSenderStorePacket 92347 [23:41:30]StoreOFDPacket docnum=92347 [23:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 95 1D 26 01 78 E6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A8 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 68 01 00 35 04 06 00 0B 77 1F B4 2B 95 1A EA 22 4C F8 15 33 B5 [23:41:30]CheckFolder [23:41:30]dirname=/storage/ofd_packets [23:41:30]CheckFolder done [23:41:30]ProducePacketName [23:41:30]name=ofd_packets/00092347 [23:41:30]NVStorageSaveData ofd_packets/00092347 [23:41:30]File name is /storage/ofd_packets/00092347 [23:41:30]Write 332 bytes [23:41:30]NVStorageSaveData done [23:41:30]OFDSenderStorePacket done [23:41:30]KKMCreateOFDPacket done [23:41:30]NVStorageSaveData kkm_last_timestamp [23:41:30]File name is /storage/kkm_last_timestamp [23:41:30]Write 4 bytes [23:41:30]NVStorageSaveData done [23:41:30]ExternCall_PrintAddStr [23:41:30]wPrintStart [23:41:30]Write to MH i2c: 01 00 00 58 04 5C [23:41:30]OFD Sender: Processing packet 92347 [packets to send 63, broken 62] [23:41:30]ProducePacketName [23:41:30]name=ofd_packets/00092347 [23:41:30]OFD Sender: To server: pG, [23:41:30]CommunicateWithHost lk.salyk.kg:30040 [23:41:30]ConnectInit lk.salyk.kg [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 07 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [23:41:31]RasterBufferAndPrint [23:41:31]line Счет N : (3)127273 [23:41:31]line ИНН: 02508201610067 [23:41:31]line Контрольно-Кассовый Чек [23:41:31]line ПРОДАЖА [23:41:31]line Товар: 2000036220012 [23:41:31]line Кофе Капучино XL(GABB TRADE) [23:41:31]line 1.000 * 130.00 [23:41:31]line = 130.00 [23:41:31]line НДС 12% НСП 1% [23:41:31]line > о реализуемом товаре [23:41:31]line ИТОГО: 130.00 [23:41:31]line НСП 1% : 1.15 [23:41:31]line НДС 12% : 13.80 [23:41:31]line Наличными: 0.00 [23:41:31]line Безнал.: 130.00 [23:41:31]line Место: АЗС № 5 "Партнер Нефть" [23:41:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [23:41:31]line СНО: Общий режим [23:41:31]line Чек 155 13.09.2024 23:41 [23:41:31]line Смена: 505 ФФД: 1.0 [23:41:31]line ЗНМ: 03000000022 [23:41:31]line РНМ: 0000000000091423 [23:41:31]line Версия ККМ: 001 [23:41:31]line Платежная система: О! деньги [23:41:31]line ФМ: 0000000000874692 [23:41:31]line ФД: 92347 [23:41:31]line ФПД: 12606260915093 [23:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240913T234128&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92347&fm=12606260915093&tin=02508201610067®Number=0000000000091423&sum=13000 [23:41:31]line 0 [23:41:31]written 0, free lines is 4095 [23:41:31]Connected sock=10 [23:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 95 1D 26 01 78 E6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 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 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A8 CD E4 66 0E 04 04 00 F9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BB 68 01 00 35 04 06 00 0B 77 1F B4 2B 95 1A EA 22 4C F8 15 33 B5 [23:41:31]Write to MH i2c: 01 00 00 83 04 87 [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 07 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FE 0C 98 [23:41:31]RasterBufferAndPrint [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]written 0, free lines is 3390 [23:41:31]MH_Cut [23:41:31]Write to MH i2c: D1 01 00 8A 04 01 60 [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: D1 [23:41:31]MH_I2C_Read... [23:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9A 18 47 00 8E 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 Read from MH i2c: 30 D1 30 01 30 00 38 [23:41:31]37 MH_I2C_Read... [23:41:31]34 Read from MH i2c: 36 D1 39 01 32 00 8A 04 00 5F [23:41:31]Write to MH i2c: 01 00 00 10 8B 04 04 04 8F 00 [23:41:31]BB 68 01 00 F4 03 04 00 27 Write i2c OK [23:41:31]76 MH_I2C_Read... [23:41:31]E4 66 B6 04 01 00 00 F0 A7 33 F9 37 95 26 B5 [23:41:31]CommunicateWithHost err = 0 [23:41:31]CheckOFDResponse [23:41:31]1017 (14) - 77093643461234 [23:41:31]1041 (16) - 0000000000874692 [23:41:31]1040 (4) - 92347 [23:41:31]1012 (4) - 13.09.2024 17:28 [23:41:31]1206 (1) - 0 [23:41:31]OFD Sender: Remove packet 92347 [23:41:31]ProducePacketName [23:41:31]name=ofd_packets/00092347 [23:41:31]NVStorageDeleteData [23:41:32]*** Cut start [23:41:32]*** Purtial cut [23:41:32]*** Stage 1: CUTSNS_PIN = 1 [23:41:32]OFD Sender: No OFD packet to send [23:41:34]Read from MH i2c: *** Stop cut motor [23:41:34]01 *** Cut end [23:41:34] [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: 01 07 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [23:41:34]process_action close_receipt done [23:41:34]requested_data is exist [23:41:34]produce_requested_data [23:41:34]requested_item fm.sn is exist - process it [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 11 00 00 [23:41:34]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 17 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [23:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:41:34]wFMCommunicate OK [23:41:34]requested_item fd.num is exist - process it [23:41:34]SAM_PROTO_GetFieldsCounters [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 13 00 00 [23:41:34]Write to MH i2c: E2 08 00 8D 04 80 13 00 00 00 00 00 00 0D [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 62 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 62 00 8D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 1B [23:41:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 [23:41:34]wFMCommunicate OK [23:41:34]SAM_PROTO_GetFieldsCounters done [23:41:34]requested_item shift.num is exist - process it [23:41:34]requested_item shift.opened is exist - process it [23:41:34]req_shift_opened [23:41:34]FM_GetShiftState [23:41:34]SAM_PROTO_GetShiftState [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 13 01 00 [23:41:34]Write to MH i2c: E2 08 00 8E 04 80 13 01 00 00 00 00 00 0F [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 0E 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 0E 00 8E 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9B [23:41:34]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:41:34]wFMCommunicate OK [23:41:34]SAM_PROTO_GetShiftState done [23:41:34]FM_GetShiftState done [23:41:34]req_shift_opened done [23:41:34]requested_item shift.open_date is exist - process it [23:41:34]req_shift_open_date [23:41:34]req_shift_open_date done [23:41:34]produce_requested_data done [23:41:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:41:34]process_action_free close_receipt [23:41:34]json_value_free [23:41:34]json_value_free done [23:41:34]process_json_proto returns [23:41:34]Send response to host [23:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:41:34]free response buf [23:41:34]execute_script done [23:41:34]execute_script returns [23:41:34]free content buf [23:41:34]Sock 9.Close socket [23:41:34]Sock 9.Thread stoped [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:29]accept exits with 8 [23:43:29]New connection [23:43:29]New thread 3067247972 created [23:43:29]Thread 3067391332 joined [23:43:29]Waiting for new connection... [23:43:29] Sock 8.Parse request [23:43:29]Sock 8.Check first char [23:43:29]Sock 8.First char is OK [23:43:29]request: POST /json_proto HTTP/1.0 [23:43:29]Method: POST [23:43:29]URL: /json_proto [23:43:29]Method is POST - this is cgi request [23:43:29]url: /json_proto [23:43:29]query_string will be loaded in cgi processing [23:43:29]execute_cgi json_proto POST (null) [23:43:29]execute_cgi path=json_proto method=POST [23:43:29]POST find Content-Length [23:43:29]Host: 172.17.57.71:8080 [23:43:29]Content-Length: 215 [23:43:29]Content-Type: application/json [23:43:29] [23:43:29]POST finish read [23:43:29]Found Content-Length = 215 [23:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:29]execute_script... [23:43:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:29]POST & json_proto [23:43:29]process_json_proto [23:43:29]json parsed OK: [23:43:29]protocol is kg_v1.0 [23:43:29]action value=get_value [23:43:29]process_action get_value [23:43:29]cmd_get_value [23:43:29]process_action get_value done [23:43:29]requested_data is exist [23:43:29]produce_requested_data [23:43:29]requested_item kkm.sn is exist - process it [23:43:29]requested_item kkm.ver is exist - process it [23:43:29]requested_item fm.sn is exist - process it [23:43:29]wFMCommunicate request_size=4 [23:43:29]MH_SAM_APDU [23:43:29]CAPDU: 80 11 00 00 [23:43:29]Write to MH i2c: E2 08 00 8F 04 80 11 00 00 00 00 00 00 0D [23:43:29]Write i2c OK [23:43:29]MH_I2C_Read... [23:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:29]Read from MH i2c: E2 [23:43:29]MH_I2C_Read... [23:43:29]Read from MH i2c: E2 17 00 [23:43:29]MH_I2C_Read... [23:43:29]Read from MH i2c: E2 17 00 8F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 64 [23:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:43:29]wFMCommunicate OK [23:43:29]requested_item fd.num is exist - process it [23:43:29]SAM_PROTO_GetFieldsCounters [23:43:29]wFMCommunicate request_size=4 [23:43:29]MH_SAM_APDU [23:43:29]CAPDU: 80 13 00 00 [23:43:29]Write to MH i2c: E2 08 00 90 04 80 13 00 00 00 00 00 00 10 [23:43:29]Write i2c OK [23:43:29]MH_I2C_Read... [23:43:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:30]Read from MH i2c: E2 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 62 00 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 62 00 90 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 1E [23:43:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 [23:43:30]wFMCommunicate OK [23:43:30]SAM_PROTO_GetFieldsCounters done [23:43:30]requested_item shift.num is exist - process it [23:43:30]requested_item shift.opened is exist - process it [23:43:30]req_shift_opened [23:43:30]FM_GetShiftState [23:43:30]SAM_PROTO_GetShiftState [23:43:30]wFMCommunicate request_size=4 [23:43:30]MH_SAM_APDU [23:43:30]CAPDU: 80 13 01 00 [23:43:30]Write to MH i2c: E2 08 00 91 04 80 13 01 00 00 00 00 00 12 [23:43:30]Write i2c OK [23:43:30]MH_I2C_Read... [23:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:30]Read from MH i2c: E2 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 0E 00 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 0E 00 91 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 9E [23:43:30]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:43:30]wFMCommunicate OK [23:43:30]SAM_PROTO_GetShiftState done [23:43:30]FM_GetShiftState done [23:43:30]req_shift_opened done [23:43:30]requested_item shift.open_date is exist - process it [23:43:30]req_shift_open_date [23:43:30]req_shift_open_date done [23:43:30]produce_requested_data done [23:43:30]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:43:30]process_action_free get_value [23:43:30]json_value_free [23:43:30]json_value_free done [23:43:30]process_json_proto returns [23:43:30]Send response to host [23:43:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:43:30]free response buf [23:43:30]execute_script done [23:43:30]execute_script returns [23:43:30]free content buf [23:43:30]Sock 8.Close socket [23:43:30]Sock 8.Thread stoped [23:43:30]accept exits with 9 [23:43:30]New connection [23:43:30]New thread 3067391332 created [23:43:30]Thread 3067247972 joined [23:43:30]Waiting for new connection... [23:43:30] Sock 9.Parse request [23:43:30]Sock 9.Check first char [23:43:30]Sock 9.First char is OK [23:43:30]request: POST /json_proto HTTP/1.0 [23:43:30]Method: POST [23:43:30]URL: /json_proto [23:43:30]Method is POST - this is cgi request [23:43:30]url: /json_proto [23:43:30]query_string will be loaded in cgi processing [23:43:30]execute_cgi json_proto POST (null) [23:43:30]execute_cgi path=json_proto method=POST [23:43:30]POST find Content-Length [23:43:30]Host: 172.17.57.71:8080 [23:43:30]Content-Length: 331 [23:43:30]Content-Type: application/json [23:43:30] [23:43:30]POST finish read [23:43:30]Found Content-Length = 331 [23:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:43:30]execute_script... [23:43:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:43:30]POST & json_proto [23:43:30]process_json_proto [23:43:30]json parsed OK: [23:43:30]protocol is kg_v1.0 [23:43:30]action value=get_value [23:43:30]process_action get_value [23:43:30]cmd_get_value [23:43:30]process_action get_value done [23:43:30]requested_data is exist [23:43:30]produce_requested_data [23:43:30]requested_item fm.sale.total is exist - process it [23:43:30]SAM_PROTO_GetFMData [23:43:30]wFMCommunicate request_size=4 [23:43:30]MH_SAM_APDU [23:43:30]CAPDU: 80 13 03 00 [23:43:30]Write to MH i2c: E2 08 00 92 04 80 13 03 00 00 00 00 00 15 [23:43:30]Write i2c OK [23:43:30]MH_I2C_Read... [23:43:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:43:30]Read from MH i2c: E2 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 FD 00 [23:43:30]MH_I2C_Read... [23:43:30]Read from MH i2c: E2 FD 00 92 04 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 99 [23:43:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:43:30]wFMCommunicate OK [23:43:30]wFMCommunicate request_size=4 [23:43:30]MH_SAM_APDU [23:43:30]CAPDU: 80 17 00 00 [23:43:30]Write to MH i2c: E2 08 00 93 04 80 17 00 00 00 00 00 00 17 [23:43:30]Write i2c OK [23:43:30]MH_I2C_Read... [23:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:31]Read from MH i2c: E2 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 93 04 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 [23:43:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:43:31]wFMCommunicate OK [23:43:31]wFMCommunicate request_size=4 [23:43:31]MH_SAM_APDU [23:43:31]CAPDU: 80 17 00 00 [23:43:31]Write to MH i2c: E2 08 00 94 04 80 17 00 00 00 00 00 00 18 [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:31]Read from MH i2c: E2 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 94 04 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 2A [23:43:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:43:31]wFMCommunicate OK [23:43:31]wFMCommunicate request_size=4 [23:43:31]MH_SAM_APDU [23:43:31]CAPDU: 80 17 00 00 [23:43:31]Write to MH i2c: E2 08 00 95 04 80 17 00 00 00 00 00 00 19 [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:31]Read from MH i2c: E2 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 FD 00 95 04 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 A5 [23:43:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:43:31]wFMCommunicate OK [23:43:31]wFMCommunicate request_size=4 [23:43:31]MH_SAM_APDU [23:43:31]CAPDU: 80 17 00 00 [23:43:31]Write to MH i2c: E2 08 00 96 04 80 17 00 00 00 00 00 00 1A [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:43:31]Read from MH i2c: E2 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 E2 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 E2 00 96 04 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 [23:43:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:43:31]wFMCommunicate OK [23:43:31]SAM_PROTO_GetFMData done [23:43:31]requested_item fm.sale_refund.total is exist - process it [23:43:31]requested_item fm.buy.total is exist - process it [23:43:31]requested_item shift.sale.total is exist - process it [23:43:31]SAM_PROTO_GetShiftData [23:43:31]wFMCommunicate request_size=4 [23:43:31]MH_SAM_APDU [23:43:31]CAPDU: 80 13 02 00 [23:43:31]Write to MH i2c: E2 08 00 97 04 80 13 02 00 00 00 00 00 19 [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:43:32]Read from MH i2c: E2 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 97 04 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 93 [23:43:32]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:43:32]wFMCommunicate OK [23:43:32]wFMCommunicate request_size=4 [23:43:32]MH_SAM_APDU [23:43:32]CAPDU: 80 17 00 00 [23:43:32]Write to MH i2c: E2 08 00 98 04 80 17 00 00 00 00 00 00 1C [23:43:32]Write i2c OK [23:43:32]MH_I2C_Read... [23:43:32]OFD Sender: No OFD packet to send [23:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:32]Read from MH i2c: E2 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 98 04 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 92 [23:43:32]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:32]wFMCommunicate OK [23:43:32]wFMCommunicate request_size=4 [23:43:32]MH_SAM_APDU [23:43:32]CAPDU: 80 17 00 00 [23:43:32]Write to MH i2c: E2 08 00 99 04 80 17 00 00 00 00 00 00 1D [23:43:32]Write i2c OK [23:43:32]MH_I2C_Read... [23:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:32]Read from MH i2c: E2 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 [23:43:32]MH_I2C_Read... [23:43:32]Read from MH i2c: E2 FD 00 99 04 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [23:43:32]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:32]wFMCommunicate OK [23:43:32]wFMCommunicate request_size=4 [23:43:32]MH_SAM_APDU [23:43:32]CAPDU: 80 17 00 00 [23:43:32]Write to MH i2c: E2 08 00 9A 04 80 17 00 00 00 00 00 00 1E [23:43:32]Write i2c OK [23:43:32]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 FD 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 FD 00 9A 04 00 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 90 00 8D [23:43:33]RAPDU: 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 90 00 [23:43:33]wFMCommunicate OK [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 17 00 00 [23:43:33]Write to MH i2c: E2 08 00 9B 04 80 17 00 00 00 00 00 00 1F [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 D3 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 D3 00 9B 04 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [23:43:33]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:43:33]wFMCommunicate OK [23:43:33]SAM_PROTO_GetShiftData done [23:43:33]requested_item shift.sale.total_cash is exist - process it [23:43:33]requested_item shift.sale_refund.total is exist - process it [23:43:33]requested_item shift.sale_refund.total_cash is exist - process it [23:43:33]requested_item shift.buy.total is exist - process it [23:43:33]requested_item shift.buy.total_cash is exist - process it [23:43:33]produce_requested_data done [23:43:33]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:43:33]process_action_free get_value [23:43:33]json_value_free [23:43:33]json_value_free done [23:43:33]process_json_proto returns [23:43:33]Send response to host [23:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:43:33]free response buf [23:43:33]execute_script done [23:43:33]execute_script returns [23:43:33]free content buf [23:43:33]Sock 9.Close socket [23:43:33]Sock 9.Thread stoped [23:43:33]accept exits with 8 [23:43:33]New connection [23:43:33]New thread 3067247972 created [23:43:33]Thread 3067391332 joined [23:43:33]Waiting for new connection... [23:43:33] Sock 8.Parse request [23:43:33]Sock 8.Check first char [23:43:33]Sock 8.First char is OK [23:43:33]request: POST /json_proto HTTP/1.0 [23:43:33]Method: POST [23:43:33]URL: /json_proto [23:43:33]Method is POST - this is cgi request [23:43:33]url: /json_proto [23:43:33]query_string will be loaded in cgi processing [23:43:33]execute_cgi json_proto POST (null) [23:43:33]execute_cgi path=json_proto method=POST [23:43:33]POST find Content-Length [23:43:33]Host: 172.17.57.71:8080 [23:43:33]Content-Length: 331 [23:43:33]Content-Type: application/json [23:43:33] [23:43:33]POST finish read [23:43:33]Found Content-Length = 331 [23:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:43:33]execute_script... [23:43:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:43:33]POST & json_proto [23:43:33]process_json_proto [23:43:33]json parsed OK: [23:43:33]protocol is kg_v1.0 [23:43:33]action value=get_value [23:43:33]process_action get_value [23:43:33]cmd_get_value [23:43:33]process_action get_value done [23:43:33]requested_data is exist [23:43:33]produce_requested_data [23:43:33]requested_item fm.sale.total is exist - process it [23:43:33]SAM_PROTO_GetFMData [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 13 03 00 [23:43:33]Write to MH i2c: E2 08 00 9C 04 80 13 03 00 00 00 00 00 1F [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 9C 04 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 A3 [23:43:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:43:34]wFMCommunicate OK [23:43:34]wFMCommunicate request_size=4 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 17 00 00 [23:43:34]Write to MH i2c: E2 08 00 9D 04 80 17 00 00 00 00 00 00 21 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 9D 04 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 1A [23:43:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:43:34]wFMCommunicate OK [23:43:34]wFMCommunicate request_size=4 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 17 00 00 [23:43:34]Write to MH i2c: E2 08 00 9E 04 80 17 00 00 00 00 00 00 22 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 FD 00 9E 04 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 34 [23:43:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:43:34]wFMCommunicate OK [23:43:34]wFMCommunicate request_size=4 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 17 00 00 [23:43:34]Write to MH i2c: E2 08 00 9F 04 80 17 00 00 00 00 00 00 23 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 FD 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 FD 00 9F 04 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 AF [23:43:35]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:43:35]wFMCommunicate OK [23:43:35]wFMCommunicate request_size=4 [23:43:35]MH_SAM_APDU [23:43:35]CAPDU: 80 17 00 00 [23:43:35]Write to MH i2c: E2 08 00 A0 04 80 17 00 00 00 00 00 00 24 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 E2 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 E2 00 A0 04 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [23:43:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:43:35]wFMCommunicate OK [23:43:35]SAM_PROTO_GetFMData done [23:43:35]requested_item fm.sale_refund.total is exist - process it [23:43:35]requested_item fm.buy.total is exist - process it [23:43:35]requested_item shift.sale.total is exist - process it [23:43:35]SAM_PROTO_GetShiftData [23:43:35]wFMCommunicate request_size=4 [23:43:35]MH_SAM_APDU [23:43:35]CAPDU: 80 13 02 00 [23:43:35]Write to MH i2c: E2 08 00 A1 04 80 13 02 00 00 00 00 00 23 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 FD 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 FD 00 A1 04 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 9D [23:43:36]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:43:36]wFMCommunicate OK [23:43:36]wFMCommunicate request_size=4 [23:43:36]MH_SAM_APDU [23:43:36]CAPDU: 80 17 00 00 [23:43:36]Write to MH i2c: E2 08 00 A2 04 80 17 00 00 00 00 00 00 26 [23:43:36]Write i2c OK [23:43:36]MH_I2C_Read... [23:43:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:36]Read from MH i2c: E2 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 FD 00 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 FD 00 A2 04 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [23:43:36]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:36]wFMCommunicate OK [23:43:36]wFMCommunicate request_size=4 [23:43:36]MH_SAM_APDU [23:43:36]CAPDU: 80 17 00 00 [23:43:36]Write to MH i2c: E2 08 00 A3 04 80 17 00 00 00 00 00 00 27 [23:43:36]Write i2c OK [23:43:36]MH_I2C_Read... [23:43:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:36]Read from MH i2c: E2 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 FD 00 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 FD 00 A3 04 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [23:43:36]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:36]wFMCommunicate OK [23:43:36]wFMCommunicate request_size=4 [23:43:36]MH_SAM_APDU [23:43:36]CAPDU: 80 17 00 00 [23:43:36]Write to MH i2c: E2 08 00 A4 04 80 17 00 00 00 00 00 00 28 [23:43:36]Write i2c OK [23:43:36]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 FD 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 FD 00 A4 04 00 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 90 00 97 [23:43:37]RAPDU: 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 90 00 [23:43:37]wFMCommunicate OK [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 17 00 00 [23:43:37]Write to MH i2c: E2 08 00 A5 04 80 17 00 00 00 00 00 00 29 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 D3 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 D3 00 A5 04 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [23:43:37]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetShiftData done [23:43:37]requested_item shift.sale.total_cash is exist - process it [23:43:37]requested_item shift.sale_refund.total is exist - process it [23:43:37]requested_item shift.sale_refund.total_cash is exist - process it [23:43:37]requested_item shift.buy.total is exist - process it [23:43:37]requested_item shift.buy.total_cash is exist - process it [23:43:37]produce_requested_data done [23:43:37]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:43:37]OFD Sender: No OFD packet to send [23:43:37]process_action_free get_value [23:43:37]json_value_free [23:43:37]json_value_free done [23:43:37]process_json_proto returns [23:43:37]Send response to host [23:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:43:37]free response buf [23:43:37]execute_script done [23:43:37]execute_script returns [23:43:37]free content buf [23:43:37]Sock 8.Close socket [23:43:37]Sock 8.Thread stoped [23:43:37]accept exits with 9 [23:43:37]New connection [23:43:37]New thread 3067391332 created [23:43:37]Thread 3067247972 joined [23:43:37]Waiting for new connection... [23:43:37] Sock 9.Parse request [23:43:37]Sock 9.Check first char [23:43:37]Sock 9.First char is OK [23:43:37]request: POST /json_proto HTTP/1.0 [23:43:37]Method: POST [23:43:37]URL: /json_proto [23:43:37]Method is POST - this is cgi request [23:43:37]url: /json_proto [23:43:37]query_string will be loaded in cgi processing [23:43:37]execute_cgi json_proto POST (null) [23:43:37]execute_cgi path=json_proto method=POST [23:43:37]POST find Content-Length [23:43:37]Host: 172.17.57.71:8080 [23:43:37]Content-Length: 275 [23:43:37]Content-Type: application/json [23:43:37] [23:43:37]POST finish read [23:43:37]Found Content-Length = 275 [23:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:37]execute_script... [23:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:37]POST & json_proto [23:43:37]process_json_proto [23:43:37]json parsed OK: [23:43:37]protocol is kg_v1.0 [23:43:37]action value=x_report [23:43:37]process_action x_report [23:43:37]cmd_x_report [23:43:37]MH_GetDate [23:43:37]Write to MH i2c: F0 00 00 A6 04 99 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 A6 04 00 2A CE E4 66 33 3A A4 66 5B [23:43:37]GetLastDocTimeStamp 1726270888 [23:43:37]current date 1726271018 [23:43:37]FM_GetShiftState [23:43:37]SAM_PROTO_GetShiftState [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 13 01 00 [23:43:37]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 B4 [23:43:37]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetShiftState done [23:43:37]FM_GetShiftState done [23:43:37]KKMCreateXReportDocument [23:43:37]Load OK [23:43:37]Malloc new data [23:43:37]MH_GetDate [23:43:37]Write to MH i2c: F0 00 00 A8 04 9B [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 A8 04 00 2A CE E4 66 33 3A A4 66 5D [23:43:37]Malloc new data [23:43:37]Malloc new data [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 11 00 00 [23:43:37]Write to MH i2c: E2 08 00 A9 04 80 11 00 00 00 00 00 00 27 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 17 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 17 00 A9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7E [23:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetFieldsCounters [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 13 00 00 [23:43:37]Write to MH i2c: E2 08 00 AA 04 80 13 00 00 00 00 00 00 2A [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 62 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 62 00 AA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 38 [23:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 [23:43:38]wFMCommunicate OK [23:43:38]SAM_PROTO_GetFieldsCounters done [23:43:38]Malloc new data [23:43:38]Malloc new data [23:43:38]Malloc new data [23:43:38]KKMCreateXReportDocument OK [23:43:38]KKMSetXReportData OK [23:43:38]KKMPrepareXReportFMData [23:43:38]SAM_PROTO_GetShiftData [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 13 02 00 [23:43:38]Write to MH i2c: E2 08 00 AB 04 80 13 02 00 00 00 00 00 2D [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 FD 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 FD 00 AB 04 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 A7 [23:43:38]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:43:38]wFMCommunicate OK [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 17 00 00 [23:43:38]Write to MH i2c: E2 08 00 AC 04 80 17 00 00 00 00 00 00 30 [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:39]Read from MH i2c: E2 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 AC 04 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [23:43:39]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:39]wFMCommunicate OK [23:43:39]wFMCommunicate request_size=4 [23:43:39]MH_SAM_APDU [23:43:39]CAPDU: 80 17 00 00 [23:43:39]Write to MH i2c: E2 08 00 AD 04 80 17 00 00 00 00 00 00 31 [23:43:39]Write i2c OK [23:43:39]MH_I2C_Read... [23:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:39]Read from MH i2c: E2 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 AD 04 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [23:43:39]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:43:39]wFMCommunicate OK [23:43:39]wFMCommunicate request_size=4 [23:43:39]MH_SAM_APDU [23:43:39]CAPDU: 80 17 00 00 [23:43:39]Write to MH i2c: E2 08 00 AE 04 80 17 00 00 00 00 00 00 32 [23:43:39]Write i2c OK [23:43:39]MH_I2C_Read... [23:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:39]Read from MH i2c: E2 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: E2 FD 00 AE 04 00 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 90 00 A1 [23:43:40]RAPDU: 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 90 00 [23:43:40]wFMCommunicate OK [23:43:40]wFMCommunicate request_size=4 [23:43:40]MH_SAM_APDU [23:43:40]CAPDU: 80 17 00 00 [23:43:40]Write to MH i2c: E2 08 00 AF 04 80 17 00 00 00 00 00 00 33 [23:43:40]Write i2c OK [23:43:40]MH_I2C_Read... [23:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:43:40]Read from MH i2c: E2 [23:43:40]MH_I2C_Read... [23:43:40]Read from MH i2c: E2 D3 00 [23:43:40]MH_I2C_Read... [23:43:40]Read from MH i2c: E2 D3 00 AF 04 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 20 [23:43:40]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:43:40]wFMCommunicate OK [23:43:40]SAM_PROTO_GetShiftData done [23:43:40]1194 (1202) - счетчики итогов смены [23:43:40] 1134 (4) - 155 - количество чеков со всеми признаками расчетов [23:43:40] 1129 (155) - счетчики операций «приход» [23:43:40] 1135 (4) - 153 - количество чеков по признаку расчетов [23:43:40] 1201 (3) - 42140.74 - общая итоговая сумма в чеках [23:43:40] 1136 (3) - 29024.00 - итоговая сумма в чеках наличными [23:43:40] 1138 (3) - 13116.74 - итоговая сумма в чеках безналичными [23:43:40] 1024 (122) - суммы налогов [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 0% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1006 (12) - суммы НДС [23:43:40] 1010 (1) - 12% - код ставки НДС [23:43:40] 1011 (3) - 4475.32 - сумма НДС по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (11) - суммы НСП [23:43:40] 1014 (1) - 1% - код ставки НСП [23:43:40] 1015 (2) - 372.80 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 2% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 3% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 5% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1130 (149) - счетчики операций «возврат прихода» [23:43:40] 1135 (4) - 2 - количество чеков по признаку расчетов [23:43:40] 1201 (2) - 399.00 - общая итоговая сумма в чеках [23:43:40] 1136 (2) - 399.00 - итоговая сумма в чеках наличными [23:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:43:40] 1024 (121) - суммы налогов [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 0% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1006 (11) - суммы НДС [23:43:40] 1010 (1) - 12% - код ставки НДС [23:43:40] 1011 (2) - 42.37 - сумма НДС по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (11) - суммы НСП [23:43:40] 1014 (1) - 1% - код ставки НСП [23:43:40] 1015 (2) - 3.53 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 2% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 3% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 5% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1131 (141) - счетчики операций «расход» [23:43:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:43:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:43:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:43:40] 1024 (117) - суммы налогов [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 0% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 12% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 2% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 3% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 5% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1132 (141) - счетчики операций «возврат расхода» [23:43:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:43:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:43:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:43:40] 1024 (117) - суммы налогов [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 0% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1006 (9) - суммы НДС [23:43:40] 1010 (1) - 12% - код ставки НДС [23:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 2% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 3% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 5% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 0,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1007 (9) - суммы НСП [23:43:40] 1014 (1) - 1,50% - код ставки НСП [23:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:43:40] 1133 (588) - - счетчики коррекции - не используются [23:43:40]SetTLVBufToDocument [23:43:40]Processing tag 1194 (04AA) [23:43:40]Load OK [23:43:40]SetTLVBufToDocument [23:43:41]Processing tag 1134 (046E) [23:43:41]Malloc new data [23:43:41]Processing tag 1129 (0469) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1135 (046F) [23:43:41]Malloc new data [23:43:41]Processing tag 1201 (04B1) [23:43:41]Malloc new data [23:43:41]Processing tag 1136 (0470) [23:43:41]Malloc new data [23:43:41]Processing tag 1138 (0472) [23:43:41]Malloc new data [23:43:41]Processing tag 1024 (0400) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1130 (046A) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1135 (046F) [23:43:41]Malloc new data [23:43:41]Processing tag 1201 (04B1) [23:43:41]Malloc new data [23:43:41]Processing tag 1136 (0470) [23:43:41]Malloc new data [23:43:41]Processing tag 1138 (0472) [23:43:41]Malloc new data [23:43:41]Processing tag 1024 (0400) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1131 (046B) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1135 (046F) [23:43:41]Malloc new data [23:43:41]Processing tag 1201 (04B1) [23:43:41]Malloc new data [23:43:41]Processing tag 1136 (0470) [23:43:41]Malloc new data [23:43:41]Processing tag 1138 (0472) [23:43:41]Malloc new data [23:43:41]Processing tag 1024 (0400) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1132 (046C) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1135 (046F) [23:43:41]Malloc new data [23:43:41]Processing tag 1201 (04B1) [23:43:41]Malloc new data [23:43:41]Processing tag 1136 (0470) [23:43:41]Malloc new data [23:43:41]Processing tag 1138 (0472) [23:43:41]Malloc new data [23:43:41]Processing tag 1024 (0400) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1006 (03EE) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1010 (03F2) [23:43:41]Malloc new data [23:43:41]Processing tag 1011 (03F3) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1007 (03EF) [23:43:41]Load OK [23:43:41]SetTLVBufToDocument [23:43:41]Processing tag 1014 (03F6) [23:43:41]Malloc new data [23:43:41]Processing tag 1015 (03F7) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Processing tag 1133 (046D) [23:43:41]Malloc new data [23:43:41]SetTLVBufToDocument err=0 [23:43:41]SetTLVBufToDocument err=0 [23:43:41]Malloc new data [23:43:41]SAM_PROTO_GetFMData [23:43:41]wFMCommunicate request_size=4 [23:43:41]MH_SAM_APDU [23:43:41]CAPDU: 80 13 03 00 [23:43:41]Write to MH i2c: E2 08 00 B0 04 80 13 03 00 00 00 00 00 33 [23:43:41]Write i2c OK [23:43:41]MH_I2C_Read... [23:43:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:43:42]Read from MH i2c: E2 [23:43:42]MH_I2C_Read... [23:43:42]Read from MH i2c: E2 FD 00 [23:43:42]MH_I2C_Read... [23:43:42]Read from MH i2c: E2 FD 00 B0 04 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 B7 [23:43:42]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:43:42]wFMCommunicate OK [23:43:42]wFMCommunicate request_size=4 [23:43:42]MH_SAM_APDU [23:43:42]CAPDU: 80 17 00 00 [23:43:42]Write to MH i2c: E2 08 00 B1 04 80 17 00 00 00 00 00 00 35 [23:43:42]Write i2c OK [23:43:42]MH_I2C_Read... [23:43:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:42]Read from MH i2c: E2 [23:43:42]MH_I2C_Read... [23:43:42]Read from MH i2c: E2 FD 00 [23:43:42]MH_I2C_Read... [23:43:42]Read from MH i2c: E2 FD 00 B1 04 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 2E [23:43:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 OFD Sender: No OFD packet to send [23:43:42]00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:43:42]wFMCommunicate OK [23:43:42]wFMCommunicate request_size=4 [23:43:42]MH_SAM_APDU [23:43:42]CAPDU: 80 17 00 00 [23:43:42]Write to MH i2c: E2 08 00 B2 04 80 17 00 00 00 00 00 00 36 [23:43:42]Write i2c OK [23:43:42]MH_I2C_Read... [23:43:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:43]Read from MH i2c: E2 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 FD 00 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 FD 00 B2 04 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 48 [23:43:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:43:43]wFMCommunicate OK [23:43:43]wFMCommunicate request_size=4 [23:43:43]MH_SAM_APDU [23:43:43]CAPDU: 80 17 00 00 [23:43:43]Write to MH i2c: E2 08 00 B3 04 80 17 00 00 00 00 00 00 37 [23:43:43]Write i2c OK [23:43:43]MH_I2C_Read... [23:43:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:43:43]Read from MH i2c: E2 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 FD 00 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 FD 00 B3 04 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 C3 [23:43:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:43:43]wFMCommunicate OK [23:43:43]wFMCommunicate request_size=4 [23:43:43]MH_SAM_APDU [23:43:43]CAPDU: 80 17 00 00 [23:43:43]Write to MH i2c: E2 08 00 B4 04 80 17 00 00 00 00 00 00 38 [23:43:43]Write i2c OK [23:43:43]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 E2 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 E2 00 B4 04 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [23:43: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 [23:43:44]wFMCommunicate OK [23:43:44]SAM_PROTO_GetFMData done [23:43:44]FM_GetFMData:85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 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 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:43:44]oper:6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:43:45]total:5D F0 7B B2 [23:43:45]Malloc new data [23:43:45]oper:6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 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 1D 1C 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 [23:43:45]total:3C 62 76 04 [23:43:45]Malloc new data [23:43:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:43:45]total: [23:43:45]Malloc new data [23:43:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:43:45]total: [23:43:45]Malloc new data [23:43:45]KKMPrepareXReportFMData err=0 [23:43:45]Х отчет ИНН: 02508201610067 Кассир: Абдалбекова А. 13.09.2024 23:43 Смена: 266 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Всего чеков: 155 ИТОГИ ПРИХОД Чеков: 153 Общий итог: 42140.74 Итого наличными: 29024.00 Итого безнал.: 13116.74 НДС 0% : 0.00 НДС 12% : 4475.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 372.80 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 399.00 Итого наличными: 399.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 42.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.53 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 28625.00 НС Приход: 29944669.09 НС Возвр.Прихода: 748672.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874692 [23:43:45]StoreToDocumentArchive [23:43:45]MH_GetDate [23:43:45]Write to MH i2c: F0 00 00 B5 04 A8 [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: F0 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: F0 09 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: F0 09 00 B5 04 00 31 CE E4 66 33 3A A4 66 71 [23:43:45]shift 266 fd 1726271025 [23:43:45]Create dir for shift 0266 [23:43:45]save to /storage/0266/doc_1726271025 [23:43:45]save last doc name /storage/0266/doc_1726271025 to /storage/kkm_last_doc_name [23:43:45]save OK [23:43:45]Clear old archive folders... [23:43:45]NVStorageSaveData kkm_last_timestamp [23:43:45]File name is /storage/kkm_last_timestamp [23:43:45]Write 4 bytes [23:43:45]NVStorageSaveData done [23:43:45]ExternCall_PrintAddStr [23:43:45]wPrintStart [23:43:45]Write to MH i2c: 01 00 00 B6 04 BA [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 07 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [23:43:45]RasterBufferAndPrint [23:43:45]line Х отчет [23:43:45]line ИНН: 02508201610067 [23:43:45]line Кассир: Абдалбекова А. [23:43:45]line 13.09.2024 23:43 [23:43:45]line Смена: 266 [23:43:45]line РНМ: 0000000000091423 [23:43:45]line ЗНМ: 03000000022 [23:43:45]line СНО: Общий режим [23:43:45]line Всего чеков: 155 [23:43:45]line ИТОГИ ПРИХОД [23:43:45]line Чеков: 153 [23:43:45]line Общий итог: 42140.74 [23:43:45]line Итого наличными: 29024.00 [23:43:45]line Итого безнал.: 13116.74 [23:43:45]line НДС 0% : 0.00 [23:43:45]line НДС 12% : 4475.32 [23:43:45]line НСП 0% : 0.00 [23:43:45]line НСП 1,50% : 0.00 [23:43:45]line НСП 0,50% : 0.00 [23:43:45]line НСП 5% : 0.00 [23:43:45]line НСП 3% : 0.00 [23:43:45]line НСП 2% : 0.00 [23:43:45]line НСП 1% : 372.80 [23:43:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:43:45]line Чеков: 2 [23:43:45]line Общий итог: 399.00 [23:43:45]line Итого наличными: 399.00 [23:43:45]line Итого безнал.: 0.00 [23:43:45]line НДС 0% : 0.00 [23:43:45]line НДС 12% : 42.37 [23:43:45]line НСП 0% : 0.00 [23:43:45]line НСП 1,50% : 0.00 [23:43:45]line НСП 0,50% : 0.00 [23:43:45]line НСП 5% : 0.00 [23:43:45]line НСП 3% : 0.00 [23:43:45]line НСП 2% : 0.00 [23:43:45]line НСП 1% : 3.53 [23:43:45]line ИТОГИ РАСХОД [23:43:45]line Чеков: 0 [23:43:45]line Общий итог: 0.00 [23:43:45]line Итого наличными: 0.00 [23:43:45]line Итого безнал.: 0.00 [23:43:45]line НДС 0% : 0.00 [23:43:45]line НДС 12% : 0.00 [23:43:45]line НСП 0% : 0.00 [23:43:45]line НСП 1,50% : 0.00 [23:43:45]line НСП 0,50% : 0.00 [23:43:45]line НСП 5% : 0.00 [23:43:45]line НСП 3% : 0.00 [23:43:45]line НСП 2% : 0.00 [23:43:45]line НСП 1% : 0.00 [23:43:45]line ИТОГИ ВОЗВРАТ РАСХОДА [23:43:45]line Чеков: 0 [23:43:45]line Общий итог: 0.00 [23:43:45]line Итого наличными: 0.00 [23:43:45]line Итого безнал.: 0.00 [23:43:45]line НДС 0% : 0.00 [23:43:45]line НДС 12% : 0.00 [23:43:45]line НСП 0% : 0.00 [23:43:45]line НСП 1,50% : 0.00 [23:43:45]line НСП 0,50% : 0.00 [23:43:45]line НСП 5% : 0.00 [23:43:45]line НСП 3% : 0.00 [23:43:45]line НСП 2% : 0.00 [23:43:45]line НСП 1% : 0.00 [23:43:45]line Сумма внесений: 0.00 [23:43:45]line Сумма выплат: 0.00 [23:43:45]line Нал. в кассе: 28625.00 [23:43:45]line НС Приход: 29944669.09 [23:43:45]line НС Возвр.Прихода: 748672.60 [23:43:45]line НС Расход: 0.00 [23:43:45]line НС Возвр.Расхода: 0.00 [23:43:45]line ФМ: 0000000000874692 [23:43:45]written 0, free lines is 4095 [23:43:46]Write to MH i2c: 01 00 00 01 05 06 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 1C 0B 34 [23:43:46]RasterBufferAndPrint [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]written 0, free lines is 2879 [23:43:46]MH_Cut [23:43:46]Write to MH i2c: D1 01 00 08 05 01 DF [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 08 05 00 DE [23:43:46]Write to MH i2c: 01 00 00 09 05 0E [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:47]*** Cut start [23:43:47]*** Purtial cut [23:43:47]*** Stage 1: CUTSNS_PIN = 1 [23:43:47]OFD Sender: No OFD packet to send [23:43:49]Read from MH i2c: *** Stop cut motor [23:43:49]01 *** Cut end [23:43:49] [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: 01 07 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [23:43:49]process_action x_report done [23:43:49]requested_data is exist [23:43:49]produce_requested_data [23:43:49]requested_item fd.num is exist - process it [23:43:49]SAM_PROTO_GetFieldsCounters [23:43:49]wFMCommunicate request_size=4 [23:43:49]MH_SAM_APDU [23:43:49]CAPDU: 80 13 00 00 [23:43:49]Write to MH i2c: E2 08 00 0A 05 80 13 00 00 00 00 00 00 8B [23:43:49]Write i2c OK [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:49]E2 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 62 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 62 00 0A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 99 [23:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 [23:43:49]wFMCommunicate OK [23:43:49]SAM_PROTO_GetFieldsCounters done [23:43:49]requested_item shift.num is exist - process it [23:43:49]requested_item shift.opened is exist - process it [23:43:49]req_shift_opened [23:43:49]FM_GetShiftState [23:43:49]SAM_PROTO_GetShiftState [23:43:49]wFMCommunicate request_size=4 [23:43:49]MH_SAM_APDU [23:43:49]CAPDU: 80 13 01 00 [23:43:49]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [23:43:49]Write i2c OK [23:43:49]MH_I2C_Read... [23:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:49]Read from MH i2c: E2 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 19 [23:43:49]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:43:49]wFMCommunicate OK [23:43:49]SAM_PROTO_GetShiftState done [23:43:49]FM_GetShiftState done [23:43:49]req_shift_opened done [23:43:49]requested_item shift.open_date is exist - process it [23:43:49]req_shift_open_date [23:43:49]req_shift_open_date done [23:43:49]produce_requested_data done [23:43:49]produce_requested_data return {"fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:43:49]process_action_free x_report [23:43:49]json_value_free [23:43:49]json_value_free done [23:43:49]process_json_proto returns [23:43:49]Send response to host [23:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:43:49]free response buf [23:43:49]execute_script done [23:43:49]execute_script returns [23:43:49]free content buf [23:43:49]Sock 9.Close socket [23:43:49]Sock 9.Thread stoped [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]accept exits with 8 [23:44:22]New connection [23:44:22]New thread 3067247972 created [23:44:22]Thread 3067391332 joined [23:44:22]Waiting for new connection... [23:44:22] Sock 8.Parse request [23:44:22]Sock 8.Check first char [23:44:22]Sock 8.First char is OK [23:44:22]request: POST /json_proto HTTP/1.0 [23:44:22]Method: POST [23:44:22]URL: /json_proto [23:44:22]Method is POST - this is cgi request [23:44:22]url: /json_proto [23:44:22]query_string will be loaded in cgi processing [23:44:22]execute_cgi json_proto POST (null) [23:44:22]execute_cgi path=json_proto method=POST [23:44:22]POST find Content-Length [23:44:22]Host: 172.17.57.71:8080 [23:44:22]Content-Length: 215 [23:44:22]Content-Type: application/json [23:44:22] [23:44:22]POST finish read [23:44:22]Found Content-Length = 215 [23:44: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" ] } } [23:44:22]execute_script... [23:44: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" ] } } [23:44:22]POST & json_proto [23:44:22]process_json_proto [23:44:22]json parsed OK: [23:44:22]protocol is kg_v1.0 [23:44:22]action value=get_value [23:44:22]process_action get_value [23:44:22]cmd_get_value [23:44:22]process_action get_value done [23:44:22]requested_data is exist [23:44:22]produce_requested_data [23:44:22]requested_item kkm.sn is exist - process it [23:44:22]requested_item kkm.ver is exist - process it [23:44:22]requested_item fm.sn is exist - process it [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 11 00 00 [23:44:22]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 17 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [23:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:44:22]wFMCommunicate OK [23:44:22]requested_item fd.num is exist - process it [23:44:22]SAM_PROTO_GetFieldsCounters [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 13 00 00 [23:44:22]Write to MH i2c: E2 08 00 0D 05 80 13 00 00 00 00 00 00 8E [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 62 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 62 00 0D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 9C [23:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BB 68 01 00 0E 04 04 00 F9 01 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 [23:44:22]wFMCommunicate OK [23:44:22]SAM_PROTO_GetFieldsCounters done [23:44:22]requested_item shift.num is exist - process it [23:44:22]requested_item shift.opened is exist - process it [23:44:22]req_shift_opened [23:44:22]FM_GetShiftState [23:44:22]SAM_PROTO_GetShiftState [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 13 01 00 [23:44:22]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 0E 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 1C [23:44:22]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:44:22]wFMCommunicate OK [23:44:22]SAM_PROTO_GetShiftState done [23:44:22]FM_GetShiftState done [23:44:22]req_shift_opened done [23:44:22]requested_item shift.open_date is exist - process it [23:44:22]req_shift_open_date [23:44:22]req_shift_open_date done [23:44:22]produce_requested_data done [23:44:22]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930} [23:44:22]process_action_free get_value [23:44:22]json_value_free [23:44:22]json_value_free done [23:44:22]process_json_proto returns [23:44:22]Send response to host [23:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92347,"shift.num":505,"shift.opened":1,"shift.open_date":1726186930}}} [23:44:22]free response buf [23:44:22]execute_script done [23:44:22]execute_script returns [23:44:22]free content buf [23:44:22]Sock 8.Close socket [23:44:22]Sock 8.Thread stoped [23:44:22]accept exits with 9 [23:44:22]New connection [23:44:22]New thread 3067391332 created [23:44:22]Thread 3067247972 joined [23:44:22]Waiting for new connection... [23:44:22] Sock 9.Parse request [23:44:22]Sock 9.Check first char [23:44:22]Sock 9.First char is OK [23:44:22]request: POST /json_proto HTTP/1.0 [23:44:22]Method: POST [23:44:22]URL: /json_proto [23:44:22]Method is POST - this is cgi request [23:44:22]url: /json_proto [23:44:22]query_string will be loaded in cgi processing [23:44:22]execute_cgi json_proto POST (null) [23:44:22]execute_cgi path=json_proto method=POST [23:44:22]POST find Content-Length [23:44:22]Host: 172.17.57.71:8080 [23:44:22]Content-Length: 331 [23:44:22]Content-Type: application/json [23:44:22] [23:44:22]POST finish read [23:44:22]Found Content-Length = 331 [23:44: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" ] } } [23:44:22]execute_script... [23:44: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" ] } } [23:44:22]POST & json_proto [23:44:22]process_json_proto [23:44:22]json parsed OK: [23:44:22]protocol is kg_v1.0 [23:44:22]action value=get_value [23:44:22]process_action get_value [23:44:22]cmd_get_value [23:44:22]process_action get_value done [23:44:22]requested_data is exist [23:44:22]produce_requested_data [23:44:22]requested_item fm.sale.total is exist - process it [23:44:22]SAM_PROTO_GetFMData [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 13 03 00 [23:44:22]Write to MH i2c: E2 08 00 0F 05 80 13 03 00 00 00 00 00 93 [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]OFD Sender: No OFD packet to send [23:44:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:44:23]Read from MH i2c: E2 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 0F 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 17 [23:44:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:44:23]wFMCommunicate OK [23:44:23]wFMCommunicate request_size=4 [23:44:23]MH_SAM_APDU [23:44:23]CAPDU: 80 17 00 00 [23:44:23]Write to MH i2c: E2 08 00 10 05 80 17 00 00 00 00 00 00 95 [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:23]Read from MH i2c: E2 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 10 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 8E [23:44: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 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:44:23]wFMCommunicate OK [23:44:23]wFMCommunicate request_size=4 [23:44:23]MH_SAM_APDU [23:44:23]CAPDU: 80 17 00 00 [23:44:23]Write to MH i2c: E2 08 00 11 05 80 17 00 00 00 00 00 00 96 [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:23]Read from MH i2c: E2 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 11 05 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 A8 [23:44: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 [23:44:23]wFMCommunicate OK [23:44:23]wFMCommunicate request_size=4 [23:44:23]MH_SAM_APDU [23:44:23]CAPDU: 80 17 00 00 [23:44:23]Write to MH i2c: E2 08 00 12 05 80 17 00 00 00 00 00 00 97 [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:23]Read from MH i2c: E2 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: E2 FD 00 12 05 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 23 [23:44:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:44:23]wFMCommunicate OK [23:44:23]wFMCommunicate request_size=4 [23:44:23]MH_SAM_APDU [23:44:23]CAPDU: 80 17 00 00 [23:44:23]Write to MH i2c: E2 08 00 13 05 80 17 00 00 00 00 00 00 98 [23:44:23]Write i2c OK [23:44:24]MH_I2C_Read... [23:44:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:44:24]Read from MH i2c: E2 [23:44:24]MH_I2C_Read... [23:44:24]Read from MH i2c: E2 E2 00 [23:44:24]MH_I2C_Read... [23:44:24]Read from MH i2c: E2 E2 00 13 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [23:44: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 [23:44:24]wFMCommunicate OK [23:44:24]SAM_PROTO_GetFMData done [23:44:24]requested_item fm.sale_refund.total is exist - process it [23:44:24]requested_item fm.buy.total is exist - process it [23:44:24]requested_item shift.sale.total is exist - process it [23:44:24]SAM_PROTO_GetShiftData [23:44:24]wFMCommunicate request_size=4 [23:44:24]MH_SAM_APDU [23:44:24]CAPDU: 80 13 02 00 [23:44:24]Write to MH i2c: E2 08 00 14 05 80 13 02 00 00 00 00 00 97 [23:44:24]Write i2c OK [23:44:24]MH_I2C_Read... [23:44:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:44:24]Read from MH i2c: E2 [23:44:24]MH_I2C_Read... [23:44:24]Read from MH i2c: E2 FD 00 [23:44:24]MH_I2C_Read... [23:44:24]Read from MH i2c: E2 FD 00 14 05 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 11 [23:44:24]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:44:24]wFMCommunicate OK [23:44:24]wFMCommunicate request_size=4 [23:44:24]MH_SAM_APDU [23:44:24]CAPDU: 80 17 00 00 [23:44:24]Write to MH i2c: E2 08 00 15 05 80 17 00 00 00 00 00 00 9A [23:44:24]Write i2c OK [23:44:24]MH_I2C_Read... [23:44:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:25]Read from MH i2c: E2 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 15 05 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [23:44:25]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:25]wFMCommunicate OK [23:44:25]wFMCommunicate request_size=4 [23:44:25]MH_SAM_APDU [23:44:25]CAPDU: 80 17 00 00 [23:44:25]Write to MH i2c: E2 08 00 16 05 80 17 00 00 00 00 00 00 9B [23:44:25]Write i2c OK [23:44:25]MH_I2C_Read... [23:44:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:25]Read from MH i2c: E2 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 16 05 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [23:44:25]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:25]wFMCommunicate OK [23:44:25]wFMCommunicate request_size=4 [23:44:25]MH_SAM_APDU [23:44:25]CAPDU: 80 17 00 00 [23:44:25]Write to MH i2c: E2 08 00 17 05 80 17 00 00 00 00 00 00 9C [23:44:25]Write i2c OK [23:44:25]MH_I2C_Read... [23:44:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:25]Read from MH i2c: E2 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 [23:44:25]MH_I2C_Read... [23:44:25]Read from MH i2c: E2 FD 00 17 05 00 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 90 00 0B [23:44:25]RAPDU: 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 90 00 [23:44:25]wFMCommunicate OK [23:44:25]wFMCommunicate request_size=4 [23:44:25]MH_SAM_APDU [23:44:25]CAPDU: 80 17 00 00 [23:44:25]Write to MH i2c: E2 08 00 18 05 80 17 00 00 00 00 00 00 9D [23:44:25]Write i2c OK [23:44:25]MH_I2C_Read... [23:44:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:44:26]Read from MH i2c: E2 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 D3 00 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 D3 00 18 05 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [23:44:26]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:26]wFMCommunicate OK [23:44:26]SAM_PROTO_GetShiftData done [23:44:26]requested_item shift.sale.total_cash is exist - process it [23:44:26]requested_item shift.sale_refund.total is exist - process it [23:44:26]requested_item shift.sale_refund.total_cash is exist - process it [23:44:26]requested_item shift.buy.total is exist - process it [23:44:26]requested_item shift.buy.total_cash is exist - process it [23:44:26]produce_requested_data done [23:44:26]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:44:26]process_action_free get_value [23:44:26]json_value_free [23:44:26]json_value_free done [23:44:26]process_json_proto returns [23:44:26]Send response to host [23:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:44:26]free response buf [23:44:26]execute_script done [23:44:26]execute_script returns [23:44:26]free content buf [23:44:26]Sock 9.Close socket [23:44:26]Sock 9.Thread stoped [23:44:26]accept exits with 8 [23:44:26]New connection [23:44:26]New thread 3067247972 created [23:44:26]Thread 3067391332 joined [23:44:26]Waiting for new connection... [23:44:26] Sock 8.Parse request [23:44:26]Sock 8.Check first char [23:44:26]Sock 8.First char is OK [23:44:26]request: POST /json_proto HTTP/1.0 [23:44:26]Method: POST [23:44:26]URL: /json_proto [23:44:26]Method is POST - this is cgi request [23:44:26]url: /json_proto [23:44:26]query_string will be loaded in cgi processing [23:44:26]execute_cgi json_proto POST (null) [23:44:26]execute_cgi path=json_proto method=POST [23:44:26]POST find Content-Length [23:44:26]Host: 172.17.57.71:8080 [23:44:26]Content-Length: 331 [23:44:26]Content-Type: application/json [23:44:26] [23:44:26]POST finish read [23:44:26]Found Content-Length = 331 [23:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:44:26]execute_script... [23:44:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:44:26]POST & json_proto [23:44:26]process_json_proto [23:44:26]json parsed OK: [23:44:26]protocol is kg_v1.0 [23:44:26]action value=get_value [23:44:26]process_action get_value [23:44:26]cmd_get_value [23:44:26]process_action get_value done [23:44:26]requested_data is exist [23:44:26]produce_requested_data [23:44:26]requested_item fm.sale.total is exist - process it [23:44:26]SAM_PROTO_GetFMData [23:44:26]wFMCommunicate request_size=4 [23:44:26]MH_SAM_APDU [23:44:26]CAPDU: 80 13 03 00 [23:44:26]Write to MH i2c: E2 08 00 19 05 80 13 03 00 00 00 00 00 9D [23:44:26]Write i2c OK [23:44:26]MH_I2C_Read... [23:44:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:44:26]Read from MH i2c: E2 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 FD 00 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 FD 00 19 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 21 [23:44:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:44:26]wFMCommunicate OK [23:44:26]wFMCommunicate request_size=4 [23:44:26]MH_SAM_APDU [23:44:26]CAPDU: 80 17 00 00 [23:44:26]Write to MH i2c: E2 08 00 1A 05 80 17 00 00 00 00 00 00 9F [23:44:26]Write i2c OK [23:44:26]MH_I2C_Read... [23:44:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:26]Read from MH i2c: E2 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 FD 00 [23:44:26]MH_I2C_Read... [23:44:26]Read from MH i2c: E2 FD 00 1A 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 98 [23:44:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:44:27]wFMCommunicate OK [23:44:27]wFMCommunicate request_size=4 [23:44:27]MH_SAM_APDU [23:44:27]CAPDU: 80 17 00 00 [23:44:27]Write to MH i2c: E2 08 00 1B 05 80 17 00 00 00 00 00 00 A0 [23:44:27]Write i2c OK [23:44:27]MH_I2C_Read... [23:44:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:27]Read from MH i2c: E2 [23:44:27]MH_I2C_Read... [23:44:27]Read from MH i2c: E2 FD 00 [23:44:27]MH_I2C_Read... [23:44:27]Read from MH i2c: E2 FD 00 1B 05 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 B2 [23:44:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:44:27]wFMCommunicate OK [23:44:27]wFMCommunicate request_size=4 [23:44:27]MH_SAM_APDU [23:44:27]CAPDU: 80 17 00 00 [23:44:27]Write to MH i2c: E2 08 00 1C 05 80 17 00 00 00 00 00 00 A1 [23:44:27]Write i2c OK [23:44:27]MH_I2C_Read... [23:44:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:27]Read from MH i2c: E2 [23:44:27]MH_I2C_Read... [23:44:27]Read from MH i2c: E2 FD 00 [23:44:27]MH_I2C_Read... [23:44:27]Read from MH i2c: E2 FD 00 1C 05 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 2D [23:44:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:44:27]wFMCommunicate OK [23:44:27]wFMCommunicate request_size=4 [23:44:27]MH_SAM_APDU [23:44:27]CAPDU: 80 17 00 00 [23:44:27]Write to MH i2c: E2 08 00 1D 05 80 17 00 00 00 00 00 00 A2 [23:44:27]Write i2c OK [23:44:27]MH_I2C_Read... [23:44:27]OFD Sender: No OFD packet to send [23:44:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:44:28]Read from MH i2c: E2 [23:44:28]MH_I2C_Read... [23:44:28]Read from MH i2c: E2 E2 00 [23:44:28]MH_I2C_Read... [23:44:28]Read from MH i2c: E2 E2 00 1D 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [23:44:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:28]wFMCommunicate OK [23:44:28]SAM_PROTO_GetFMData done [23:44:28]requested_item fm.sale_refund.total is exist - process it [23:44:28]requested_item fm.buy.total is exist - process it [23:44:28]requested_item shift.sale.total is exist - process it [23:44:28]SAM_PROTO_GetShiftData [23:44:28]wFMCommunicate request_size=4 [23:44:28]MH_SAM_APDU [23:44:28]CAPDU: 80 13 02 00 [23:44:28]Write to MH i2c: E2 08 00 1E 05 80 13 02 00 00 00 00 00 A1 [23:44:28]Write i2c OK [23:44:28]MH_I2C_Read... [23:44:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:44:28]Read from MH i2c: E2 [23:44:28]MH_I2C_Read... [23:44:28]Read from MH i2c: E2 FD 00 [23:44:28]MH_I2C_Read... [23:44:28]Read from MH i2c: E2 FD 00 1E 05 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 1B [23:44:28]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:44:28]wFMCommunicate OK [23:44:28]wFMCommunicate request_size=4 [23:44:28]MH_SAM_APDU [23:44:28]CAPDU: 80 17 00 00 [23:44:28]Write to MH i2c: E2 08 00 1F 05 80 17 00 00 00 00 00 00 A4 [23:44:28]Write i2c OK [23:44:28]MH_I2C_Read... [23:44:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:29]Read from MH i2c: E2 [23:44:29]MH_I2C_Read... [23:44:29]Read from MH i2c: E2 FD 00 [23:44:29]MH_I2C_Read... [23:44:29]Read from MH i2c: E2 FD 00 1F 05 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [23:44:29]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:29]wFMCommunicate OK [23:44:29]wFMCommunicate request_size=4 [23:44:29]MH_SAM_APDU [23:44:29]CAPDU: 80 17 00 00 [23:44:29]Write to MH i2c: E2 08 00 20 05 80 17 00 00 00 00 00 00 A5 [23:44:29]Write i2c OK [23:44:29]MH_I2C_Read... [23:44:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:29]Read from MH i2c: E2 [23:44:29]MH_I2C_Read... [23:44:29]Read from MH i2c: E2 FD 00 [23:44:29]MH_I2C_Read... [23:44:29]Read from MH i2c: E2 FD 00 20 05 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [23:44:29]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:29]wFMCommunicate OK [23:44:29]wFMCommunicate request_size=4 [23:44:29]MH_SAM_APDU [23:44:29]CAPDU: 80 17 00 00 [23:44:29]Write to MH i2c: E2 08 00 21 05 80 17 00 00 00 00 00 00 A6 [23:44:29]Write i2c OK [23:44:29]MH_I2C_Read... [23:44:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:30]Read from MH i2c: E2 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 FD 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 FD 00 21 05 00 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 90 00 15 [23:44:30]RAPDU: 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 90 00 [23:44:30]wFMCommunicate OK [23:44:30]wFMCommunicate request_size=4 [23:44:30]MH_SAM_APDU [23:44:30]CAPDU: 80 17 00 00 [23:44:30]Write to MH i2c: E2 08 00 22 05 80 17 00 00 00 00 00 00 A7 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:44:30]Read from MH i2c: E2 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 D3 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 D3 00 22 05 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [23:44:30]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:30]wFMCommunicate OK [23:44:30]SAM_PROTO_GetShiftData done [23:44:30]requested_item shift.sale.total_cash is exist - process it [23:44:30]requested_item shift.sale_refund.total is exist - process it [23:44:30]requested_item shift.sale_refund.total_cash is exist - process it [23:44:30]requested_item shift.buy.total is exist - process it [23:44:30]requested_item shift.buy.total_cash is exist - process it [23:44:30]produce_requested_data done [23:44:30]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:44:30]process_action_free get_value [23:44:30]json_value_free [23:44:30]json_value_free done [23:44:30]process_json_proto returns [23:44:30]Send response to host [23:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:44:30]free response buf [23:44:30]execute_script done [23:44:30]execute_script returns [23:44:30]free content buf [23:44:30]Sock 8.Close socket [23:44:30]Sock 8.Thread stoped [23:44:30]accept exits with 9 [23:44:30]New connection [23:44:30]New thread 3067391332 created [23:44:30]Thread 3067247972 joined [23:44:30]Waiting for new connection... [23:44:30] Sock 9.Parse request [23:44:30]Sock 9.Check first char [23:44:30]Sock 9.First char is OK [23:44:30]request: POST /json_proto HTTP/1.0 [23:44:30]Method: POST [23:44:30]URL: /json_proto [23:44:30]Method is POST - this is cgi request [23:44:30]url: /json_proto [23:44:30]query_string will be loaded in cgi processing [23:44:30]execute_cgi json_proto POST (null) [23:44:30]execute_cgi path=json_proto method=POST [23:44:30]POST find Content-Length [23:44:30]Host: 172.17.57.71:8080 [23:44:30]Content-Length: 278 [23:44:30]Content-Type: application/json [23:44:30] [23:44:30]POST finish read [23:44:30]Found Content-Length = 278 [23:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:30]execute_script... [23:44:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:30]POST & json_proto [23:44:30]process_json_proto [23:44:30]json parsed OK: [23:44:30]protocol is kg_v1.0 [23:44:30]action value=close_shift [23:44:30]process_action close_shift [23:44:30]cmd_close_shift [23:44:30]MH_GetDate [23:44:30]Write to MH i2c: F0 00 00 23 05 17 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 09 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 09 00 23 05 00 5F CE E4 66 33 3A A4 66 0E [23:44:30]GetLastDocTimeStamp 1726271018 [23:44:30]current date 1726271071 [23:44:30]FM_GetShiftState [23:44:30]SAM_PROTO_GetShiftState [23:44:30]wFMCommunicate request_size=4 [23:44:30]MH_SAM_APDU [23:44:30]CAPDU: 80 13 01 00 [23:44:30]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:30]Read from MH i2c: E2 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 0E 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 B2 85 E3 66 00 00 00 00 90 00 32 [23:44:30]RAPDU: 09 00 01 B2 85 E3 66 00 00 00 00 90 00 [23:44:30]wFMCommunicate OK [23:44:30]SAM_PROTO_GetShiftState done [23:44:30]FM_GetShiftState done [23:44:30]KKMCreateCloseShiftDocument [23:44:30]Load OK [23:44:30]Malloc new data [23:44:30]MH_GetDate [23:44:30]Write to MH i2c: F0 00 00 25 05 19 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 09 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: F0 09 00 25 05 00 5F CE E4 66 33 3A A4 66 10 [23:44:30]Malloc new data [23:44:30]Malloc new data [23:44:30]Malloc new data [23:44:30]Malloc new data [23:44:30]KKMCreateCloseShiftDocument OK [23:44:30]KKMSetCloseShiftData OK [23:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=77 [23:44:30]tlvbuf is 012C4AB0 [23:44:30]KKMLoadAndSignCloseShiftData [23:44:30]SAM_PROTO_ProcessDocument [23:44:30]wFMCommunicate request_size=9 [23:44:30]MH_SAM_APDU [23:44:30]CAPDU: 80 15 01 00 04 05 00 4D 00 [23:44:30]Write to MH i2c: E2 0C 00 26 05 80 15 01 00 04 00 05 00 4D 00 00 00 04 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:30]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:44:30]Read from MH i2c: E2 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 03 00 [23:44:30]MH_I2C_Read... [23:44:30]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [23:44:30]RAPDU: 90 00 [23:44:30]wFMCommunicate OK [23:44:30]wFMCommunicate request_size=23 [23:44:30]MH_SAM_APDU [23:44:30]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:44:30]Write to MH i2c: E2 1A 00 27 05 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 A1 [23:44:30]Write i2c OK [23:44:30]MH_I2C_Read... [23:44:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:44:31]Read from MH i2c: E2 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [23:44:31]RAPDU: 90 00 [23:44:31]wFMCommunicate OK [23:44:31]wFMCommunicate request_size=36 [23:44:31]MH_SAM_APDU [23:44:31]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [23:44:31]Write to MH i2c: E2 27 00 28 05 80 15 02 00 1F 00 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 64 [23:44:31]Write i2c OK [23:44:31]MH_I2C_Read... [23:44:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:44:31]Read from MH i2c: E2 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [23:44:31]RAPDU: 90 00 [23:44:31]wFMCommunicate OK [23:44:31]wFMCommunicate request_size=13 [23:44:31]MH_SAM_APDU [23:44:31]CAPDU: 80 15 02 00 08 F4 03 04 00 5F CE E4 66 [23:44:31]Write to MH i2c: E2 10 00 29 05 80 15 02 00 08 00 F4 03 04 00 5F CE E4 66 00 00 30 [23:44:31]Write i2c OK [23:44:31]MH_I2C_Read... [23:44:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:44:31]Read from MH i2c: E2 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [23:44:31]RAPDU: 90 00 [23:44:31]wFMCommunicate OK [23:44:31]wFMCommunicate request_size=25 [23:44:31]MH_SAM_APDU [23:44:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [23:44:31]Write to MH i2c: E2 1C 00 2A 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 0B [23:44:31]Write i2c OK [23:44:31]MH_I2C_Read... [23:44:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:44:31]Read from MH i2c: E2 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [23:44:31]RAPDU: 90 00 [23:44:31]wFMCommunicate OK [23:44:31]wFMCommunicate request_size=4 [23:44:31]MH_SAM_APDU [23:44:31]CAPDU: 80 15 03 00 [23:44:31]Write to MH i2c: E2 08 00 2B 05 80 15 03 00 00 00 00 00 B1 [23:44:31]Write i2c OK [23:44:31]MH_I2C_Read... [23:44:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:44:31]Read from MH i2c: E2 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 FD 00 [23:44:31]MH_I2C_Read... [23:44:31]Read from MH i2c: E2 FD 00 2B 05 00 F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 90 00 F7 [23:44:31]RAPDU: F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 90 00 [23:44:32]wFMCommunicate OK [23:44:32]SAM_PROTO_ProcessDocument answer len = 1273 [23:44:32]SAM_PROTO_ProcessDocument remain to read = 1025 [23:44:32]wFMCommunicate request_size=4 [23:44:32]MH_SAM_APDU [23:44:32]CAPDU: 80 17 00 00 [23:44:32]Write to MH i2c: E2 08 00 2C 05 80 17 00 00 00 00 00 00 B1 [23:44:32]Write i2c OK [23:44:32]MH_I2C_Read... [23:44:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:32]Read from MH i2c: E2 [23:44:32]MH_I2C_Read... [23:44:32]Read from MH i2c: E2 FD 00 [23:44:32]MH_I2C_Read... [23:44:32]Read from MH i2c: E2 FD 00 2C 05 00 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [23:44:32]RAPDU: 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:32]wFMCommunicate OK [23:44:32]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:44:32]SAM_PROTO_ProcessDocument remain to read = 775 [23:44:32]wFMCommunicate request_size=4 [23:44:32]MH_SAM_APDU [23:44:32]CAPDU: 80 17 00 00 [23:44:32]Write to MH i2c: E2 08 00 2D 05 80 17 00 00 00 00 00 00 B2 [23:44:32]Write i2c OK [23:44:32]MH_I2C_Read... [23:44:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:32]Read from MH i2c: E2 [23:44:32]MH_I2C_Read... [23:44:32]Read from MH i2c: E2 FD 00 [23:44:32]MH_I2C_Read... [23:44:32]Read from MH i2c: E2 FD 00 2D 05 00 00 00 EF 03 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 90 00 14 [23:44:32]RAPDU: 00 00 EF 03 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 90 00 [23:44:33]wFMCommunicate OK [23:44:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:44:33]SAM_PROTO_ProcessDocument remain to read = 525 [23:44:33]wFMCommunicate request_size=4 [23:44:33]MH_SAM_APDU [23:44:33]CAPDU: 80 17 00 00 [23:44:33]Write to MH i2c: E2 08 00 2E 05 80 17 00 00 00 00 00 00 B3 [23:44:33]OFD Sender: No OFD packet to send [23:44:33]Write i2c OK [23:44:33]MH_I2C_Read... [23:44:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:33]Read from MH i2c: E2 [23:44:33]MH_I2C_Read... [23:44:33]Read from MH i2c: E2 FD 00 [23:44:33]MH_I2C_Read... [23:44:33]Read from MH i2c: E2 FD 00 2E 05 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CC [23:44:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:33]wFMCommunicate OK [23:44:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:44:33]SAM_PROTO_ProcessDocument remain to read = 275 [23:44:33]wFMCommunicate request_size=4 [23:44:33]MH_SAM_APDU [23:44:33]CAPDU: 80 17 00 00 [23:44:33]Write to MH i2c: E2 08 00 2F 05 80 17 00 00 00 00 00 00 B4 [23:44:33]Write i2c OK [23:44:33]MH_I2C_Read... [23:44:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:33]Read from MH i2c: E2 [23:44:33]MH_I2C_Read... [23:44:33]Read from MH i2c: E2 FD 00 [23:44:33]MH_I2C_Read... [23:44:33]Read from MH i2c: E2 FD 00 2F 05 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [23:44:33]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:44:34]wFMCommunicate OK [23:44:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:44:34]SAM_PROTO_ProcessDocument remain to read = 25 [23:44:34]wFMCommunicate request_size=4 [23:44:34]MH_SAM_APDU [23:44:34]CAPDU: 80 17 00 00 [23:44:34]Write to MH i2c: E2 08 00 30 05 80 17 00 00 00 00 00 00 B5 [23:44:34]Write i2c OK [23:44:34]MH_I2C_Read... [23:44:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 25! [23:44:34]Read from MH i2c: E2 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: E2 1C 00 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: E2 1C 00 30 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AB FC BA 1E 49 0A 90 00 C8 [23:44:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AB FC BA 1E 49 0A 90 00 [23:44:34]wFMCommunicate OK [23:44:34]SAM_PROTO_ProcessDocument received (without SW) 25 bytes [23:44:34]SAM_PROTO_ProcessDocument done [23:44:34]1209 (1) - 1.0 - номер версии ФФД [23:44:34]1041 (16) - 0000000000874692 - номер ФМ [23:44:34]1040 (4) - 92348 - номер ФД [23:44:34]1038 (4) - 505 - номер смены [23:44:34]1118 (4) - 155 - количество кассовых чеков за смену [23:44:34]1111 (4) - 157 - общее количество ФД за смену [23:44:34]1194 (1202) - счетчики итогов смены [23:44:34] 1134 (4) - 155 - количество чеков со всеми признаками расчетов [23:44:34] 1129 (155) - счетчики операций «приход» [23:44:34] 1135 (4) - 153 - количество чеков по признаку расчетов [23:44:34] 1201 (3) - 42140.74 - общая итоговая сумма в чеках [23:44:34] 1136 (3) - 29024.00 - итоговая сумма в чеках наличными [23:44:34] 1138 (3) - 13116.74 - итоговая сумма в чеках безналичными [23:44:34] 1024 (122) - суммы налогов [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 0% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1006 (12) - суммы НДС [23:44:34] 1010 (1) - 12% - код ставки НДС [23:44:34] 1011 (3) - 4475.32 - сумма НДС по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (11) - суммы НСП [23:44:34] 1014 (1) - 1% - код ставки НСП [23:44:34] 1015 (2) - 372.80 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 2% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 3% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 5% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1130 (149) - счетчики операций «возврат прихода» [23:44:34] 1135 (4) - 2 - количество чеков по признаку расчетов [23:44:34] 1201 (2) - 399.00 - общая итоговая сумма в чеках [23:44:34] 1136 (2) - 399.00 - итоговая сумма в чеках наличными [23:44:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:44:34] 1024 (121) - суммы налогов [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 0% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1006 (11) - суммы НДС [23:44:34] 1010 (1) - 12% - код ставки НДС [23:44:34] 1011 (2) - 42.37 - сумма НДС по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (11) - суммы НСП [23:44:34] 1014 (1) - 1% - код ставки НСП [23:44:34] 1015 (2) - 3.53 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 2% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 3% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 5% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1131 (141) - счетчики операций «расход» [23:44:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:44:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:44:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:44:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:44:34] 1024 (117) - суммы налогов [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 0% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 12% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 2% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 3% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 5% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1132 (141) - счетчики операций «возврат расхода» [23:44:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:44:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:44:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:44:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:44:34] 1024 (117) - суммы налогов [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 0% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1006 (9) - суммы НДС [23:44:34] 1010 (1) - 12% - код ставки НДС [23:44:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 2% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 3% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 5% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 0,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1007 (9) - суммы НСП [23:44:34] 1014 (1) - 1,50% - код ставки НСП [23:44:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:44:34] 1133 (588) - - счетчики коррекции - не используются [23:44:34]1077 (6) - 189101942655242 - ФПД [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1209 (04B9) [23:44:34]Malloc new data [23:44:34]Processing tag 1041 (0411) [23:44:34]Processing tag 1040 (0410) [23:44:34]Malloc new data [23:44:34]Processing tag 1038 (040E) [23:44:34]Malloc new data [23:44:34]Processing tag 1118 (045E) [23:44:34]Malloc new data [23:44:34]Processing tag 1111 (0457) [23:44:34]Malloc new data [23:44:34]Processing tag 1194 (04AA) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1134 (046E) [23:44:34]Malloc new data [23:44:34]Processing tag 1129 (0469) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1135 (046F) [23:44:34]Malloc new data [23:44:34]Processing tag 1201 (04B1) [23:44:34]Malloc new data [23:44:34]Processing tag 1136 (0470) [23:44:34]Malloc new data [23:44:34]Processing tag 1138 (0472) [23:44:34]Malloc new data [23:44:34]Processing tag 1024 (0400) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1006 (03EE) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1010 (03F2) [23:44:34]Malloc new data [23:44:34]Processing tag 1011 (03F3) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1006 (03EE) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1010 (03F2) [23:44:34]Malloc new data [23:44:34]Processing tag 1011 (03F3) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:34]Processing tag 1015 (03F7) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:34]Processing tag 1015 (03F7) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:34]Processing tag 1015 (03F7) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:34]Processing tag 1015 (03F7) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:34]Processing tag 1015 (03F7) [23:44:34]Malloc new data [23:44:34]SetTLVBufToDocument err=0 [23:44:34]Processing tag 1007 (03EF) [23:44:34]Load OK [23:44:34]SetTLVBufToDocument [23:44:34]Processing tag 1014 (03F6) [23:44:34]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1130 (046A) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1135 (046F) [23:44:35]Malloc new data [23:44:35]Processing tag 1201 (04B1) [23:44:35]Malloc new data [23:44:35]Processing tag 1136 (0470) [23:44:35]Malloc new data [23:44:35]Processing tag 1138 (0472) [23:44:35]Malloc new data [23:44:35]Processing tag 1024 (0400) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1131 (046B) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1135 (046F) [23:44:35]Malloc new data [23:44:35]Processing tag 1201 (04B1) [23:44:35]Malloc new data [23:44:35]Processing tag 1136 (0470) [23:44:35]Malloc new data [23:44:35]Processing tag 1138 (0472) [23:44:35]Malloc new data [23:44:35]Processing tag 1024 (0400) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1132 (046C) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1135 (046F) [23:44:35]Malloc new data [23:44:35]Processing tag 1201 (04B1) [23:44:35]Malloc new data [23:44:35]Processing tag 1136 (0470) [23:44:35]Malloc new data [23:44:35]Processing tag 1138 (0472) [23:44:35]Malloc new data [23:44:35]Processing tag 1024 (0400) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1006 (03EE) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1010 (03F2) [23:44:35]Malloc new data [23:44:35]Processing tag 1011 (03F3) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1007 (03EF) [23:44:35]Load OK [23:44:35]SetTLVBufToDocument [23:44:35]Processing tag 1014 (03F6) [23:44:35]Malloc new data [23:44:35]Processing tag 1015 (03F7) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1133 (046D) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Processing tag 1077 (0435) [23:44:35]Malloc new data [23:44:35]SetTLVBufToDocument err=0 [23:44:35]Malloc new data [23:44:35]SAM_PROTO_GetFMData [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 13 03 00 [23:44:35]Write to MH i2c: E2 08 00 31 05 80 13 03 00 00 00 00 00 B5 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 FD 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 FD 00 31 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 39 [23:44:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [23:44:36]wFMCommunicate OK [23:44:36]wFMCommunicate request_size=4 [23:44:36]MH_SAM_APDU [23:44:36]CAPDU: 80 17 00 00 [23:44:36]Write to MH i2c: E2 08 00 32 05 80 17 00 00 00 00 00 00 B7 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:36]Read from MH i2c: E2 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 FD 00 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 FD 00 32 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 B0 [23:44:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:44:36]wFMCommunicate OK [23:44:36]wFMCommunicate request_size=4 [23:44:36]MH_SAM_APDU [23:44:36]CAPDU: 80 17 00 00 [23:44:36]Write to MH i2c: E2 08 00 33 05 80 17 00 00 00 00 00 00 B8 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 FD 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 FD 00 33 05 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 CA [23:44:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:44:37]wFMCommunicate OK [23:44:37]wFMCommunicate request_size=4 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 17 00 00 [23:44:37]Write to MH i2c: E2 08 00 34 05 80 17 00 00 00 00 00 00 B9 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 FD 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 FD 00 34 05 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 45 [23:44:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:44:37]wFMCommunicate OK [23:44:37]wFMCommunicate request_size=4 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 17 00 00 [23:44:37]Write to MH i2c: E2 08 00 35 05 80 17 00 00 00 00 00 00 BA [23:44:37]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]OFD Sender: No OFD packet to send [23:44:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 E2 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 E2 00 35 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [23:44:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_GetFMData done [23:44:38]Malloc new data [23:44:38]Malloc new data [23:44:38]Malloc new data [23:44:38]Malloc new data [23:44:38]KKMLoadAndSignCloseShiftData err=0 [23:44:38]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абдалбекова А. 13.09.2024 23:44 Смена: 505 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Чеков за смену: 155 ФД за смену: 157 Всего чеков: 155 ИТОГИ ПРИХОД Чеков: 153 Общий итог: 42140.74 Итого наличными: 29024.00 Итого безнал.: 13116.74 НДС 0% : 0.00 НДС 12% : 4475.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 372.80 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 399.00 Итого наличными: 399.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 42.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.53 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 28625.00 НС Приход: 29944669.09 НС Возвр.Прихода: 748672.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 92348 ФМ: 0000000000874692 ФПД: 189101942655242 [23:44:38]StoreToDocumentArchive [23:44:38]shift 505 fd 92348 [23:44:38]save to /storage/0505/doc_00092348 [23:44:38]save last doc name /storage/0505/doc_00092348 to /storage/kkm_last_doc_name [23:44:38]save OK [23:44:38]Clear old archive folders... [23:44:38]Remove dir /storage/0266 [23:44:38]opendir ok [23:44:38]file . [23:44:38]file .. [23:44:38]file doc_1726271025 [23:44:38]remove file /storage/0266/doc_1726271025 [23:44:38]remove dir /storage/0266 [23:44:38]NVStorageSaveData kkm_registers [23:44:38]File name is /storage/kkm_registers [23:44:38]Write 24 bytes [23:44:38]NVStorageSaveData done [23:44:38]NVStorageSaveData kkm_registers [23:44:38]File name is /storage/kkm_registers [23:44:38]Write 24 bytes [23:44:38]NVStorageSaveData done [23:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [23:44:38]tlvbuf is 01427320 [23:44:38]SAM_PROTO_ClearQueue [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 09 00 00 [23:44:38]Write to MH i2c: E2 08 00 36 05 80 09 00 00 00 00 00 00 AD [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_ClearQueue done [23:44:38]KKMCreateOFDPacket [23:44:38]OFDProtocolAddRootSTLVToBuf [23:44:38]FM_MakeSignedData [23:44:38]FM_MakeSignedData [23:44:38]SAM_PROTO_SignData [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 0D 01 02 [23:44:38]Write to MH i2c: E2 08 00 37 05 80 0D 01 02 00 00 00 00 B5 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]wFMCommunicate request_size=255 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 0D 02 02 FA 05 00 6D 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 5F CE E4 66 0E 04 04 00 F9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 D9 04 6E 04 04 00 9B 00 00 00 69 04 A2 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [23:44:38]Write to MH i2c: E2 02 01 38 05 80 0D 02 02 FA 00 05 00 6D 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 5F CE E4 66 0E 04 04 00 F9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 D9 04 6E 04 04 00 9B 00 00 00 69 04 A2 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 F4 [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 03 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [23:44:39]RAPDU: 90 00 [23:44:39]wFMCommunicate OK [23:44:39]wFMCommunicate request_size=255 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 6A 04 9D 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 01 00 00 00 04 80 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 8D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 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 [23:44:39]Write to MH i2c: E2 02 01 39 05 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 6A 04 9D 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 01 00 00 00 04 80 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 8D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 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 00 00 5C [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 03 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [23:44:39]RAPDU: 90 00 [23:44:39]wFMCommunicate OK [23:44:39]wFMCommunicate request_size=255 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 0D 02 02 FA 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 [23:44:40]Write to MH i2c: E2 02 01 3A 05 80 0D 02 02 FA 00 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 00 00 71 [23:44:40]Write i2c OK [23:44:40]MH_I2C_Read... [23:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:40]Read from MH i2c: E2 [23:44:40]MH_I2C_Read... [23:44:40]Read from MH i2c: E2 03 00 [23:44:40]MH_I2C_Read... [23:44:40]Read from MH i2c: E2 03 00 3A 05 00 90 00 B3 [23:44:40]RAPDU: 90 00 [23:44:40]wFMCommunicate OK [23:44:40]wFMCommunicate request_size=255 [23:44:40]MH_SAM_APDU [23:44:40]CAPDU: 80 0D 02 02 FA 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 [23:44:40]Write to MH i2c: E2 02 01 3B 05 80 0D 02 02 FA 00 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 00 00 91 [23:44:40]Write i2c OK [23:44:40]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 3B 05 00 90 00 B4 [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]wFMCommunicate request_size=255 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:44:41]Write to MH i2c: E2 02 01 3C 05 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 4B [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 3C 05 00 90 00 B5 [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]wFMCommunicate request_size=148 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AB FC BA 1E 49 0A [23:44:42]Write to MH i2c: E2 97 00 3D 05 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AB FC BA 1E 49 0A 00 00 F6 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:42]Read from MH i2c: E2 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 03 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [23:44:42]RAPDU: 90 00 [23:44:42]wFMCommunicate OK [23:44:42]wFMCommunicate request_size=4 [23:44:42]MH_SAM_APDU [23:44:42]CAPDU: 80 0D 03 02 [23:44:42]Write to MH i2c: E2 08 00 3E 05 80 0D 03 02 00 00 00 00 BE [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:42]Read from MH i2c: E2 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 0B 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 0B 00 3E 05 00 6F B1 90 F2 79 76 B4 06 90 00 0A [23:44:42]RAPDU: 6F B1 90 F2 79 76 B4 06 90 00 [23:44:42]wFMCommunicate OK [23:44:42]SAM_PROTO_SignData done [23:44:42]FM_MakeSignedData done [23:44:42]CreateOFDProtocolMessage [23:44:42]wFMCommunicate request_size=4 [23:44:42]MH_SAM_APDU [23:44:42]CAPDU: 80 11 00 00 [23:44:42]Write to MH i2c: E2 08 00 3F 05 80 11 00 00 00 00 00 00 BE [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:42]Read from MH i2c: E2 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 17 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: E2 17 00 3F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [23:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [23:44:42]wFMCommunicate OK [23:44:42]CreateOFDProtocolMessage done [23:44:42]OFDSenderStorePacket 92348 [23:44:42]StoreOFDPacket docnum=92348 [23:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 81 05 00 00 FA A2 79 05 91 22 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 5F CE E4 66 0E 04 04 00 F9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 D9 04 6E 04 04 00 9B 00 00 00 69 04 A2 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 6A 04 9D 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 01 00 00 00 04 80 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 8D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 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 BC 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AB FC BA 1E 49 0A 6F B1 90 F2 79 76 B4 06 [23:44:42]CheckFolder [23:44:42]dirname=/storage/ofd_packets [23:44:42]CheckFolder done [23:44:42]ProducePacketName [23:44:42]name=ofd_packets/00092348 [23:44:42]NVStorageSaveData ofd_packets/00092348 [23:44:42]File name is /storage/ofd_packets/00092348 [23:44:42]Write 1439 bytes [23:44:42]NVStorageSaveData done [23:44:42]OFDSenderStorePacket done [23:44:42]KKMCreateOFDPacket done [23:44:42]NVStorageSaveData kkm_last_timestamp [23:44:42]File name is /storage/kkm_last_timestamp [23:44:42]Write 4 bytes [23:44:42]NVStorageSaveData done [23:44:42]ExternCall_PrintAddStr [23:44:42]wPrintStart [23:44:42]Write to MH i2c: 01 00 00 40 05 45 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 07 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 FF 0F 5A [23:44:42]RasterBufferAndPrint [23:44:42]line Отчет о закрытии смены [23:44:42]line ФФД: 1.0 [23:44:42]line ИНН: 02508201610067 [23:44:42]line Кассир: Абдалбекова А. [23:44:42]line 13.09.2024 23:44 [23:44:42]line Смена: 505 [23:44:42]line РНМ: 0000000000091423 [23:44:42]line ЗНМ: 03000000022 [23:44:42]line СНО: Общий режим [23:44:42]line Чеков за смену: 155 [23:44:42]line ФД за смену: 157 [23:44:42]line Всего чеков: 155 [23:44:42]line ИТОГИ ПРИХОД [23:44:42]line Чеков: 153 [23:44:42]line Общий итог: 42140.74 [23:44:42]line Итого наличными: 29024.00 [23:44:42]line Итого безнал.: 13116.74 [23:44:42]line НДС 0% : 0.00 [23:44:42]line НДС 12% : 4475.32 [23:44:42]line НСП 0% : 0.00 [23:44:42]line НСП 1,50% : 0.00 [23:44:42]line НСП 0,50% : 0.00 [23:44:42]line НСП 5% : 0.00 [23:44:42]line НСП 3% : 0.00 [23:44:42]line НСП 2% : 0.00 [23:44:42]line НСП 1% : 372.80 [23:44:42]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:44:42]line Чеков: 2 [23:44:42]line Общий итог: 399.00 [23:44:42]line Итого наличными: 399.00 [23:44:42]line Итого безнал.: 0.00 [23:44:42]line НДС 0% : 0.00 [23:44:42]line НДС 12% : 42.37 [23:44:42]line НСП 0% : 0.00 [23:44:42]line НСП 1,50% : 0.00 [23:44:42]line НСП 0,50% : 0.00 [23:44:42]line НСП 5% : 0.00 [23:44:42]line НСП 3% : 0.00 [23:44:42]line НСП 2% : 0.00 [23:44:42]line НСП 1% : 3.53 [23:44:42]line ИТОГИ РАСХОД [23:44:42]line Чеков: 0 [23:44:42]line Общий итог: 0.00 [23:44:42]line Итого наличными: 0.00 [23:44:42]line Итого безнал.: 0.00 [23:44:42]line НДС 0% : 0.00 [23:44:42]line НДС 12% : 0.00 [23:44:42]line НСП 0% : 0.00 [23:44:42]line НСП 1,50% : 0.00 [23:44:42]line НСП 0,50% : 0.00 [23:44:42]line НСП 5% : 0.00 [23:44:42]line НСП 3% : 0.00 [23:44:42]line НСП 2% : 0.00 [23:44:42]line НСП 1% : 0.00 [23:44:42]line ИТОГИ ВОЗВРАТ РАСХОДА [23:44:42]line Чеков: 0 [23:44:42]line Общий итог: 0.00 [23:44:42]line Итого наличными: 0.00 [23:44:42]line Итого безнал.: 0.00 [23:44:42]line НДС 0% : 0.00 [23:44:42]line НДС 12% : 0.00 [23:44:42]line НСП 0% : 0.00 [23:44:42]line НСП 1,50% : 0.00 [23:44:42]line НСП 0,50% : 0.00 [23:44:42]line НСП 5% : 0.00 [23:44:42]line НСП 3% : 0.00 [23:44:42]line НСП 2% : 0.00 [23:44:42]line НСП 1% : 0.00 [23:44:42]line Сумма внесений: 0.00 [23:44:42]line Сумма выплат: 0.00 [23:44:42]line Нал. в кассе: 28625.00 [23:44:42]line НС Приход: 29944669.09 [23:44:42]line НС Возвр.Прихода: 748672.60 [23:44:42]line НС Расход: 0.00 [23:44:42]line НС Возвр.Расхода: 0.00 [23:44:42]line ФД: 92348 [23:44:42]line ФМ: 0000000000874692 [23:44:42]line ФПД: 189101942655242 [23:44:42]OFD Sender: Processing packet 92348 [packets to send 63, broken 62] [23:44:42]ProducePacketName [23:44:42]name=ofd_packets/00092348 [23:44:42]OFD Sender: To server: pG, [23:44:42]CommunicateWithHost lk.salyk.kg:30040 [23:44:42]ConnectInit lk.salyk.kg [23:44:42]written 0, free lines is 4095 [23:44:43]Connected sock=10 [23:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 81 05 00 00 FA A2 79 05 91 22 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 5F CE E4 66 0E 04 04 00 F9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 AA 04 D9 04 6E 04 04 00 9B 00 00 00 69 04 A2 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 6A 04 9D 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 01 00 00 00 04 80 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 8D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 61 01 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 Write to MH i2c: B1 01 04 00 00 00 00 90 70 05 04 95 00 [23:44:44]00 72 Write i2c OK [23:44:44]04 MH_I2C_Read... [23:44:44]00 Read from MH i2c: 00 01 00 [23:44:44]04 MH_I2C_Read... [23:44:44]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 Read from MH i2c: 00 01 EE 07 03 00 09 [23:44:44]00 MH_I2C_Read... [23:44:44]F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 00 01 F7 07 03 00 00 90 00 05 EF 00 03 00 09 00 00 00 F6 00 03 70 01 0C 00 18 01 [23:44:44]F7 RasterBufferAndPrint [23:44:44]03 line [23:44:44]00 line [23:44:44]00 line [23:44:44]EF line [23:44:44]03 line [23:44:44]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 written 0, free lines is 3313 [23:44:44]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 MH_Cut [23:44:44]05 Write to MH i2c: D1 F7 01 03 00 00 97 00 05 EF 01 03 6E 09 [23:44:44]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 Write i2c OK [23:44:44]F7 MH_I2C_Read... [23:44:44]03 Read from MH i2c: 00 D1 00 [23:44:44]EF MH_I2C_Read... [23:44:44]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 [23:44:44]02 MH_I2C_Read... [23:44:44]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 97 F6 05 03 00 01 6D 00 [23:44:44]04 Write to MH i2c: F7 01 03 00 00 00 00 98 EF 05 9D 03 [23:44:44]09 00 F6 03 01 00 05 F7 03 00 00 EF Write i2c OK [23:44:44]03 MH_I2C_Read... [23:44:44]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 BC 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 AB FC BA 1E 49 0A 6F B1 90 F2 79 76 B4 06 [23:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 64 98 47 00 B8 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 *** Cut start [23:44:44]38 37 34 36 39 32 10 04 04 00 BC 68 01 00 F4 03 04 00 E8 76 E4 66 *** Purtial cut [23:44:44]B6 04 01 00 00 66 21 *** Stage 1: CUTSNS_PIN = 1 [23:44:44]5D 05 FD A4 84 14 [23:44:44]CommunicateWithHost err = 0 [23:44:44]CheckOFDResponse [23:44:44]1017 (14) - 77093643461234 [23:44:44]1041 (16) - 0000000000874692 [23:44:44]1040 (4) - 92348 [23:44:44]1012 (4) - 13.09.2024 17:31 [23:44:44]1206 (1) - 0 [23:44:44]OFD Sender: Remove packet 92348 [23:44:44]ProducePacketName [23:44:44]name=ofd_packets/00092348 [23:44:44]NVStorageDeleteData [23:44:45]OFD Sender: No OFD packet to send [23:44:46]Read from MH i2c: 01 [23:44:46]MH_I2C_Read... [23:44:46]*** Stop cut motor [23:44:46]*** Cut end [23:44:46]Read from MH i2c: 01 07 00 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: 01 07 00 98 05 00 00 00 00 00 FF 0F B2 [23:44:46]process_action close_shift done [23:44:46]requested_data is exist [23:44:46]produce_requested_data [23:44:46]requested_item fd.num is exist - process it [23:44:46]SAM_PROTO_GetFieldsCounters [23:44:46]wFMCommunicate request_size=4 [23:44:46]MH_SAM_APDU [23:44:46]CAPDU: 80 13 00 00 [23:44:46]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [23:44:46]Write i2c OK [23:44:46]MH_I2C_Read... [23:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:46]Read from MH i2c: E2 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: E2 62 00 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [23:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:47]wFMCommunicate OK [23:44:47]SAM_PROTO_GetFieldsCounters done [23:44:47]requested_item shift.num is exist - process it [23:44:47]requested_item shift.opened is exist - process it [23:44:47]req_shift_opened [23:44:47]FM_GetShiftState [23:44:47]SAM_PROTO_GetShiftState [23:44:47]wFMCommunicate request_size=4 [23:44:47]MH_SAM_APDU [23:44:47]CAPDU: 80 13 01 00 [23:44:47]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [23:44:47]Write i2c OK [23:44:47]MH_I2C_Read... [23:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:47]Read from MH i2c: E2 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 9A 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 27 [23:44:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:44:47]wFMCommunicate OK [23:44:47]SAM_PROTO_GetShiftState done [23:44:47]FM_GetShiftState done [23:44:47]req_shift_opened done [23:44:47]requested_item shift.open_date is exist - process it [23:44:47]req_shift_open_date [23:44:47]FM_GetShiftState [23:44:47]SAM_PROTO_GetShiftState [23:44:47]wFMCommunicate request_size=4 [23:44:47]MH_SAM_APDU [23:44:47]CAPDU: 80 13 01 00 [23:44:47]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [23:44:47]Write i2c OK [23:44:47]MH_I2C_Read... [23:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:47]Read from MH i2c: E2 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 9B 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 28 [23:44:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:44:47]wFMCommunicate OK [23:44:47]SAM_PROTO_GetShiftState done [23:44:47]FM_GetShiftState done [23:44:47]req_shift_open_date done [23:44:47]produce_requested_data done [23:44:47]produce_requested_data return {"fd.num":92348,"shift.num":505,"shift.opened":0,"shift.open_date":0} [23:44:47]process_action_free close_shift [23:44:47]json_value_free [23:44:47]json_value_free done [23:44:47]process_json_proto returns [23:44:47]Send response to host [23:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92348,"shift.num":505,"shift.opened":0,"shift.open_date":0}}} [23:44:47]free response buf [23:44:47]execute_script done [23:44:47]execute_script returns [23:44:47]free content buf [23:44:47]Sock 9.Close socket [23:44:47]Sock 9.Thread stoped [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]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:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:04]accept exits with 8 [00:23:04]New connection [00:23:04]New thread 3067247972 created [00:23:04]Thread 3067391332 joined [00:23:04]Waiting for new connection... [00:23:04] Sock 8.Parse request [00:23:04]Sock 8.Check first char [00:23:04]Sock 8.First char is OK [00:23:04]request: POST /json_proto HTTP/1.0 [00:23:04]Method: POST [00:23:04]URL: /json_proto [00:23:04]Method is POST - this is cgi request [00:23:04]url: /json_proto [00:23:04]query_string will be loaded in cgi processing [00:23:04]execute_cgi json_proto POST (null) [00:23:04]execute_cgi path=json_proto method=POST [00:23:04]POST find Content-Length [00:23:04]Host: 172.17.57.71:8080 [00:23:04]Content-Length: 215 [00:23:04]Content-Type: application/json [00:23:04] [00:23:04]POST finish read [00:23:04]Found Content-Length = 215 [00:23: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" ] } } [00:23:04]execute_script... [00:23: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" ] } } [00:23:04]POST & json_proto [00:23:04]process_json_proto [00:23:04]json parsed OK: [00:23:04]protocol is kg_v1.0 [00:23:04]action value=get_value [00:23:04]process_action get_value [00:23:04]cmd_get_value [00:23:04]process_action get_value done [00:23:04]requested_data is exist [00:23:04]produce_requested_data [00:23:04]requested_item kkm.sn is exist - process it [00:23:04]requested_item kkm.ver is exist - process it [00:23:04]requested_item fm.sn is exist - process it [00:23:04]wFMCommunicate request_size=4 [00:23:04]MH_SAM_APDU [00:23:04]CAPDU: 80 11 00 00 [00:23:04]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 72 [00:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:23:05]wFMCommunicate OK [00:23:05]requested_item fd.num is exist - process it [00:23:05]SAM_PROTO_GetFieldsCounters [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 00 00 [00:23:05]Write to MH i2c: E2 08 00 9D 05 80 13 00 00 00 00 00 00 1E [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 62 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 62 00 9D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [00:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BC 68 01 00 0E 04 04 00 F9 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetFieldsCounters done [00:23:05]requested_item shift.num is exist - process it [00:23:05]requested_item shift.opened is exist - process it [00:23:05]req_shift_opened [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 9E 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2B [00:23:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]req_shift_opened done [00:23:05]requested_item shift.open_date is exist - process it [00:23:05]req_shift_open_date [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 9F 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2C [00:23:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]req_shift_open_date done [00:23:05]produce_requested_data done [00:23:05]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92348,"shift.num":505,"shift.opened":0,"shift.open_date":0} [00:23:05]process_action_free get_value [00:23:05]json_value_free [00:23:05]json_value_free done [00:23:05]process_json_proto returns [00:23:05]Send response to host [00:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92348,"shift.num":505,"shift.opened":0,"shift.open_date":0}}} [00:23:05]free response buf [00:23:05]execute_script done [00:23:05]execute_script returns [00:23:05]free content buf [00:23:05]Sock 8.Close socket [00:23:05]Sock 8.Thread stoped [00:23:05]accept exits with 9 [00:23:05]New connection [00:23:05]New thread 3067391332 created [00:23:05]Thread 3067247972 joined [00:23:05]Waiting for new connection... [00:23:05] Sock 9.Parse request [00:23:05]Sock 9.Check first char [00:23:05]Sock 9.First char is OK [00:23:05]request: POST /json_proto HTTP/1.0 [00:23:05]Method: POST [00:23:05]URL: /json_proto [00:23:05]Method is POST - this is cgi request [00:23:05]url: /json_proto [00:23:05]query_string will be loaded in cgi processing [00:23:05]execute_cgi json_proto POST (null) [00:23:05]execute_cgi path=json_proto method=POST [00:23:05]POST find Content-Length [00:23:05]Host: 172.17.57.71:8080 [00:23:05]Content-Length: 331 [00:23:05]Content-Type: application/json [00:23:05] [00:23:05]POST finish read [00:23:05]Found Content-Length = 331 [00:23: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" ] } } [00:23:05]execute_script... [00:23: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" ] } } [00:23:05]POST & json_proto [00:23:05]process_json_proto [00:23:05]json parsed OK: [00:23:05]protocol is kg_v1.0 [00:23:05]action value=get_value [00:23:05]process_action get_value [00:23:05]cmd_get_value [00:23:05]process_action get_value done [00:23:05]requested_data is exist [00:23:05]produce_requested_data [00:23:05]requested_item fm.sale.total is exist - process it [00:23:05]SAM_PROTO_GetFMData [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 03 00 [00:23:05]Write to MH i2c: E2 08 00 A0 05 80 13 03 00 00 00 00 00 24 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 A0 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 A8 [00:23:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 A1 05 80 17 00 00 00 00 00 00 26 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 A1 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 1F [00:23: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 1D 1C 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 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:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 A2 05 80 17 00 00 00 00 00 00 27 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 A2 05 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 39 [00:23: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 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 A3 05 80 17 00 00 00 00 00 00 28 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 A3 05 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 B4 [00:23:06]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:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 A4 05 80 17 00 00 00 00 00 00 29 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 E2 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 E2 00 A4 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:23: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 [00:23:07]wFMCommunicate OK [00:23:07]SAM_PROTO_GetFMData done [00:23:07]requested_item fm.sale_refund.total is exist - process it [00:23:07]requested_item fm.buy.total is exist - process it [00:23:07]requested_item shift.sale.total is exist - process it [00:23:07]SAM_PROTO_GetShiftData [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 13 02 00 [00:23:07]Write to MH i2c: E2 08 00 A5 05 80 13 02 00 00 00 00 00 28 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 A5 05 00 B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 A2 [00:23:07]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 99 00 00 00 B1 04 03 00 3A 4D 40 70 04 03 00 80 49 2C 72 04 03 00 BA 03 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2C D4 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A0 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 DC 9B 70 04 02 00 DC 9B 72 04 00 00 00 04 79 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 8D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 A6 05 80 17 00 00 00 00 00 00 2B [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]OFD Sender: No OFD packet to send [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 A6 05 00 F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [00:23:07]RAPDU: F6 03 01 00 01 F7 03 02 00 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 A7 05 80 17 00 00 00 00 00 00 2C [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 A7 05 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:23:08]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 17 00 00 [00:23:08]Write to MH i2c: E2 08 00 A8 05 80 17 00 00 00 00 00 00 2D [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 A8 05 00 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 90 00 9C [00:23:08]RAPDU: 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 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 17 00 00 [00:23:08]Write to MH i2c: E2 08 00 A9 05 80 17 00 00 00 00 00 00 2E [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 D3 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 D3 00 A9 05 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1B [00:23:08]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetShiftData done [00:23:08]requested_item shift.sale.total_cash is exist - process it [00:23:08]requested_item shift.sale_refund.total is exist - process it [00:23:08]requested_item shift.sale_refund.total_cash is exist - process it [00:23:08]requested_item shift.buy.total is exist - process it [00:23:08]requested_item shift.buy.total_cash is exist - process it [00:23:08]produce_requested_data done [00:23:08]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:08]process_action_free get_value [00:23:08]json_value_free [00:23:08]json_value_free done [00:23:08]process_json_proto returns [00:23:08]Send response to host [00:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":42140.74,"shift.sale.total_cash":29024.00,"shift.sale_refund.total":399.00,"shift.sale_refund.total_cash":399.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:08]free response buf [00:23:08]execute_script done [00:23:08]execute_script returns [00:23:08]free content buf [00:23:08]Sock 9.Close socket [00:23:08]Sock 9.Thread stoped [00:23:08]accept exits with 8 [00:23:08]New connection [00:23:08]New thread 3067247972 created [00:23:08]Thread 3067391332 joined [00:23:08]Waiting for new connection... [00:23:08] Sock 8.Parse request [00:23:08]Sock 8.Check first char [00:23:08]Sock 8.First char is OK [00:23:08]request: POST /json_proto HTTP/1.0 [00:23:08]Method: POST [00:23:08]URL: /json_proto [00:23:08]Method is POST - this is cgi request [00:23:08]url: /json_proto [00:23:08]query_string will be loaded in cgi processing [00:23:08]execute_cgi json_proto POST (null) [00:23:08]execute_cgi path=json_proto method=POST [00:23:08]POST find Content-Length [00:23:08]Host: 172.17.57.71:8080 [00:23:08]Content-Length: 277 [00:23:08]Content-Type: application/json [00:23:08] [00:23:08]POST finish read [00:23:08]Found Content-Length = 277 [00:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:08]execute_script... [00:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:08]POST & json_proto [00:23:08]process_json_proto [00:23:08]json parsed OK: [00:23:08]protocol is kg_v1.0 [00:23:08]action value=open_shift [00:23:08]process_action open_shift [00:23:08]cmd_open_shift [00:23:08]MH_GetDate [00:23:08]Write to MH i2c: F0 00 00 AA 05 9E [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 AA 05 00 6D D7 E4 66 33 3A A4 66 AC [00:23:08]GetLastDocTimeStamp 1726271071 [00:23:08]current date 1726273389 [00:23:08]FM_GetShiftState [00:23:08]SAM_PROTO_GetShiftState [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 01 00 [00:23:08]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 AB 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 38 [00:23:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetShiftState done [00:23:08]FM_GetShiftState done [00:23:08]KKMCreateOpenShiftDocument [00:23:08]Load OK [00:23:08]Malloc new data [00:23:08]MH_GetDate [00:23:08]Write to MH i2c: F0 00 00 AC 05 A0 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 AC 05 00 6D D7 E4 66 33 3A A4 66 AE [00:23:08]Malloc new data [00:23:08]KKMCreateOpenShiftDocument OK [00:23:08]KKMSetOpenShiftData OK [00:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:23:08]tlvbuf is 01435770 [00:23:08]KKMLoadAndSignOpenShiftData [00:23:08]SAM_PROTO_ProcessDocument [00:23:08]wFMCommunicate request_size=9 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:23:08]Write to MH i2c: E2 0C 00 AD 05 80 15 01 00 04 00 02 00 D3 00 00 00 0E [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 03 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [00:23:08]RAPDU: 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=23 [00:23:08]MH_SAM_APDU [00:23:08]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:23:08]Write to MH i2c: E2 1A 00 AE 05 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 28 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 03 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [00:23:08]RAPDU: 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=36 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:23:08]Write to MH i2c: E2 27 00 AF 05 80 15 02 00 1F 00 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 EB [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=95 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 5A F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 [00:23:09]Write to MH i2c: E2 62 00 B0 05 80 15 02 00 5A 00 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 00 00 96 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=49 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 2C A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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:23:09]Write to MH i2c: E2 34 00 B1 05 80 15 02 00 2C 00 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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 77 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=13 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 08 F4 03 04 00 6D D7 E4 66 [00:23:09]Write to MH i2c: E2 10 00 B2 05 80 15 02 00 08 00 F4 03 04 00 6D D7 E4 66 00 00 D0 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=25 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [00:23:09]Write to MH i2c: E2 1C 00 B3 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 94 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 03 00 [00:23:09]Write to MH i2c: E2 08 00 B4 05 80 15 03 00 00 00 00 00 3A [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 38 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 38 00 B4 05 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 35 04 06 00 B1 C2 0E CE A7 72 90 00 93 [00:23:09]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 35 04 06 00 B1 C2 0E CE A7 72 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_ProcessDocument answer len = 51 [00:23:09]SAM_PROTO_ProcessDocument done [00:23:09]SetTLVBufToDocument [00:23:09]Processing tag 1209 (04B9) [00:23:09]Malloc new data [00:23:09]Processing tag 1041 (0411) [00:23:09]Processing tag 1040 (0410) [00:23:09]Malloc new data [00:23:09]Processing tag 1038 (040E) [00:23:09]Malloc new data [00:23:09]Processing tag 1077 (0435) [00:23:09]Malloc new data [00:23:09]SetTLVBufToDocument err=0 [00:23:09]KKMLoadAndSignOpenShiftData store KKM data [00:23:09]KKMLoadAndSignOpenShiftData err=0 [00:23:09]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Молдокулова А. Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 Место: АЗС № 5 "Партнер Нефть" 14.09.2024 00:23 Смена: 506 РНМ: 0000000000091423 ЗНМ: 03000000022 ФД: 92349 ФМ: 0000000000874692 ФПД: 195447030196082 [00:23:09]StoreToDocumentArchive [00:23:09]shift 506 fd 92349 [00:23:09]Create dir for shift 0506 [00:23:09]save to /storage/0506/doc_00092349 [00:23:09]save last doc name /storage/0506/doc_00092349 to /storage/kkm_last_doc_name [00:23:09]save OK [00:23:09]Clear old archive folders... [00:23:09]Remove dir /storage/0505 [00:23:09]opendir ok [00:23:09]file . [00:23:09]file .. [00:23:09]file doc_00092192 [00:23:09]remove file /storage/0505/doc_00092192 [00:23:09]file doc_00092193 [00:23:09]remove file /storage/0505/doc_00092193 [00:23:09]file doc_00092194 [00:23:09]remove file /storage/0505/doc_00092194 [00:23:09]file doc_00092195 [00:23:09]remove file /storage/0505/doc_00092195 [00:23:09]file doc_00092196 [00:23:09]remove file /storage/0505/doc_00092196 [00:23:09]file doc_00092197 [00:23:09]remove file /storage/0505/doc_00092197 [00:23:09]file doc_00092198 [00:23:09]remove file /storage/0505/doc_00092198 [00:23:09]file doc_00092199 [00:23:09]remove file /storage/0505/doc_00092199 [00:23:09]file doc_00092200 [00:23:09]remove file /storage/0505/doc_00092200 [00:23:09]file doc_00092201 [00:23:09]remove file /storage/0505/doc_00092201 [00:23:09]file doc_00092202 [00:23:09]remove file /storage/0505/doc_00092202 [00:23:09]file doc_00092203 [00:23:09]remove file /storage/0505/doc_00092203 [00:23:09]file doc_00092204 [00:23:09]remove file /storage/0505/doc_00092204 [00:23:09]file doc_00092205 [00:23:09]remove file /storage/0505/doc_00092205 [00:23:09]file doc_00092206 [00:23:09]remove file /storage/0505/doc_00092206 [00:23:09]file doc_00092207 [00:23:09]remove file /storage/0505/doc_00092207 [00:23:09]file doc_00092208 [00:23:09]remove file /storage/0505/doc_00092208 [00:23:09]file doc_00092209 [00:23:09]remove file /storage/0505/doc_00092209 [00:23:09]file doc_00092210 [00:23:09]remove file /storage/0505/doc_00092210 [00:23:09]file doc_00092211 [00:23:09]remove file /storage/0505/doc_00092211 [00:23:09]file doc_00092212 [00:23:09]remove file /storage/0505/doc_00092212 [00:23:09]file doc_00092213 [00:23:09]remove file /storage/0505/doc_00092213 [00:23:09]file doc_00092214 [00:23:09]remove file /storage/0505/doc_00092214 [00:23:09]file doc_00092215 [00:23:09]remove file /storage/0505/doc_00092215 [00:23:09]file doc_00092216 [00:23:09]remove file /storage/0505/doc_00092216 [00:23:09]file doc_00092217 [00:23:09]remove file /storage/0505/doc_00092217 [00:23:09]file doc_00092218 [00:23:09]remove file /storage/0505/doc_00092218 [00:23:09]file doc_00092219 [00:23:09]remove file /storage/0505/doc_00092219 [00:23:09]file doc_00092220 [00:23:09]remove file /storage/0505/doc_00092220 [00:23:09]file doc_00092221 [00:23:09]remove file /storage/0505/doc_00092221 [00:23:09]file doc_00092222 [00:23:09]remove file /storage/0505/doc_00092222 [00:23:09]file doc_00092223 [00:23:09]remove file /storage/0505/doc_00092223 [00:23:09]file doc_00092224 [00:23:09]remove file /storage/0505/doc_00092224 [00:23:09]file doc_00092225 [00:23:09]remove file /storage/0505/doc_00092225 [00:23:09]file doc_00092226 [00:23:09]remove file /storage/0505/doc_00092226 [00:23:09]file doc_00092227 [00:23:09]remove file /storage/0505/doc_00092227 [00:23:09]file doc_00092228 [00:23:09]remove file /storage/0505/doc_00092228 [00:23:09]file doc_00092229 [00:23:09]remove file /storage/0505/doc_00092229 [00:23:09]file doc_00092230 [00:23:09]remove file /storage/0505/doc_00092230 [00:23:09]file doc_00092231 [00:23:09]remove file /storage/0505/doc_00092231 [00:23:09]file doc_00092232 [00:23:09]remove file /storage/0505/doc_00092232 [00:23:09]file doc_00092233 [00:23:09]remove file /storage/0505/doc_00092233 [00:23:09]file doc_00092234 [00:23:09]remove file /storage/0505/doc_00092234 [00:23:09]file doc_00092235 [00:23:09]remove file /storage/0505/doc_00092235 [00:23:09]file doc_00092236 [00:23:09]remove file /storage/0505/doc_00092236 [00:23:09]file doc_00092237 [00:23:09]remove file /storage/0505/doc_00092237 [00:23:09]file doc_00092238 [00:23:09]remove file /storage/0505/doc_00092238 [00:23:09]file doc_00092239 [00:23:09]remove file /storage/0505/doc_00092239 [00:23:09]file doc_00092240 [00:23:09]remove file /storage/0505/doc_00092240 [00:23:09]file doc_00092241 [00:23:09]remove file /storage/0505/doc_00092241 [00:23:09]file doc_00092242 [00:23:09]remove file /storage/0505/doc_00092242 [00:23:09]file doc_00092243 [00:23:09]remove file /storage/0505/doc_00092243 [00:23:09]file doc_00092244 [00:23:09]remove file /storage/0505/doc_00092244 [00:23:09]file doc_00092245 [00:23:09]remove file /storage/0505/doc_00092245 [00:23:09]file doc_00092246 [00:23:09]remove file /storage/0505/doc_00092246 [00:23:09]file doc_00092247 [00:23:09]remove file /storage/0505/doc_00092247 [00:23:09]file doc_00092248 [00:23:09]remove file /storage/0505/doc_00092248 [00:23:09]file doc_00092249 [00:23:09]remove file /storage/0505/doc_00092249 [00:23:09]file doc_00092250 [00:23:09]remove file /storage/0505/doc_00092250 [00:23:09]file doc_00092251 [00:23:09]remove file /storage/0505/doc_00092251 [00:23:09]file doc_00092252 [00:23:09]remove file /storage/0505/doc_00092252 [00:23:09]file doc_00092253 [00:23:09]remove file /storage/0505/doc_00092253 [00:23:09]file doc_00092254 [00:23:09]remove file /storage/0505/doc_00092254 [00:23:09]file doc_00092255 [00:23:09]remove file /storage/0505/doc_00092255 [00:23:09]file doc_00092256 [00:23:09]remove file /storage/0505/doc_00092256 [00:23:09]file doc_00092257 [00:23:09]remove file /storage/0505/doc_00092257 [00:23:09]file doc_00092258 [00:23:09]remove file /storage/0505/doc_00092258 [00:23:09]file doc_00092259 [00:23:09]remove file /storage/0505/doc_00092259 [00:23:09]file doc_00092260 [00:23:09]remove file /storage/0505/doc_00092260 [00:23:09]file doc_00092261 [00:23:09]remove file /storage/0505/doc_00092261 [00:23:09]file doc_00092262 [00:23:09]remove file /storage/0505/doc_00092262 [00:23:09]file doc_00092263 [00:23:09]remove file /storage/0505/doc_00092263 [00:23:09]file doc_00092264 [00:23:09]remove file /storage/0505/doc_00092264 [00:23:09]file doc_00092265 [00:23:09]remove file /storage/0505/doc_00092265 [00:23:09]file doc_00092266 [00:23:09]remove file /storage/0505/doc_00092266 [00:23:09]file doc_00092267 [00:23:09]remove file /storage/0505/doc_00092267 [00:23:09]file doc_00092268 [00:23:09]remove file /storage/0505/doc_00092268 [00:23:09]file doc_00092269 [00:23:09]remove file /storage/0505/doc_00092269 [00:23:09]file doc_00092270 [00:23:09]remove file /storage/0505/doc_00092270 [00:23:09]file doc_00092271 [00:23:09]remove file /storage/0505/doc_00092271 [00:23:09]file doc_00092272 [00:23:09]remove file /storage/0505/doc_00092272 [00:23:09]file doc_00092273 [00:23:09]remove file /storage/0505/doc_00092273 [00:23:09]file doc_00092274 [00:23:09]remove file /storage/0505/doc_00092274 [00:23:09]file doc_00092275 [00:23:09]remove file /storage/0505/doc_00092275 [00:23:09]file doc_00092276 [00:23:09]remove file /storage/0505/doc_00092276 [00:23:09]file doc_00092277 [00:23:09]remove file /storage/0505/doc_00092277 [00:23:09]file doc_00092278 [00:23:09]remove file /storage/0505/doc_00092278 [00:23:09]file doc_00092279 [00:23:09]remove file /storage/0505/doc_00092279 [00:23:09]file doc_00092280 [00:23:09]remove file /storage/0505/doc_00092280 [00:23:09]file doc_00092281 [00:23:09]remove file /storage/0505/doc_00092281 [00:23:09]file doc_00092282 [00:23:09]remove file /storage/0505/doc_00092282 [00:23:09]file doc_00092283 [00:23:09]remove file /storage/0505/doc_00092283 [00:23:09]file doc_00092284 [00:23:09]remove file /storage/0505/doc_00092284 [00:23:09]file doc_00092285 [00:23:10]remove file /storage/0505/doc_00092285 [00:23:10]file doc_00092286 [00:23:10]remove file /storage/0505/doc_00092286 [00:23:10]file doc_00092287 [00:23:10]remove file /storage/0505/doc_00092287 [00:23:10]file doc_00092288 [00:23:10]remove file /storage/0505/doc_00092288 [00:23:10]file doc_00092289 [00:23:10]remove file /storage/0505/doc_00092289 [00:23:10]file doc_00092290 [00:23:10]remove file /storage/0505/doc_00092290 [00:23:10]file doc_00092291 [00:23:10]remove file /storage/0505/doc_00092291 [00:23:10]file doc_00092292 [00:23:10]remove file /storage/0505/doc_00092292 [00:23:10]file doc_00092293 [00:23:10]remove file /storage/0505/doc_00092293 [00:23:10]file doc_00092294 [00:23:10]remove file /storage/0505/doc_00092294 [00:23:10]file doc_00092295 [00:23:10]remove file /storage/0505/doc_00092295 [00:23:10]file doc_00092296 [00:23:10]remove file /storage/0505/doc_00092296 [00:23:10]file doc_00092297 [00:23:10]remove file /storage/0505/doc_00092297 [00:23:10]file doc_00092298 [00:23:10]remove file /storage/0505/doc_00092298 [00:23:10]file doc_00092299 [00:23:10]remove file /storage/0505/doc_00092299 [00:23:10]file doc_00092300 [00:23:10]remove file /storage/0505/doc_00092300 [00:23:10]file doc_00092301 [00:23:10]remove file /storage/0505/doc_00092301 [00:23:10]file doc_00092302 [00:23:10]remove file /storage/0505/doc_00092302 [00:23:10]file doc_00092303 [00:23:10]remove file /storage/0505/doc_00092303 [00:23:10]file doc_00092304 [00:23:10]remove file /storage/0505/doc_00092304 [00:23:10]file doc_00092305 [00:23:10]remove file /storage/0505/doc_00092305 [00:23:10]file doc_00092306 [00:23:10]remove file /storage/0505/doc_00092306 [00:23:10]file doc_00092307 [00:23:10]remove file /storage/0505/doc_00092307 [00:23:10]file doc_00092308 [00:23:10]remove file /storage/0505/doc_00092308 [00:23:10]file doc_00092309 [00:23:10]remove file /storage/0505/doc_00092309 [00:23:10]file doc_00092310 [00:23:10]remove file /storage/0505/doc_00092310 [00:23:10]file doc_00092311 [00:23:10]remove file /storage/0505/doc_00092311 [00:23:10]file doc_00092312 [00:23:10]remove file /storage/0505/doc_00092312 [00:23:10]file doc_00092313 [00:23:10]remove file /storage/0505/doc_00092313 [00:23:10]file doc_00092314 [00:23:10]remove file /storage/0505/doc_00092314 [00:23:10]file doc_00092315 [00:23:10]remove file /storage/0505/doc_00092315 [00:23:10]file doc_00092316 [00:23:10]remove file /storage/0505/doc_00092316 [00:23:10]file doc_00092317 [00:23:10]remove file /storage/0505/doc_00092317 [00:23:10]file doc_00092318 [00:23:10]remove file /storage/0505/doc_00092318 [00:23:10]file doc_00092319 [00:23:10]remove file /storage/0505/doc_00092319 [00:23:10]file doc_00092320 [00:23:10]remove file /storage/0505/doc_00092320 [00:23:10]file doc_00092321 [00:23:10]remove file /storage/0505/doc_00092321 [00:23:10]file doc_00092322 [00:23:10]remove file /storage/0505/doc_00092322 [00:23:10]file doc_00092323 [00:23:10]remove file /storage/0505/doc_00092323 [00:23:10]file doc_00092324 [00:23:10]remove file /storage/0505/doc_00092324 [00:23:10]file doc_00092325 [00:23:10]remove file /storage/0505/doc_00092325 [00:23:10]file doc_00092326 [00:23:10]remove file /storage/0505/doc_00092326 [00:23:10]file doc_00092327 [00:23:10]remove file /storage/0505/doc_00092327 [00:23:10]file doc_00092328 [00:23:10]remove file /storage/0505/doc_00092328 [00:23:10]file doc_00092329 [00:23:10]remove file /storage/0505/doc_00092329 [00:23:10]file doc_00092330 [00:23:10]remove file /storage/0505/doc_00092330 [00:23:10]file doc_00092331 [00:23:10]remove file /storage/0505/doc_00092331 [00:23:10]file doc_00092332 [00:23:10]remove file /storage/0505/doc_00092332 [00:23:10]file doc_00092333 [00:23:10]remove file /storage/0505/doc_00092333 [00:23:10]file doc_00092334 [00:23:10]remove file /storage/0505/doc_00092334 [00:23:10]file doc_00092335 [00:23:10]remove file /storage/0505/doc_00092335 [00:23:10]file doc_00092336 [00:23:10]remove file /storage/0505/doc_00092336 [00:23:10]file doc_00092337 [00:23:10]remove file /storage/0505/doc_00092337 [00:23:10]file doc_00092338 [00:23:10]remove file /storage/0505/doc_00092338 [00:23:10]file doc_00092339 [00:23:10]remove file /storage/0505/doc_00092339 [00:23:10]file doc_00092340 [00:23:10]remove file /storage/0505/doc_00092340 [00:23:10]file doc_00092341 [00:23:10]remove file /storage/0505/doc_00092341 [00:23:10]file doc_00092342 [00:23:10]remove file /storage/0505/doc_00092342 [00:23:10]file doc_00092343 [00:23:10]remove file /storage/0505/doc_00092343 [00:23:10]file doc_00092344 [00:23:10]remove file /storage/0505/doc_00092344 [00:23:10]file doc_00092345 [00:23:10]remove file /storage/0505/doc_00092345 [00:23:10]file doc_00092346 [00:23:10]remove file /storage/0505/doc_00092346 [00:23:10]file doc_00092347 [00:23:10]remove file /storage/0505/doc_00092347 [00:23:10]file doc_00092348 [00:23:10]remove file /storage/0505/doc_00092348 [00:23:10]remove dir /storage/0505 [00:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:23:10]tlvbuf is 013EFAE0 [00:23:10]SAM_PROTO_ClearQueue [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 09 00 00 [00:23:10]Write to MH i2c: E2 08 00 B5 05 80 09 00 00 00 00 00 00 2C [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]SAM_PROTO_ClearQueue done [00:23:10]KKMCreateOFDPacket [00:23:10]OFDProtocolAddRootSTLVToBuf [00:23:10]FM_MakeSignedData [00:23:10]FM_MakeSignedData [00:23:10]SAM_PROTO_SignData [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 0D 01 02 [00:23:10]Write to MH i2c: E2 08 00 B6 05 80 0D 01 02 00 00 00 00 34 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=255 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 0D 02 02 FA 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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 6D D7 E4 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:23:10]Write to MH i2c: E2 02 01 B7 05 80 0D 02 02 FA 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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 6D D7 E4 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 E4 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:11]Read from MH i2c: E2 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [00:23:11]RAPDU: 90 00 [00:23:11]wFMCommunicate OK [00:23:11]wFMCommunicate request_size=21 [00:23:11]MH_SAM_APDU [00:23:11]CAPDU: 80 0D 02 02 10 38 37 34 36 39 32 35 04 06 00 B1 C2 0E CE A7 72 [00:23:11]Write to MH i2c: E2 18 00 B8 05 80 0D 02 02 10 00 38 37 34 36 39 32 35 04 06 00 B1 C2 0E CE A7 72 00 00 42 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:11]Read from MH i2c: E2 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [00:23:11]RAPDU: 90 00 [00:23:11]wFMCommunicate OK [00:23:11]wFMCommunicate request_size=4 [00:23:11]MH_SAM_APDU [00:23:11]CAPDU: 80 0D 03 02 [00:23:11]Write to MH i2c: E2 08 00 B9 05 80 0D 03 02 00 00 00 00 39 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:11]Read from MH i2c: E2 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 0B 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 0B 00 B9 05 00 12 C7 DD AA 3C EA 56 44 90 00 5A [00:23:11]RAPDU: 12 C7 DD AA 3C EA 56 44 90 00 [00:23:11]wFMCommunicate OK [00:23:11]SAM_PROTO_SignData done [00:23:11]FM_MakeSignedData done [00:23:11]CreateOFDProtocolMessage [00:23:11]wFMCommunicate request_size=4 [00:23:11]MH_SAM_APDU [00:23:11]CAPDU: 80 11 00 00 [00:23:11]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:11]Read from MH i2c: E2 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 17 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 90 [00:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:23:11]wFMCommunicate OK [00:23:11]CreateOFDProtocolMessage done [00:23:11]OFDSenderStorePacket 92349 [00:23:11]StoreOFDPacket docnum=92349 [00:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 67 C9 12 01 D6 2D 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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 6D D7 E4 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 B1 C2 0E CE A7 72 12 C7 DD AA 3C EA 56 44 [00:23:11]CheckFolder [00:23:11]dirname=/storage/ofd_packets [00:23:11]CheckFolder done [00:23:11]ProducePacketName [00:23:11]name=ofd_packets/00092349 [00:23:11]NVStorageSaveData ofd_packets/00092349 [00:23:11]File name is /storage/ofd_packets/00092349 [00:23:11]Write 312 bytes [00:23:11]NVStorageSaveData done [00:23:11]OFDSenderStorePacket done [00:23:11]KKMCreateOFDPacket done [00:23:11]NVStorageSaveData kkm_last_timestamp [00:23:11]File name is /storage/kkm_last_timestamp [00:23:11]Write 4 bytes [00:23:11]NVStorageSaveData done [00:23:11]ExternCall_PrintAddStr [00:23:11]wPrintStart [00:23:11]Write to MH i2c: 01 00 00 BB 05 C0 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 07 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [00:23:11]RasterBufferAndPrint [00:23:11]line Отчет об открытии смены [00:23:11]line ФФД: 1.0 [00:23:11]line ИНН: 02508201610067 [00:23:11]line Кассир: Молдокулова А. [00:23:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:23:11]line Место: АЗС № 5 "Партнер Нефть" [00:23:11]line 14.09.2024 00:23 [00:23:11]line Смена: 506 [00:23:11]line РНМ: 0000000000091423 [00:23:11]line ЗНМ: 03000000022 [00:23:11]line ФД: 92349 [00:23:11]line ФМ: 0000000000874692 [00:23:11]line ФПД: 195447030196082 [00:23:11]written 0, free lines is 4095 [00:23:11]OFD Sender: Processing packet 92349 [packets to send 63, broken 62] [00:23:11]ProducePacketName [00:23:11]name=ofd_packets/00092349 [00:23:11]OFD Sender: To server: pG, [00:23:11]CommunicateWithHost lk.salyk.kg:30040 [00:23:11]ConnectInit lk.salyk.kg [00:23:11]Write to MH i2c: 01 00 00 CD 05 D2 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 [00:23:11]MH_I2C_Read... [00:23:11]Connected sock=11 [00:23:11]Read from MH i2c: Data to sent: 01 87 07 95 00 F6 [00:23:11]70 MH_I2C_Read... [00:23:11]47 2C Read from MH i2c: 01 01 00 07 00 30 CD 30 05 30 00 30 00 30 00 30 00 30 00 30 57 30 0E 30 3E 38 [00:23:11]37 RasterBufferAndPrint [00:23:11]34 line [00:23:11]36 line [00:23:11]39 line [00:23:11]32 line [00:23:11]1A line [00:23:11]01 00 00 67 C9 12 01 D6 written 0, free lines is 3684 [00:23:11]2D 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A MH_Cut [00:23:11]D0 Write to MH i2c: BE D1 D0 01 BA 00 20 D4 D0 05 96 01 D0 AB B0 [00:23:11]D1 80 2C 20 D1 Write i2c OK [00:23:11]83 MH_I2C_Read... [00:23:11]D0 Read from MH i2c: BB D1 [00:23:11]2E MH_I2C_Read... [00:23:11]20 Read from MH i2c: D0 D1 A8 01 D0 00 B0 [00:23:11]D0 MH_I2C_Read... [00:23:11]B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 Read from MH i2c: 80 D0 D1 B0 01 20 00 32 2F D4 31 05 2C 00 20 AA 34 [00:23:11]32 Write to MH i2c: 2E 01 38 00 30 00 32 D5 34 05 30 DA 34 [00:23:11]2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 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 6D D7 E4 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 B1 C2 0E CE A7 72 12 C7 DD AA 3C EA 56 44 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0E BA 47 00 75 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BD 68 01 00 F4 03 04 00 EB 7F E4 66 B6 04 01 00 00 A5 78 C7 6E 91 57 AE B5 [00:23:11]CommunicateWithHost err = 0 [00:23:11]CheckOFDResponse [00:23:11]1017 (14) - 77093643461234 [00:23:11]1041 (16) - 0000000000874692 [00:23:11]1040 (4) - 92349 [00:23:11]1012 (4) - 13.09.2024 18:09 [00:23:11]1206 (1) - 0 [00:23:11]OFD Sender: Remove packet 92349 [00:23:11]ProducePacketName [00:23:11]name=ofd_packets/00092349 [00:23:11]NVStorageDeleteData [00:23:12]*** Cut start [00:23:12]*** Purtial cut [00:23:12]*** Stage 1: CUTSNS_PIN = 1 [00:23:12]OFD Sender: No OFD packet to send [00:23:14]Read from MH i2c: 01 *** Stop cut motor [00:23:14] [00:23:14]*** Cut end [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: 01 07 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [00:23:14]process_action open_shift done [00:23:14]requested_data is exist [00:23:14]produce_requested_data [00:23:14]requested_item fd.num is exist - process it [00:23:14]SAM_PROTO_GetFieldsCounters [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 00 00 [00:23:14]Write to MH i2c: E2 08 00 D6 05 80 13 00 00 00 00 00 00 57 [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 62 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 62 00 D6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [00: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:14]wFMCommunicate OK [00:23:14]SAM_PROTO_GetFieldsCounters done [00:23:14]requested_item shift.num is exist - process it [00:23:14]requested_item shift.opened is exist - process it [00:23:14]req_shift_opened [00:23:14]FM_GetShiftState [00:23:14]SAM_PROTO_GetShiftState [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 01 00 [00:23:14]Write to MH i2c: E2 08 00 D7 05 80 13 01 00 00 00 00 00 59 [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 D7 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F3 [00:23:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:23:14]wFMCommunicate OK [00:23:14]SAM_PROTO_GetShiftState done [00:23:14]FM_GetShiftState done [00:23:14]req_shift_opened done [00:23:14]requested_item shift.open_date is exist - process it [00:23:14]req_shift_open_date [00:23:14]req_shift_open_date done [00:23:14]produce_requested_data done [00:23:14]produce_requested_data return {"fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:23:14]process_action_free open_shift [00:23:14]json_value_free [00:23:14]json_value_free done [00:23:14]process_json_proto returns [00:23:14]Send response to host [00:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:23:14]free response buf [00:23:14]execute_script done [00:23:14]execute_script returns [00:23:14]free content buf [00:23:14]Sock 8.Close socket [00:23:14]Sock 8.Thread stoped [00:23:14]accept exits with 9 [00:23:14]New connection [00:23:14]New thread 3067391332 created [00:23:14]Thread 3067247972 joined [00:23:14]Waiting for new connection... [00:23:14] Sock 9.Parse request [00:23:14]Sock 9.Check first char [00:23:14]Sock 9.First char is OK [00:23:14]request: POST /json_proto HTTP/1.0 [00:23:14]Method: POST [00:23:14]URL: /json_proto [00:23:14]Method is POST - this is cgi request [00:23:14]url: /json_proto [00:23:14]query_string will be loaded in cgi processing [00:23:14]execute_cgi json_proto POST (null) [00:23:14]execute_cgi path=json_proto method=POST [00:23:14]POST find Content-Length [00:23:14]Host: 172.17.57.71:8080 [00:23:14]Content-Length: 331 [00:23:14]Content-Type: application/json [00:23:14] [00:23:14]POST finish read [00:23:14]Found Content-Length = 331 [00:23:14]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:23:14]execute_script... [00:23:14]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:23:14]POST & json_proto [00:23:14]process_json_proto [00:23:14]json parsed OK: [00:23:14]protocol is kg_v1.0 [00:23:14]action value=get_value [00:23:14]process_action get_value [00:23:14]cmd_get_value [00:23:14]process_action get_value done [00:23:14]requested_data is exist [00:23:14]produce_requested_data [00:23:14]requested_item fm.sale.total is exist - process it [00:23:14]SAM_PROTO_GetFMData [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 03 00 [00:23:14]Write to MH i2c: E2 08 00 D8 05 80 13 03 00 00 00 00 00 5C [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 FD 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 FD 00 D8 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 E0 [00:23:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:23:14]wFMCommunicate OK [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 17 00 00 [00:23:14]Write to MH i2c: E2 08 00 D9 05 80 17 00 00 00 00 00 00 5E [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 D9 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 57 [00:23:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 17 00 00 [00:23:15]Write to MH i2c: E2 08 00 DA 05 80 17 00 00 00 00 00 00 5F [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 DA 05 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 71 [00:23:15]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:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 17 00 00 [00:23:15]Write to MH i2c: E2 08 00 DB 05 80 17 00 00 00 00 00 00 60 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 DB 05 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 EC [00:23:16]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:23:16]wFMCommunicate OK [00:23:16]wFMCommunicate request_size=4 [00:23:16]MH_SAM_APDU [00:23:16]CAPDU: 80 17 00 00 [00:23:16]Write to MH i2c: E2 08 00 DC 05 80 17 00 00 00 00 00 00 61 [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:16]Read from MH i2c: E2 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 E2 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 E2 00 DC 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [00:23:16]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:23:16]wFMCommunicate OK [00:23:16]SAM_PROTO_GetFMData done [00:23:16]requested_item fm.sale_refund.total is exist - process it [00:23:16]requested_item fm.buy.total is exist - process it [00:23:16]requested_item shift.sale.total is exist - process it [00:23:16]SAM_PROTO_GetShiftData [00:23:16]wFMCommunicate request_size=4 [00:23:16]MH_SAM_APDU [00:23:16]CAPDU: 80 13 02 00 [00:23:16]Write to MH i2c: E2 08 00 DD 05 80 13 02 00 00 00 00 00 60 [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:16]Read from MH i2c: E2 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 FD 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 FD 00 DD 05 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 D3 [00:23:17]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:23:17]wFMCommunicate OK [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 17 00 00 [00:23:17]Write to MH i2c: E2 08 00 DE 05 80 17 00 00 00 00 00 00 63 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:17]Read from MH i2c: E2 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 DE 05 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 6B [00:23:17]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:23:17]wFMCommunicate OK [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 17 00 00 [00:23:17]Write to MH i2c: E2 08 00 DF 05 80 17 00 00 00 00 00 00 64 [00:23:17]OFD Sender: No OFD packet to send [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:17]Read from MH i2c: E2 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 DF 05 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 36 [00:23:17]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:23:17]wFMCommunicate OK [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 17 00 00 [00:23:17]Write to MH i2c: E2 08 00 E0 05 80 17 00 00 00 00 00 00 65 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 FD 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 FD 00 E0 05 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 D7 [00:23:18]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:23:18]wFMCommunicate OK [00:23:18]wFMCommunicate request_size=4 [00:23:18]MH_SAM_APDU [00:23:18]CAPDU: 80 17 00 00 [00:23:18]Write to MH i2c: E2 08 00 E1 05 80 17 00 00 00 00 00 00 66 [00:23:18]Write i2c OK [00:23:18]MH_I2C_Read... [00:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 BD 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 BD 00 E1 05 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00:23:18]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:23:18]wFMCommunicate OK [00:23:18]SAM_PROTO_GetShiftData done [00:23:18]requested_item shift.sale.total_cash is exist - process it [00:23:18]requested_item shift.sale_refund.total is exist - process it [00:23:18]requested_item shift.sale_refund.total_cash is exist - process it [00:23:18]requested_item shift.buy.total is exist - process it [00:23:18]requested_item shift.buy.total_cash is exist - process it [00:23:18]produce_requested_data done [00:23:18]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:23:18]process_action_free get_value [00:23:18]json_value_free [00:23:18]json_value_free done [00:23:18]process_json_proto returns [00:23:18]Send response to host [00:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:23:18]free response buf [00:23:18]execute_script done [00:23:18]execute_script returns [00:23:18]free content buf [00:23:18]Sock 9.Close socket [00:23:18]Sock 9.Thread stoped [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:25]accept exits with 8 [00:30:25]New connection [00:30:25]New thread 3067247972 created [00:30:25]Thread 3067391332 joined [00:30:25]Waiting for new connection... [00:30:25] Sock 8.Parse request [00:30:25]Sock 8.Check first char [00:30:25]Sock 8.First char is OK [00:30:25]request: POST /json_proto HTTP/1.0 [00:30:25]Method: POST [00:30:25]URL: /json_proto [00:30:25]Method is POST - this is cgi request [00:30:25]url: /json_proto [00:30:25]query_string will be loaded in cgi processing [00:30:25]execute_cgi json_proto POST (null) [00:30:25]execute_cgi path=json_proto method=POST [00:30:25]POST find Content-Length [00:30:25]Host: 172.17.57.71:8080 [00:30:25]Content-Length: 215 [00:30:25]Content-Type: application/json [00:30:25] [00:30:25]POST finish read [00:30:25]Found Content-Length = 215 [00:30:25]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:30:25]execute_script... [00:30:25]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:30:25]POST & json_proto [00:30:25]process_json_proto [00:30:25]json parsed OK: [00:30:25]protocol is kg_v1.0 [00:30:25]action value=get_value [00:30:25]process_action get_value [00:30:25]cmd_get_value [00:30:25]process_action get_value done [00:30:25]requested_data is exist [00:30:25]produce_requested_data [00:30:25]requested_item kkm.sn is exist - process it [00:30:25]requested_item kkm.ver is exist - process it [00:30:25]requested_item fm.sn is exist - process it [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 11 00 00 [00:30:25]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 17 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [00:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:30:25]wFMCommunicate OK [00:30:25]requested_item fd.num is exist - process it [00:30:25]SAM_PROTO_GetFieldsCounters [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 13 00 00 [00:30:25]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 62 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 62 00 E3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [00:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:26]wFMCommunicate OK [00:30:26]SAM_PROTO_GetFieldsCounters done [00:30:26]requested_item shift.num is exist - process it [00:30:26]requested_item shift.opened is exist - process it [00:30:26]req_shift_opened [00:30:26]FM_GetShiftState [00:30:26]SAM_PROTO_GetShiftState [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 13 01 00 [00:30:26]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 0E 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 00 [00:30:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:30:26]wFMCommunicate OK [00:30:26]SAM_PROTO_GetShiftState done [00:30:26]FM_GetShiftState done [00:30:26]req_shift_opened done [00:30:26]requested_item shift.open_date is exist - process it [00:30:26]req_shift_open_date [00:30:26]req_shift_open_date done [00:30:26]produce_requested_data done [00:30:26]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:30:26]process_action_free get_value [00:30:26]json_value_free [00:30:26]json_value_free done [00:30:26]process_json_proto returns [00:30:26]Send response to host [00:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:30:26]free response buf [00:30:26]execute_script done [00:30:26]execute_script returns [00:30:26]free content buf [00:30:26]Sock 8.Close socket [00:30:26]Sock 8.Thread stoped [00:30:27]OFD Sender: No OFD packet to send [00:30:29]accept exits with 9 [00:30:29]New connection [00:30:29]New thread 3067391332 created [00:30:29]Thread 3067247972 joined [00:30:29]Waiting for new connection... [00:30:29] Sock 9.Parse request [00:30:29]Sock 9.Check first char [00:30:29]Sock 9.First char is OK [00:30:29]request: POST /json_proto HTTP/1.0 [00:30:29]Method: POST [00:30:29]URL: /json_proto [00:30:29]Method is POST - this is cgi request [00:30:29]url: /json_proto [00:30:29]query_string will be loaded in cgi processing [00:30:29]execute_cgi json_proto POST (null) [00:30:29]execute_cgi path=json_proto method=POST [00:30:29]POST find Content-Length [00:30:29]Host: 172.17.57.71:8080 [00:30:29]Content-Length: 331 [00:30:29]Content-Type: application/json [00:30:29] [00:30:29]POST finish read [00:30:29]Found Content-Length = 331 [00:30:29]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:30:29]execute_script... [00:30:29]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:30:29]POST & json_proto [00:30:29]process_json_proto [00:30:29]json parsed OK: [00:30:29]protocol is kg_v1.0 [00:30:29]action value=get_value [00:30:29]process_action get_value [00:30:29]cmd_get_value [00:30:29]process_action get_value done [00:30:29]requested_data is exist [00:30:29]produce_requested_data [00:30:29]requested_item fm.sale.total is exist - process it [00:30:29]SAM_PROTO_GetFMData [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 13 03 00 [00:30:29]Write to MH i2c: E2 08 00 E5 05 80 13 03 00 00 00 00 00 69 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 E5 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 ED [00:30:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 17 00 00 [00:30:29]Write to MH i2c: E2 08 00 E6 05 80 17 00 00 00 00 00 00 6B [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 E6 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 64 [00:30:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 17 00 00 [00:30:29]Write to MH i2c: E2 08 00 E7 05 80 17 00 00 00 00 00 00 6C [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 E7 05 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7E [00:30:30]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:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 17 00 00 [00:30:30]Write to MH i2c: E2 08 00 E8 05 80 17 00 00 00 00 00 00 6D [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 E8 05 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F9 [00:30:30]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:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 17 00 00 [00:30:30]Write to MH i2c: E2 08 00 E9 05 80 17 00 00 00 00 00 00 6E [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 E2 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 E2 00 E9 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00:30:30]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:30:30]wFMCommunicate OK [00:30:30]SAM_PROTO_GetFMData done [00:30:30]requested_item fm.sale_refund.total is exist - process it [00:30:30]requested_item fm.buy.total is exist - process it [00:30:30]requested_item shift.sale.total is exist - process it [00:30:30]SAM_PROTO_GetShiftData [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 13 02 00 [00:30:30]Write to MH i2c: E2 08 00 EA 05 80 13 02 00 00 00 00 00 6D [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 EA 05 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 E0 [00:30:31]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:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 17 00 00 [00:30:31]Write to MH i2c: E2 08 00 EB 05 80 17 00 00 00 00 00 00 70 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 EB 05 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 78 [00:30:31]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:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 17 00 00 [00:30:31]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 EC 05 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 43 [00:30:31]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:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 17 00 00 [00:30:31]Write to MH i2c: E2 08 00 ED 05 80 17 00 00 00 00 00 00 72 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 ED 05 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 E4 [00:30:32]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:30:32]wFMCommunicate OK [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 17 00 00 [00:30:32]Write to MH i2c: E2 08 00 EE 05 80 17 00 00 00 00 00 00 73 [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 BD 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 BD 00 EE 05 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [00:30:32]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:30:32]wFMCommunicate OK [00:30:32]SAM_PROTO_GetShiftData done [00:30:32]requested_item shift.sale.total_cash is exist - process it [00:30:32]requested_item shift.sale_refund.total is exist - process it [00:30:32]requested_item shift.sale_refund.total_cash is exist - process it [00:30:32]requested_item shift.buy.total is exist - process it [00:30:32]requested_item shift.buy.total_cash is exist - process it [00:30:32]produce_requested_data done [00:30:32]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:30:32]process_action_free get_value [00:30:32]json_value_free [00:30:32]json_value_free done [00:30:32]process_json_proto returns [00:30:32]Send response to host [00:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:30:32]free response buf [00:30:32]execute_script done [00:30:32]execute_script returns [00:30:32]free content buf [00:30:32]Sock 9.Close socket [00:30:32]Sock 9.Thread stoped [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:22]accept exits with 10 [00:33:22]New connection [00:33:22]New thread 3067247972 created [00:33:22]Thread 3067391332 joined [00:33:22]Waiting for new connection... [00:33:22] Sock 10.Parse request [00:33:22]Sock 10.Check first char [00:33:22]Sock 10.First char is OK [00:33:22]request: POST /json_proto HTTP/1.0 [00:33:22]Method: POST [00:33:22]URL: /json_proto [00:33:22]Method is POST - this is cgi request [00:33:22]url: /json_proto [00:33:22]query_string will be loaded in cgi processing [00:33:22]execute_cgi json_proto POST (null) [00:33:22]execute_cgi path=json_proto method=POST [00:33:22]POST find Content-Length [00:33:22]Host: 172.17.57.71:8080 [00:33:22]Content-Length: 215 [00:33:22]Content-Type: application/json [00:33:22] [00:33:22]POST finish read [00:33:22]Found Content-Length = 215 [00:33: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:33:22]execute_script... [00:33: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:33:22]POST & json_proto [00:33:22]process_json_proto [00:33:22]json parsed OK: [00:33:22]protocol is kg_v1.0 [00:33:22]action value=get_value [00:33:22]process_action get_value [00:33:22]cmd_get_value [00:33:22]process_action get_value done [00:33:22]requested_data is exist [00:33:22]produce_requested_data [00:33:22]requested_item kkm.sn is exist - process it [00:33:22]requested_item kkm.ver is exist - process it [00:33:22]requested_item fm.sn is exist - process it [00:33:22]wFMCommunicate request_size=4 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 11 00 00 [00:33:22]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [00:33:22]Write i2c OK [00:33:22]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 17 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [00:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:33:22]wFMCommunicate OK [00:33:22]requested_item fd.num is exist - process it [00:33:22]SAM_PROTO_GetFieldsCounters [00:33:22]wFMCommunicate request_size=4 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 13 00 00 [00:33:22]Write to MH i2c: E2 08 00 F0 05 80 13 00 00 00 00 00 00 71 [00:33:22]Write i2c OK [00:33:22]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 62 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 62 00 F0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:33:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:22]wFMCommunicate OK [00:33:22]SAM_PROTO_GetFieldsCounters done [00:33:22]requested_item shift.num is exist - process it [00:33:22]requested_item shift.opened is exist - process it [00:33:22]req_shift_opened [00:33:22]FM_GetShiftState [00:33:22]SAM_PROTO_GetShiftState [00:33:22]wFMCommunicate request_size=4 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 13 01 00 [00:33:22]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [00:33:22]Write i2c OK [00:33:22]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 0E 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0D [00:33:22]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:33:22]wFMCommunicate OK [00:33:22]SAM_PROTO_GetShiftState done [00:33:22]FM_GetShiftState done [00:33:22]req_shift_opened done [00:33:22]requested_item shift.open_date is exist - process it [00:33:22]req_shift_open_date [00:33:22]req_shift_open_date done [00:33:22]produce_requested_data done [00:33:22]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:33:22]process_action_free get_value [00:33:22]json_value_free [00:33:22]json_value_free done [00:33:22]process_json_proto returns [00:33:22]Send response to host [00:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:33:22]free response buf [00:33:22]execute_script done [00:33:22]execute_script returns [00:33:22]free content buf [00:33:22]Sock 10.Close socket [00:33:22]Sock 10.Thread stoped [00:33:22]accept exits with 8 [00:33:22]New connection [00:33:22]New thread 3067391332 created [00:33:22]Thread 3067247972 joined [00:33:22]Waiting for new connection... [00:33:22] Sock 8.Parse request [00:33:22]Sock 8.Check first char [00:33:22]Sock 8.First char is OK [00:33:22]request: POST /json_proto HTTP/1.0 [00:33:22]Method: POST [00:33:22]URL: /json_proto [00:33:22]Method is POST - this is cgi request [00:33:22]url: /json_proto [00:33:22]query_string will be loaded in cgi processing [00:33:22]execute_cgi json_proto POST (null) [00:33:22]execute_cgi path=json_proto method=POST [00:33:22]POST find Content-Length [00:33:22]Host: 172.17.57.71:8080 [00:33:22]Content-Length: 331 [00:33:22]Content-Type: application/json [00:33:22] [00:33:22]POST finish read [00:33:22]Found Content-Length = 331 [00:33: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:33:22]execute_script... [00:33:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:23]POST & json_proto [00:33:23]process_json_proto [00:33:23]json parsed OK: [00:33:23]protocol is kg_v1.0 [00:33:23]action value=get_value [00:33:23]process_action get_value [00:33:23]cmd_get_value [00:33:23]process_action get_value done [00:33:23]requested_data is exist [00:33:23]produce_requested_data [00:33:23]requested_item fm.sale.total is exist - process it [00:33:23]SAM_PROTO_GetFMData [00:33:23]wFMCommunicate request_size=4 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 13 03 00 [00:33:23]Write to MH i2c: E2 08 00 F2 05 80 13 03 00 00 00 00 00 76 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]OFD Sender: No OFD packet to send [00:33:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 FD 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 FD 00 F2 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 FA [00:33:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:33:23]wFMCommunicate OK [00:33:23]wFMCommunicate request_size=4 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 17 00 00 [00:33:23]Write to MH i2c: E2 08 00 F3 05 80 17 00 00 00 00 00 00 78 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 FD 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 FD 00 F3 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 71 [00:33: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 1D 1C 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 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:33:23]wFMCommunicate OK [00:33:23]wFMCommunicate request_size=4 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 17 00 00 [00:33:23]Write to MH i2c: E2 08 00 F4 05 80 17 00 00 00 00 00 00 79 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 F4 05 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8B [00:33:24]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:33:24]wFMCommunicate OK [00:33:24]wFMCommunicate request_size=4 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 17 00 00 [00:33:24]Write to MH i2c: E2 08 00 F5 05 80 17 00 00 00 00 00 00 7A [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 F5 05 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 06 [00:33: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:33:24]wFMCommunicate OK [00:33:24]wFMCommunicate request_size=4 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 17 00 00 [00:33:24]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 E2 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 E2 00 F6 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [00:33: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:33:24]wFMCommunicate OK [00:33:24]SAM_PROTO_GetFMData done [00:33:24]requested_item fm.sale_refund.total is exist - process it [00:33:24]requested_item fm.buy.total is exist - process it [00:33:24]requested_item shift.sale.total is exist - process it [00:33:24]SAM_PROTO_GetShiftData [00:33:24]wFMCommunicate request_size=4 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 13 02 00 [00:33:24]Write to MH i2c: E2 08 00 F7 05 80 13 02 00 00 00 00 00 7A [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 FD 00 F7 05 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 ED [00:33:25]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:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 17 00 00 [00:33:25]Write to MH i2c: E2 08 00 F8 05 80 17 00 00 00 00 00 00 7D [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 F8 05 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 85 [00:33:25]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:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 17 00 00 [00:33:25]Write to MH i2c: E2 08 00 F9 05 80 17 00 00 00 00 00 00 7E [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 F9 05 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 50 [00:33:25]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:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 17 00 00 [00:33:25]Write to MH i2c: E2 08 00 FA 05 80 17 00 00 00 00 00 00 7F [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 FA 05 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 F1 [00:33:25]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:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 17 00 00 [00:33:25]Write to MH i2c: E2 08 00 FB 05 80 17 00 00 00 00 00 00 80 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:33:26]Read from MH i2c: E2 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 BD 00 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 BD 00 FB 05 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:33:26]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:33:26]wFMCommunicate OK [00:33:26]SAM_PROTO_GetShiftData done [00:33:26]requested_item shift.sale.total_cash is exist - process it [00:33:26]requested_item shift.sale_refund.total is exist - process it [00:33:26]requested_item shift.sale_refund.total_cash is exist - process it [00:33:26]requested_item shift.buy.total is exist - process it [00:33:26]requested_item shift.buy.total_cash is exist - process it [00:33:26]produce_requested_data done [00:33:26]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:33:26]process_action_free get_value [00:33:26]json_value_free [00:33:26]json_value_free done [00:33:26]process_json_proto returns [00:33:26]Send response to host [00:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:33:26]free response buf [00:33:26]execute_script done [00:33:26]execute_script returns [00:33:26]free content buf [00:33:26]Sock 8.Close socket [00:33:26]Sock 8.Thread stoped [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:36]accept exits with 9 [00:34:36]New connection [00:34:36]New thread 3067247972 created [00:34:36]Thread 3067391332 joined [00:34:36]Waiting for new connection... [00:34:36] Sock 9.Parse request [00:34:36]Sock 9.Check first char [00:34:36]Sock 9.First char is OK [00:34:36]request: POST /json_proto HTTP/1.0 [00:34:36]Method: POST [00:34:36]URL: /json_proto [00:34:36]Method is POST - this is cgi request [00:34:36]url: /json_proto [00:34:36]query_string will be loaded in cgi processing [00:34:36]execute_cgi json_proto POST (null) [00:34:36]execute_cgi path=json_proto method=POST [00:34:36]POST find Content-Length [00:34:36]Host: 172.17.57.71:8080 [00:34:36]Content-Length: 215 [00:34:36]Content-Type: application/json [00:34:36] [00:34:36]POST finish read [00:34:36]Found Content-Length = 215 [00:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:36]execute_script... [00:34:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:36]POST & json_proto [00:34:36]process_json_proto [00:34:36]json parsed OK: [00:34:36]protocol is kg_v1.0 [00:34:36]action value=get_value [00:34:36]process_action get_value [00:34:36]cmd_get_value [00:34:36]process_action get_value done [00:34:36]requested_data is exist [00:34:36]produce_requested_data [00:34:36]requested_item kkm.sn is exist - process it [00:34:36]requested_item kkm.ver is exist - process it [00:34:36]requested_item fm.sn is exist - process it [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 11 00 00 [00:34:36]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 17 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D2 [00:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:34:36]wFMCommunicate OK [00:34:36]requested_item fd.num is exist - process it [00:34:36]SAM_PROTO_GetFieldsCounters [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 13 00 00 [00:34:36]Write to MH i2c: E2 08 00 FD 05 80 13 00 00 00 00 00 00 7E [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 62 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 62 00 FD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [00:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:36]wFMCommunicate OK [00:34:36]SAM_PROTO_GetFieldsCounters done [00:34:36]requested_item shift.num is exist - process it [00:34:36]requested_item shift.opened is exist - process it [00:34:36]req_shift_opened [00:34:36]FM_GetShiftState [00:34:36]SAM_PROTO_GetShiftState [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 13 01 00 [00:34:36]Write to MH i2c: E2 08 00 FE 05 80 13 01 00 00 00 00 00 80 [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 0E 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 0E 00 FE 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1A [00:34:36]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:34:36]wFMCommunicate OK [00:34:36]SAM_PROTO_GetShiftState done [00:34:36]FM_GetShiftState done [00:34:36]req_shift_opened done [00:34:36]requested_item shift.open_date is exist - process it [00:34:36]req_shift_open_date [00:34:36]req_shift_open_date done [00:34:36]produce_requested_data done [00:34:36]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:34:36]process_action_free get_value [00:34:36]json_value_free [00:34:36]json_value_free done [00:34:36]process_json_proto returns [00:34:36]Send response to host [00:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:34:36]free response buf [00:34:36]execute_script done [00:34:36]execute_script returns [00:34:36]free content buf [00:34:36]Sock 9.Close socket [00:34:36]Sock 9.Thread stoped [00:34:36]accept exits with 8 [00:34:36]New connection [00:34:36]New thread 3067391332 created [00:34:36]Thread 3067247972 joined [00:34:36]Waiting for new connection... [00:34:36] Sock 8.Parse request [00:34:36]Sock 8.Check first char [00:34:36]Sock 8.First char is OK [00:34:36]request: POST /json_proto HTTP/1.0 [00:34:36]Method: POST [00:34:36]URL: /json_proto [00:34:36]Method is POST - this is cgi request [00:34:36]url: /json_proto [00:34:36]query_string will be loaded in cgi processing [00:34:36]execute_cgi json_proto POST (null) [00:34:36]execute_cgi path=json_proto method=POST [00:34:36]POST find Content-Length [00:34:36]Host: 172.17.57.71:8080 [00:34:36]Content-Length: 331 [00:34:36]Content-Type: application/json [00:34:36] [00:34:36]POST finish read [00:34:36]Found Content-Length = 331 [00:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:36]execute_script... [00:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:37]POST & json_proto [00:34:37]process_json_proto [00:34:37]json parsed OK: [00:34:37]protocol is kg_v1.0 [00:34:37]action value=get_value [00:34:37]process_action get_value [00:34:37]cmd_get_value [00:34:37]process_action get_value done [00:34:37]requested_data is exist [00:34:37]produce_requested_data [00:34:37]requested_item fm.sale.total is exist - process it [00:34:37]SAM_PROTO_GetFMData [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 13 03 00 [00:34:37]Write to MH i2c: E2 08 00 FF 05 80 13 03 00 00 00 00 00 83 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:37]Read from MH i2c: E2 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 FD 00 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 FD 00 FF 05 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 07 [00:34:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:34:37]wFMCommunicate OK [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 17 00 00 [00:34:37]Write to MH i2c: E2 08 00 00 06 80 17 00 00 00 00 00 00 86 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:37]Read from MH i2c: E2 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 FD 00 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 FD 00 00 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 7F [00:34:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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:34:37]wFMCommunicate OK [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 17 00 00 [00:34:37]Write to MH i2c: E2 08 00 01 06 80 17 00 00 00 00 00 00 87 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 FD 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 FD 00 01 06 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 99 [00:34:38]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:34:38]wFMCommunicate OK [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 17 00 00 [00:34:38]Write to MH i2c: E2 08 00 02 06 80 17 00 00 00 00 00 00 88 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]OFD Sender: No OFD packet to send [00:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 FD 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 FD 00 02 06 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 14 [00:34:38]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:34:38]wFMCommunicate OK [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 17 00 00 [00:34:38]Write to MH i2c: E2 08 00 03 06 80 17 00 00 00 00 00 00 89 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 E2 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 E2 00 03 06 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:34:38]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:34:38]wFMCommunicate OK [00:34:38]SAM_PROTO_GetFMData done [00:34:38]requested_item fm.sale_refund.total is exist - process it [00:34:38]requested_item fm.buy.total is exist - process it [00:34:38]requested_item shift.sale.total is exist - process it [00:34:38]SAM_PROTO_GetShiftData [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 13 02 00 [00:34:38]Write to MH i2c: E2 08 00 04 06 80 13 02 00 00 00 00 00 88 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 04 06 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 FB [00:34:39]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 17 00 00 [00:34:39]Write to MH i2c: E2 08 00 05 06 80 17 00 00 00 00 00 00 8B [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 05 06 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 93 [00:34:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 17 00 00 [00:34:39]Write to MH i2c: E2 08 00 06 06 80 17 00 00 00 00 00 00 8C [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 FD 00 06 06 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 5E [00:34:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 17 00 00 [00:34:39]Write to MH i2c: E2 08 00 07 06 80 17 00 00 00 00 00 00 8D [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:40]Read from MH i2c: E2 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 FD 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 FD 00 07 06 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 FF [00:34:40]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:34:40]wFMCommunicate OK [00:34:40]wFMCommunicate request_size=4 [00:34:40]MH_SAM_APDU [00:34:40]CAPDU: 80 17 00 00 [00:34:40]Write to MH i2c: E2 08 00 08 06 80 17 00 00 00 00 00 00 8E [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:34:40]Read from MH i2c: E2 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 BD 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 BD 00 08 06 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 74 [00:34:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:40]wFMCommunicate OK [00:34:40]SAM_PROTO_GetShiftData done [00:34:40]requested_item shift.sale.total_cash is exist - process it [00:34:40]requested_item shift.sale_refund.total is exist - process it [00:34:40]requested_item shift.sale_refund.total_cash is exist - process it [00:34:40]requested_item shift.buy.total is exist - process it [00:34:40]requested_item shift.buy.total_cash is exist - process it [00:34:40]produce_requested_data done [00:34:40]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:40]process_action_free get_value [00:34:40]json_value_free [00:34:40]json_value_free done [00:34:40]process_json_proto returns [00:34:40]Send response to host [00:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:40]free response buf [00:34:40]execute_script done [00:34:40]execute_script returns [00:34:40]free content buf [00:34:40]Sock 8.Close socket [00:34:40]Sock 8.Thread stoped [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:04]accept exits with 9 [00:35:04]New connection [00:35:04]New thread 3067247972 created [00:35:04]Thread 3067391332 joined [00:35:04]Waiting for new connection... [00:35:04] Sock 9.Parse request [00:35:04]Sock 9.Check first char [00:35:04]Sock 9.First char is OK [00:35:04]request: POST /json_proto HTTP/1.0 [00:35:04]Method: POST [00:35:04]URL: /json_proto [00:35:04]Method is POST - this is cgi request [00:35:04]url: /json_proto [00:35:04]query_string will be loaded in cgi processing [00:35:04]execute_cgi json_proto POST (null) [00:35:04]execute_cgi path=json_proto method=POST [00:35:04]POST find Content-Length [00:35:04]Host: 172.17.57.71:8080 [00:35:04]Content-Length: 215 [00:35:04]Content-Type: application/json [00:35:04] [00:35:04]POST finish read [00:35:04]Found Content-Length = 215 [00:35: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" ] } } [00:35:04]execute_script... [00:35: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" ] } } [00:35:04]POST & json_proto [00:35:04]process_json_proto [00:35:04]json parsed OK: [00:35:04]protocol is kg_v1.0 [00:35:04]action value=get_value [00:35:04]process_action get_value [00:35:04]cmd_get_value [00:35:04]process_action get_value done [00:35:04]requested_data is exist [00:35:04]produce_requested_data [00:35:04]requested_item kkm.sn is exist - process it [00:35:04]requested_item kkm.ver is exist - process it [00:35:04]requested_item fm.sn is exist - process it [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 11 00 00 [00:35:04]Write to MH i2c: E2 08 00 09 06 80 11 00 00 00 00 00 00 89 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 17 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 17 00 09 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [00:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:35:04]wFMCommunicate OK [00:35:04]requested_item fd.num is exist - process it [00:35:04]SAM_PROTO_GetFieldsCounters [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 13 00 00 [00:35:04]Write to MH i2c: E2 08 00 0A 06 80 13 00 00 00 00 00 00 8C [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 62 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 62 00 0A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [00:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetFieldsCounters done [00:35:05]requested_item shift.num is exist - process it [00:35:05]requested_item shift.opened is exist - process it [00:35:05]req_shift_opened [00:35:05]FM_GetShiftState [00:35:05]SAM_PROTO_GetShiftState [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 01 00 [00:35:05]Write to MH i2c: E2 08 00 0B 06 80 13 01 00 00 00 00 00 8E [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 0B 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 28 [00:35:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetShiftState done [00:35:05]FM_GetShiftState done [00:35:05]req_shift_opened done [00:35:05]requested_item shift.open_date is exist - process it [00:35:05]req_shift_open_date [00:35:05]req_shift_open_date done [00:35:05]produce_requested_data done [00:35:05]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:35:05]process_action_free get_value [00:35:05]json_value_free [00:35:05]json_value_free done [00:35:05]process_json_proto returns [00:35:05]Send response to host [00:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:35:05]free response buf [00:35:05]execute_script done [00:35:05]execute_script returns [00:35:05]free content buf [00:35:05]Sock 9.Close socket [00:35:05]Sock 9.Thread stoped [00:35:05]accept exits with 8 [00:35:05]New connection [00:35:05]New thread 3067391332 created [00:35:05]Thread 3067247972 joined [00:35:05]Waiting for new connection... [00:35:05] Sock 8.Parse request [00:35:05]Sock 8.Check first char [00:35:05]Sock 8.First char is OK [00:35:05]request: POST /json_proto HTTP/1.0 [00:35:05]Method: POST [00:35:05]URL: /json_proto [00:35:05]Method is POST - this is cgi request [00:35:05]url: /json_proto [00:35:05]query_string will be loaded in cgi processing [00:35:05]execute_cgi json_proto POST (null) [00:35:05]execute_cgi path=json_proto method=POST [00:35:05]POST find Content-Length [00:35:05]Host: 172.17.57.71:8080 [00:35:05]Content-Length: 331 [00:35:05]Content-Type: application/json [00:35:05] [00:35:05]POST finish read [00:35:05]Found Content-Length = 331 [00:35: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" ] } } [00:35:05]execute_script... [00:35: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" ] } } [00:35:05]POST & json_proto [00:35:05]process_json_proto [00:35:05]json parsed OK: [00:35:05]protocol is kg_v1.0 [00:35:05]action value=get_value [00:35:05]process_action get_value [00:35:05]cmd_get_value [00:35:05]process_action get_value done [00:35:05]requested_data is exist [00:35:05]produce_requested_data [00:35:05]requested_item fm.sale.total is exist - process it [00:35:05]SAM_PROTO_GetFMData [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 03 00 [00:35:05]Write to MH i2c: E2 08 00 0C 06 80 13 03 00 00 00 00 00 91 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 FD 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 FD 00 0C 06 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 15 [00:35:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:35:05]wFMCommunicate OK [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 17 00 00 [00:35:05]Write to MH i2c: E2 08 00 0D 06 80 17 00 00 00 00 00 00 93 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 0D 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8C [00:35: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 1D 1C 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 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:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 17 00 00 [00:35:06]Write to MH i2c: E2 08 00 0E 06 80 17 00 00 00 00 00 00 94 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 0E 06 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 A6 [00:35: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 [00:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 17 00 00 [00:35:06]Write to MH i2c: E2 08 00 0F 06 80 17 00 00 00 00 00 00 95 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 FD 00 0F 06 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 21 [00:35:06]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:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 17 00 00 [00:35:06]Write to MH i2c: E2 08 00 10 06 80 17 00 00 00 00 00 00 96 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 E2 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 E2 00 10 06 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [00:35:06]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:35:06]wFMCommunicate OK [00:35:06]SAM_PROTO_GetFMData done [00:35:06]requested_item fm.sale_refund.total is exist - process it [00:35:06]requested_item fm.buy.total is exist - process it [00:35:06]requested_item shift.sale.total is exist - process it [00:35:06]SAM_PROTO_GetShiftData [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 13 02 00 [00:35:06]Write to MH i2c: E2 08 00 11 06 80 13 02 00 00 00 00 00 95 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 11 06 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 08 [00:35:07]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:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 12 06 80 17 00 00 00 00 00 00 98 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 12 06 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 A0 [00:35:07]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:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 13 06 80 17 00 00 00 00 00 00 99 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 13 06 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 6B [00:35:07]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:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 14 06 80 17 00 00 00 00 00 00 9A [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 14 06 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 0C [00:35:08]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:35:08]wFMCommunicate OK [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 17 00 00 [00:35:08]Write to MH i2c: E2 08 00 15 06 80 17 00 00 00 00 00 00 9B [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 BD 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 BD 00 15 06 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 81 [00:35:08]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:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetShiftData done [00:35:08]requested_item shift.sale.total_cash is exist - process it [00:35:08]requested_item shift.sale_refund.total is exist - process it [00:35:08]requested_item shift.sale_refund.total_cash is exist - process it [00:35:08]requested_item shift.buy.total is exist - process it [00:35:08]requested_item shift.buy.total_cash is exist - process it [00:35:08]produce_requested_data done [00:35:08]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:35:08]process_action_free get_value [00:35:08]json_value_free [00:35:08]json_value_free done [00:35:08]process_json_proto returns [00:35:08]Send response to host [00:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:35:08]free response buf [00:35:08]execute_script done [00:35:08]execute_script returns [00:35:08]free content buf [00:35:08]Sock 8.Close socket [00:35:08]Sock 8.Thread stoped [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:11]accept exits with 9 [00:37:11]New connection [00:37:11]New thread 3067247972 created [00:37:11]Thread 3067391332 joined [00:37:11]Waiting for new connection... [00:37:11] Sock 9.Parse request [00:37:11]Sock 9.Check first char [00:37:11]Sock 9.First char is OK [00:37:11]request: POST /json_proto HTTP/1.0 [00:37:11]Method: POST [00:37:11]URL: /json_proto [00:37:11]Method is POST - this is cgi request [00:37:11]url: /json_proto [00:37:11]query_string will be loaded in cgi processing [00:37:11]execute_cgi json_proto POST (null) [00:37:11]execute_cgi path=json_proto method=POST [00:37:11]POST find Content-Length [00:37:11]Host: 172.17.57.71:8080 [00:37:11]Content-Length: 215 [00:37:11]Content-Type: application/json [00:37:11] [00:37:11]POST finish read [00:37:11]Found Content-Length = 215 [00:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:11]execute_script... [00:37:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:11]POST & json_proto [00:37:11]process_json_proto [00:37:11]json parsed OK: [00:37:11]protocol is kg_v1.0 [00:37:11]action value=get_value [00:37:11]process_action get_value [00:37:11]cmd_get_value [00:37:11]process_action get_value done [00:37:11]requested_data is exist [00:37:11]produce_requested_data [00:37:11]requested_item kkm.sn is exist - process it [00:37:11]requested_item kkm.ver is exist - process it [00:37:11]requested_item fm.sn is exist - process it [00:37:11]wFMCommunicate request_size=4 [00:37:11]MH_SAM_APDU [00:37:11]CAPDU: 80 11 00 00 [00:37:11]Write to MH i2c: E2 08 00 16 06 80 11 00 00 00 00 00 00 96 [00:37:11]Write i2c OK [00:37:11]MH_I2C_Read... [00:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:11]Read from MH i2c: E2 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 17 00 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 17 00 16 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 ED [00:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:37:11]wFMCommunicate OK [00:37:11]requested_item fd.num is exist - process it [00:37:11]SAM_PROTO_GetFieldsCounters [00:37:11]wFMCommunicate request_size=4 [00:37:11]MH_SAM_APDU [00:37:11]CAPDU: 80 13 00 00 [00:37:11]Write to MH i2c: E2 08 00 17 06 80 13 00 00 00 00 00 00 99 [00:37:11]Write i2c OK [00:37:11]MH_I2C_Read... [00:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:11]Read from MH i2c: E2 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 62 00 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 62 00 17 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:11]wFMCommunicate OK [00:37:11]SAM_PROTO_GetFieldsCounters done [00:37:11]requested_item shift.num is exist - process it [00:37:11]requested_item shift.opened is exist - process it [00:37:11]req_shift_opened [00:37:11]FM_GetShiftState [00:37:11]SAM_PROTO_GetShiftState [00:37:11]wFMCommunicate request_size=4 [00:37:11]MH_SAM_APDU [00:37:11]CAPDU: 80 13 01 00 [00:37:11]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [00:37:11]Write i2c OK [00:37:11]MH_I2C_Read... [00:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:11]Read from MH i2c: E2 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 0E 00 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 35 [00:37:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:37:11]wFMCommunicate OK [00:37:11]SAM_PROTO_GetShiftState done [00:37:11]FM_GetShiftState done [00:37:11]req_shift_opened done [00:37:11]requested_item shift.open_date is exist - process it [00:37:11]req_shift_open_date [00:37:11]req_shift_open_date done [00:37:11]produce_requested_data done [00:37:11]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:37:11]process_action_free get_value [00:37:11]json_value_free [00:37:11]json_value_free done [00:37:11]process_json_proto returns [00:37:11]Send response to host [00:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92349,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:37:11]free response buf [00:37:11]execute_script done [00:37:11]execute_script returns [00:37:11]free content buf [00:37:11]Sock 9.Close socket [00:37:11]Sock 9.Thread stoped [00:37:11]accept exits with 8 [00:37:11]New connection [00:37:11]New thread 3067391332 created [00:37:11]Thread 3067247972 joined [00:37:11]Waiting for new connection... [00:37:11] Sock 8.Parse request [00:37:11]Sock 8.Check first char [00:37:11]Sock 8.First char is OK [00:37:11]request: POST /json_proto HTTP/1.0 [00:37:11]Method: POST [00:37:11]URL: /json_proto [00:37:11]Method is POST - this is cgi request [00:37:11]url: /json_proto [00:37:11]query_string will be loaded in cgi processing [00:37:11]execute_cgi json_proto POST (null) [00:37:11]execute_cgi path=json_proto method=POST [00:37:11]POST find Content-Length [00:37:11]Host: 172.17.57.71:8080 [00:37:11]Content-Length: 331 [00:37:11]Content-Type: application/json [00:37:11] [00:37:11]POST finish read [00:37:11]Found Content-Length = 331 [00:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:37:11]execute_script... [00:37:12]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:37:12]POST & json_proto [00:37:12]process_json_proto [00:37:12]json parsed OK: [00:37:12]protocol is kg_v1.0 [00:37:12]action value=get_value [00:37:12]process_action get_value [00:37:12]cmd_get_value [00:37:12]process_action get_value done [00:37:12]requested_data is exist [00:37:12]produce_requested_data [00:37:12]requested_item fm.sale.total is exist - process it [00:37:12]SAM_PROTO_GetFMData [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 13 03 00 [00:37:12]Write to MH i2c: E2 08 00 19 06 80 13 03 00 00 00 00 00 9E [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 FD 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 FD 00 19 06 00 C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 22 [00:37:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C9 64 01 00 69 04 A1 00 6F 04 04 00 7B 61 01 00 B1 04 04 00 5D F0 7B B2 70 04 04 00 08 AB 1E 83 72 04 04 00 55 45 5D 2F 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 2D 92 F4 12 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 16 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [00:37:12]wFMCommunicate OK [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 17 00 00 [00:37:12]Write to MH i2c: E2 08 00 1A 06 80 17 00 00 00 00 00 00 A0 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 FD 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 FD 00 1A 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 99 [00:37: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 1D 1C 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 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:37:12]wFMCommunicate OK [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 17 00 00 [00:37:12]Write to MH i2c: E2 08 00 1B 06 80 17 00 00 00 00 00 00 A1 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 FD 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 FD 00 1B 06 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B3 [00:37: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:37:13]wFMCommunicate OK [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 17 00 00 [00:37:13]Write to MH i2c: E2 08 00 1C 06 80 17 00 00 00 00 00 00 A2 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 FD 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 FD 00 1C 06 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2E [00:37: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 [00:37:13]wFMCommunicate OK [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 17 00 00 [00:37:13]Write to MH i2c: E2 08 00 1D 06 80 17 00 00 00 00 00 00 A3 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:37:13]Read from MH i2c: E2 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 E2 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: E2 E2 00 1D 06 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:37: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 [00:37:13]wFMCommunicate OK [00:37:13]SAM_PROTO_GetFMData done [00:37:13]requested_item fm.sale_refund.total is exist - process it [00:37:13]requested_item fm.buy.total is exist - process it [00:37:13]requested_item shift.sale.total is exist - process it [00:37:13]SAM_PROTO_GetShiftData [00:37:13]wFMCommunicate request_size=4 [00:37:13]MH_SAM_APDU [00:37:13]CAPDU: 80 13 02 00 [00:37:13]Write to MH i2c: E2 08 00 1E 06 80 13 02 00 00 00 00 00 A2 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]OFD Sender: No OFD packet to send [00:37:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 1E 06 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 15 [00:37:14]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:37:14]wFMCommunicate OK [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 17 00 00 [00:37:14]Write to MH i2c: E2 08 00 1F 06 80 17 00 00 00 00 00 00 A5 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 1F 06 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 AD [00:37:14]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:37:14]wFMCommunicate OK [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 17 00 00 [00:37:14]Write to MH i2c: E2 08 00 20 06 80 17 00 00 00 00 00 00 A6 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 20 06 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 78 [00:37:14]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:37:14]wFMCommunicate OK [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 17 00 00 [00:37:14]Write to MH i2c: E2 08 00 21 06 80 17 00 00 00 00 00 00 A7 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 FD 00 21 06 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 19 [00:37:14]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:37:14]wFMCommunicate OK [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 17 00 00 [00:37:14]Write to MH i2c: E2 08 00 22 06 80 17 00 00 00 00 00 00 A8 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:37:15]Read from MH i2c: E2 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 BD 00 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 BD 00 22 06 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 8E [00:37:15]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:37:15]wFMCommunicate OK [00:37:15]SAM_PROTO_GetShiftData done [00:37:15]requested_item shift.sale.total_cash is exist - process it [00:37:15]requested_item shift.sale_refund.total is exist - process it [00:37:15]requested_item shift.sale_refund.total_cash is exist - process it [00:37:15]requested_item shift.buy.total is exist - process it [00:37:15]requested_item shift.buy.total_cash is exist - process it [00:37:15]produce_requested_data done [00:37:15]produce_requested_data return {"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:37:15]process_action_free get_value [00:37:15]json_value_free [00:37:15]json_value_free done [00:37:15]process_json_proto returns [00:37:15]Send response to host [00:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944669.09,"fm.sale_refund.total":748672.60,"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:37:15]free response buf [00:37:15]execute_script done [00:37:15]execute_script returns [00:37:15]free content buf [00:37:15]Sock 8.Close socket [00:37:15]Sock 8.Thread stoped [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:02]accept exits with 9 [00:38:02]New connection [00:38:02]New thread 3067247972 created [00:38:02]Thread 3067391332 joined [00:38:02]Waiting for new connection... [00:38:02] Sock 9.Parse request [00:38:02]Sock 9.Check first char [00:38:02]Sock 9.First char is OK [00:38:02]request: POST /json_proto HTTP/1.0 [00:38:02]Method: POST [00:38:02]URL: /json_proto [00:38:02]Method is POST - this is cgi request [00:38:02]url: /json_proto [00:38:02]query_string will be loaded in cgi processing [00:38:02]execute_cgi json_proto POST (null) [00:38:02]execute_cgi path=json_proto method=POST [00:38:02]POST find Content-Length [00:38:02]Host: 172.17.57.71:8080 [00:38:02]Content-Length: 973 [00:38:02]Content-Type: application/json [00:38:02] [00:38:02]POST finish read [00:38:02]Found Content-Length = 973 [00:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127275", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:02]execute_script... [00:38: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 : (3)127275", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:02]POST & json_proto [00:38:02]process_json_proto [00:38:02]json parsed OK: [00:38:02]protocol is kg_v1.0 [00:38:02]action value=close_receipt [00:38:02]process_action close_receipt [00:38:02]cmd_close_receipt [00:38:02]MH_GetDate [00:38:02]Write to MH i2c: F0 00 00 23 06 18 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 09 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 09 00 23 06 00 EB DA E4 66 33 3A A4 66 A7 [00:38:02]GetLastDocTimeStamp 1726273389 [00:38:02]current date 1726274283 [00:38:02]FM_GetShiftState [00:38:02]SAM_PROTO_GetShiftState [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 13 01 00 [00:38:02]Write to MH i2c: E2 08 00 24 06 80 13 01 00 00 00 00 00 A7 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 0E 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 0E 00 24 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 41 [00:38:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:38:02]wFMCommunicate OK [00:38:02]SAM_PROTO_GetShiftState done [00:38:02]FM_GetShiftState done [00:38:02]opened in 1726273389 [00:38:02]opened+sec_in_day 1726359789 [00:38:02]quantity*price = 6500 [00:38:02]sum+1 = 6501 [00:38:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740191 Сух Кириешки салями 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 86.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 86.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 1 14.09.2024 00:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92350 ФПД: 18887011043275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T003803&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92350&fm=18887011043275&tin=02508201610067®Number=0000000000091423&sum=8600 0 [00:38:03]StoreToDocumentArchive [00:38:03]shift 506 fd 92350 [00:38:03]save to /storage/0506/doc_00092350 [00:38:03]save last doc name /storage/0506/doc_00092350 to /storage/kkm_last_doc_name [00:38:03]save OK [00:38:03]Clear old archive folders... [00:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=408 [00:38:03]tlvbuf is 013503B0 [00:38:03]SAM_PROTO_ClearQueue [00:38:03]wFMCommunicate request_size=4 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: 80 09 00 00 [00:38:03]Write to MH i2c: E2 08 00 31 06 80 09 00 00 00 00 00 00 A9 [00:38:03]Write i2c OK [00:38:03]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]SAM_PROTO_ClearQueue done [00:38:04]KKMCreateOFDPacket [00:38:04]OFDProtocolAddRootSTLVToBuf [00:38:04]FM_MakeSignedData [00:38:04]FM_MakeSignedData [00:38:04]SAM_PROTO_SignData [00:38:04]wFMCommunicate request_size=4 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 01 02 [00:38:04]Write to MH i2c: E2 08 00 32 06 80 0D 01 02 00 00 00 00 B1 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]wFMCommunicate request_size=255 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [00:38:04]Write to MH i2c: E2 02 01 33 06 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6D [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]wFMCommunicate request_size=167 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 02 02 A2 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 EB DA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 68 01 00 35 04 06 00 11 2D 79 95 87 CB [00:38:04]Write to MH i2c: E2 AA 00 34 06 80 0D 02 02 A2 00 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 EB DA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 68 01 00 35 04 06 00 11 2D 79 95 87 CB 00 00 55 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]wFMCommunicate request_size=4 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 03 02 [00:38:04]Write to MH i2c: E2 08 00 35 06 80 0D 03 02 00 00 00 00 B6 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 0B 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 0B 00 35 06 00 26 60 45 D1 BD 9C D2 97 90 00 15 [00:38:04]RAPDU: 26 60 45 D1 BD 9C D2 97 90 00 [00:38:04]wFMCommunicate OK [00:38:04]SAM_PROTO_SignData done [00:38:04]FM_MakeSignedData done [00:38:04]CreateOFDProtocolMessage [00:38:04]wFMCommunicate request_size=4 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 11 00 00 [00:38:04]Write to MH i2c: E2 08 00 36 06 80 11 00 00 00 00 00 00 B6 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 17 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 17 00 36 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [00:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:04]wFMCommunicate OK [00:38:04]CreateOFDProtocolMessage done [00:38:04]OFDSenderStorePacket 92350 [00:38:04]StoreOFDPacket docnum=92350 [00:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 5D AE A4 01 61 DA 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 EB DA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 68 01 00 35 04 06 00 11 2D 79 95 87 CB 26 60 45 D1 BD 9C D2 97 [00:38:04]CheckFolder [00:38:04]dirname=/storage/ofd_packets [00:38:04]CheckFolder done [00:38:04]ProducePacketName [00:38:04]name=ofd_packets/00092350 [00:38:04]NVStorageSaveData ofd_packets/00092350 [00:38:04]File name is /storage/ofd_packets/00092350 [00:38:04]Write 458 bytes [00:38:04]NVStorageSaveData done [00:38:04]OFDSenderStorePacket done [00:38:04]KKMCreateOFDPacket done [00:38:04]NVStorageSaveData kkm_last_timestamp [00:38:04]File name is /storage/kkm_last_timestamp [00:38:04]Write 4 bytes [00:38:04]NVStorageSaveData done [00:38:04]ExternCall_PrintAddStr [00:38:04]wPrintStart [00:38:04]Write to MH i2c: 01 00 00 37 06 3D [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: 01 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: 01 07 00 [00:38:04]MH_I2C_Read... [00:38:04]OFD Sender: Processing packet 92350 [packets to send 63, broken 62] [00:38:04]ProducePacketName [00:38:04]name=ofd_packets/00092350 [00:38:04]OFD Sender: To server: pG, [00:38:04]CommunicateWithHost lk.salyk.kg:30040 [00:38:04]ConnectInit lk.salyk.kg [00:38:04]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [00:38:04]RasterBufferAndPrint [00:38:04]line Счет N : (3)127275 [00:38:04]line ИНН: 02508201610067 [00:38:04]line Контрольно-Кассовый Чек [00:38:04]line ПРОДАЖА [00:38:04]line Товар: 4870002325441 [00:38:04]line Вода ASU пит н.газ лимон ПЭТ 0,5л [00:38:04]line 1.000 * 65.00 [00:38:04]line = 65.00 [00:38:04]line НДС 12% НСП 1% [00:38:04]line > о реализуемом товаре [00:38:04]line Товар: 4607010740191 [00:38:04]line Сух Кириешки салями 40г [00:38:04]line 1.000 * 21.00 [00:38:04]line = 21.00 [00:38:04]line НДС 12% НСП 1% [00:38:04]line > о реализуемом товаре [00:38:04]line ИТОГО: 86.00 [00:38:04]line НСП 1% : 0.76 [00:38:04]line НДС 12% : 9.13 [00:38:04]line Наличными: 86.00 [00:38:04]line Безнал.: 0.00 [00:38:04]line Место: АЗС № 5 "Партнер Нефть" [00:38:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:38:04]line СНО: Общий режим [00:38:04]line Чек 1 14.09.2024 00:38 [00:38:04]line Смена: 506 ФФД: 1.0 [00:38:04]line ЗНМ: 03000000022 [00:38:04]line РНМ: 0000000000091423 [00:38:04]line Версия ККМ: 001 [00:38:04]line ФМ: 0000000000874692 [00:38:04]line ФД: 92350 [00:38:04]line ФПД: 18887011043275 [00:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T003803&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92350&fm=18887011043275&tin=02508201610067®Number=0000000000091423&sum=8600 [00:38:04]line 0 [00:38:04]written 0, free lines is 4095 [00:38:05]Connected sock=8 [00:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 5D AE A4 01 61 DA 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 EB DA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 68 01 00 35 04 06 00 11 2D 79 95 87 CB 26 60 45 D1 BD 9C D2 97 [00:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6D D3 47 00 B3 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BE 68 01 00 F4 03 04 00 68 83 E4 66 B6 04 01 00 00 4E 01 57 FD E7 2C 57 FE [00:38:05]CommunicateWithHost err = 0 [00:38:05]CheckOFDResponse [00:38:05]1017 (14) - 77093643461234 [00:38:05]1041 (16) - 0000000000874692 [00:38:05]1040 (4) - 92350 [00:38:05]1012 (4) - 13.09.2024 18:24 [00:38:05]1206 (1) - 0 [00:38:05]OFD Sender: Remove packet 92350 [00:38:05]ProducePacketName [00:38:05]name=ofd_packets/00092350 [00:38:05]NVStorageDeleteData [00:38:05]Write to MH i2c: 01 00 00 66 06 6C [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 07 00 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 B9 0C 38 [00:38:05]RasterBufferAndPrint [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]written 0, free lines is 3264 [00:38:05]MH_Cut [00:38:05]Write to MH i2c: D1 01 00 6D 06 01 45 [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 01 00 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 01 00 6D 06 00 44 [00:38:05]Write to MH i2c: 01 00 00 6E 06 74 [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]OFD Sender: No OFD packet to send [00:38:06]*** Cut start [00:38:06]*** Purtial cut [00:38:06]*** Stage 1: CUTSNS_PIN = 1 [00:38:08]Read from MH i2c: 01 [00:38:08]MH_I2C_Read... [00:38:08]*** Stop cut motor [00:38:08]*** Cut end [00:38:08]Read from MH i2c: 01 07 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [00:38:08]process_action close_receipt done [00:38:08]requested_data is exist [00:38:08]produce_requested_data [00:38:08]requested_item fm.sn is exist - process it [00:38:08]wFMCommunicate request_size=4 [00:38:08]MH_SAM_APDU [00:38:08]CAPDU: 80 11 00 00 [00:38:08]Write to MH i2c: E2 08 00 6F 06 80 11 00 00 00 00 00 00 EF [00:38:08]Write i2c OK [00:38:08]MH_I2C_Read... [00:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:08]Read from MH i2c: E2 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 17 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 17 00 6F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 46 [00:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:08]wFMCommunicate OK [00:38:08]requested_item fd.num is exist - process it [00:38:08]SAM_PROTO_GetFieldsCounters [00:38:08]wFMCommunicate request_size=4 [00:38:08]MH_SAM_APDU [00:38:08]CAPDU: 80 13 00 00 [00:38:08]Write to MH i2c: E2 08 00 70 06 80 13 00 00 00 00 00 00 F2 [00:38:08]Write i2c OK [00:38:08]MH_I2C_Read... [00:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:08]Read from MH i2c: E2 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 62 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 62 00 70 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [00:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:08]wFMCommunicate OK [00:38:08]SAM_PROTO_GetFieldsCounters done [00:38:08]requested_item shift.num is exist - process it [00:38:08]requested_item shift.opened is exist - process it [00:38:08]req_shift_opened [00:38:08]FM_GetShiftState [00:38:08]SAM_PROTO_GetShiftState [00:38:08]wFMCommunicate request_size=4 [00:38:08]MH_SAM_APDU [00:38:08]CAPDU: 80 13 01 00 [00:38:08]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [00:38:08]Write i2c OK [00:38:08]MH_I2C_Read... [00:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:08]Read from MH i2c: E2 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 0E 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8E [00:38:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:38:08]wFMCommunicate OK [00:38:08]SAM_PROTO_GetShiftState done [00:38:08]FM_GetShiftState done [00:38:08]req_shift_opened done [00:38:08]requested_item shift.open_date is exist - process it [00:38:08]req_shift_open_date [00:38:08]req_shift_open_date done [00:38:08]produce_requested_data done [00:38:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:38:08]process_action_free close_receipt [00:38:08]json_value_free [00:38:08]json_value_free done [00:38:08]process_json_proto returns [00:38:08]Send response to host [00:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:38:08]free response buf [00:38:08]execute_script done [00:38:08]execute_script returns [00:38:08]free content buf [00:38:08]Sock 9.Close socket [00:38:08]Sock 9.Thread stoped [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 FF FF C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 2F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 FF FF B9 [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 02 00 02 [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 02 00 00 00 00 00 00 FF 0F 17 [00:00:10]Model is 3 [00:00:10]MH firmware is 65535 [00:00:10]MH boot firmware is 65535 [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 03 00 41 00 60 00 FF FF 7D [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 03 00 00 D9 [00:00:10]Write to MH i2c: D5 00 00 04 00 D8 [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 04 00 00 D9 [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 05 00 F4 [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 05 00 00 18 DB E4 66 33 3A A4 66 B1 [00:38:48]Current date/time: 14.09.2024 00:38 [00:38:48]FM_Init [00:38:48]wFMConnect [00:38:48]MH_SAM_On [00:38:48]Write to MH i2c: E0 00 00 06 00 E5 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_init finished! [00:38:48]*** atr: [00:38:48]*** 0F 3B D5 18 FF 81 91 FE [00:38:48]*** 1F C3 80 73 C8 21 10 0A [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]*** 00 00 00 00 00 00 00 00 [00:38:48]Read from MH i2c: E0 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E0 10 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [00:38:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:38:48]wFMCommunicate request_size=10 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:38:48]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]wFMCommunicate request_size=4 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 11 00 00 [00:38:48]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 17 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [00:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:48]wFMCommunicate OK [00:38:48]Detected FM SN is 0000000000874692 [00:38:48]Stored FM SN is 0000000000874692 [00:38:48]wFMCommunicate request_size=9 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 16 00 00 04 76 6E 01 00 [00:38:48]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 76 6E 01 00 00 00 75 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]FM PIN OK [00:38:48]wFMCommunicate request_size=8 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 14 04 00 03 02 00 01 [00:38:48]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]wFMCommunicate request_size=13 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:38:48]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:38:48]RAPDU: 90 00 [00:38:48]wFMCommunicate OK [00:38:48]wFMCommunicate request_size=4 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 11 00 00 [00:38:48]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 17 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [00:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:38:48]wFMCommunicate OK [00:38:48]DocumentArchiveInit [00:38:48]Start Httpd... [00:38:48]Httpd thread 3067088228 created [00:38:48]Write to MH i2c: 01 00 00 0D 00 0D [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: 01 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: 01 07 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [00:38:48]MH Int Process started [00:38:48]Allocated Socket 7 [00:38:48]Bind OK [00:38:48]Listen OK [00:38:48]httpd running on port 8080 [00:38:48]Waiting for new connection... [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:13]accept exits with 8 [01:02:13]New connection [01:02:13]New thread 3066801508 created [01:02:13]Waiting for new connection... [01:02:13] Sock 8.Parse request [01:02:13]Sock 8.Check first char [01:02:13]Sock 8.First char is OK [01:02:13]request: POST /json_proto HTTP/1.0 [01:02:13]Method: POST [01:02:13]URL: /json_proto [01:02:13]Method is POST - this is cgi request [01:02:13]url: /json_proto [01:02:13]query_string will be loaded in cgi processing [01:02:13]execute_cgi json_proto POST (null) [01:02:13]execute_cgi path=json_proto method=POST [01:02:13]POST find Content-Length [01:02:13]Host: 172.17.57.71:8080 [01:02:13]Content-Length: 215 [01:02:13]Content-Type: application/json [01:02:13] [01:02:13]POST finish read [01:02:13]Found Content-Length = 215 [01:02:13]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" ] } } [01:02:13]execute_script... [01:02:13]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" ] } } [01:02:13]POST & json_proto [01:02:13]process_json_proto [01:02:13]json parsed OK: [01:02:13]protocol is kg_v1.0 [01:02:13]action value=get_value [01:02:13]process_action get_value [01:02:13]cmd_get_value [01:02:13]process_action get_value done [01:02:13]requested_data is exist [01:02:13]produce_requested_data [01:02:13]requested_item kkm.sn is exist - process it [01:02:13]requested_item kkm.ver is exist - process it [01:02:13]requested_item fm.sn is exist - process it [01:02:13]wFMCommunicate request_size=4 [01:02:13]MH_SAM_APDU [01:02:13]CAPDU: 80 11 00 00 [01:02:13]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:02:13]Write i2c OK [01:02:13]MH_I2C_Read... [01:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:13]Read from MH i2c: E2 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 17 00 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DF [01:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:02:13]wFMCommunicate OK [01:02:13]requested_item fd.num is exist - process it [01:02:13]SAM_PROTO_GetFieldsCounters [01:02:13]wFMCommunicate request_size=4 [01:02:13]MH_SAM_APDU [01:02:13]CAPDU: 80 13 00 00 [01:02:13]Write to MH i2c: E2 08 00 0F 00 80 13 00 00 00 00 00 00 8B [01:02:13]Write i2c OK [01:02:13]MH_I2C_Read... [01:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:13]Read from MH i2c: E2 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 62 00 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 62 00 0F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [01:02:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:13]wFMCommunicate OK [01:02:13]SAM_PROTO_GetFieldsCounters done [01:02:13]requested_item shift.num is exist - process it [01:02:13]requested_item shift.opened is exist - process it [01:02:13]req_shift_opened [01:02:13]FM_GetShiftState [01:02:13]SAM_PROTO_GetShiftState [01:02:13]wFMCommunicate request_size=4 [01:02:13]MH_SAM_APDU [01:02:13]CAPDU: 80 13 01 00 [01:02:13]Write to MH i2c: E2 08 00 10 00 80 13 01 00 00 00 00 00 8D [01:02:13]Write i2c OK [01:02:13]MH_I2C_Read... [01:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:13]Read from MH i2c: E2 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 0E 00 [01:02:13]MH_I2C_Read... [01:02:13]Read from MH i2c: E2 0E 00 10 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 27 [01:02:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:02:13]wFMCommunicate OK [01:02:13]SAM_PROTO_GetShiftState done [01:02:13]FM_GetShiftState done [01:02:13]req_shift_opened done [01:02:13]requested_item shift.open_date is exist - process it [01:02:13]req_shift_open_date [01:02:13]req_shift_open_date done [01:02:13]produce_requested_data done [01:02:13]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:02:13]process_action_free get_value [01:02:13]json_value_free [01:02:13]json_value_free done [01:02:13]process_json_proto returns [01:02:13]Send response to host [01:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:02:13]free response buf [01:02:13]execute_script done [01:02:13]execute_script returns [01:02:13]free content buf [01:02:13]Sock 8.Close socket [01:02:13]Sock 8.Thread stoped [01:02:13]accept exits with 9 [01:02:13]New connection [01:02:13]New thread 3066658148 created [01:02:13]Thread 3066801508 joined [01:02:13]Waiting for new connection... [01:02:13] Sock 9.Parse request [01:02:13]Sock 9.Check first char [01:02:13]Sock 9.First char is OK [01:02:13]request: POST /json_proto HTTP/1.0 [01:02:13]Method: POST [01:02:13]URL: /json_proto [01:02:13]Method is POST - this is cgi request [01:02:13]url: /json_proto [01:02:13]query_string will be loaded in cgi processing [01:02:13]execute_cgi json_proto POST (null) [01:02:13]execute_cgi path=json_proto method=POST [01:02:13]POST find Content-Length [01:02:13]Host: 172.17.57.71:8080 [01:02:13]Content-Length: 331 [01:02:13]Content-Type: application/json [01:02:13] [01:02:13]POST finish read [01:02:13]Found Content-Length = 331 [01:02:13]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" ] } } [01:02:13]execute_script... [01:02:13]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" ] } } [01:02:14]POST & json_proto [01:02:14]process_json_proto [01:02:14]json parsed OK: [01:02:14]protocol is kg_v1.0 [01:02:14]action value=get_value [01:02:14]process_action get_value [01:02:14]cmd_get_value [01:02:14]process_action get_value done [01:02:14]requested_data is exist [01:02:14]produce_requested_data [01:02:14]requested_item fm.sale.total is exist - process it [01:02:14]SAM_PROTO_GetFMData [01:02:14]wFMCommunicate request_size=4 [01:02:14]MH_SAM_APDU [01:02:14]CAPDU: 80 13 03 00 [01:02:14]Write to MH i2c: E2 08 00 11 00 80 13 03 00 00 00 00 00 90 [01:02:14]Write i2c OK [01:02:14]MH_I2C_Read... [01:02:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:02:14]Read from MH i2c: E2 [01:02:14]MH_I2C_Read... [01:02:14]Read from MH i2c: E2 FD 00 [01:02:14]MH_I2C_Read... [01:02:14]Read from MH i2c: E2 FD 00 11 00 00 C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 69 [01:02:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [01:02:14]wFMCommunicate OK [01:02:14]wFMCommunicate request_size=4 [01:02:14]MH_SAM_APDU [01:02:14]CAPDU: 80 17 00 00 [01:02:14]Write to MH i2c: E2 08 00 12 00 80 17 00 00 00 00 00 00 92 [01:02:14]Write i2c OK [01:02:14]MH_I2C_Read... [01:02:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:14]Read from MH i2c: E2 [01:02:14]MH_I2C_Read... [01:02:14]Read from MH i2c: E2 FD 00 [01:02:14]MH_I2C_Read... [01:02:14]Read from MH i2c: E2 FD 00 12 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 1D 1C 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 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 [01:02:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 [01:02:14]wFMCommunicate OK [01:02:14]wFMCommunicate request_size=4 [01:02:14]MH_SAM_APDU [01:02:14]CAPDU: 80 17 00 00 [01:02:14]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [01:02:14]Write i2c OK [01:02:14]MH_I2C_Read... [01:02:14]OFD Sender: No OFD packet to send [01:02:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:15]Read from MH i2c: E2 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 13 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 A5 [01:02:15]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 [01:02:15]wFMCommunicate OK [01:02:15]wFMCommunicate request_size=4 [01:02:15]MH_SAM_APDU [01:02:15]CAPDU: 80 17 00 00 [01:02:15]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:02:15]Write i2c OK [01:02:15]MH_I2C_Read... [01:02:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:15]Read from MH i2c: E2 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 14 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 20 [01:02:15]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 [01:02:15]wFMCommunicate OK [01:02:15]wFMCommunicate request_size=4 [01:02:15]MH_SAM_APDU [01:02:15]CAPDU: 80 17 00 00 [01:02:15]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:02:15]Write i2c OK [01:02:15]MH_I2C_Read... [01:02:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:02:15]Read from MH i2c: E2 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 E2 00 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 E2 00 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [01:02:15]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 [01:02:15]wFMCommunicate OK [01:02:15]SAM_PROTO_GetFMData done [01:02:15]requested_item fm.sale_refund.total is exist - process it [01:02:15]requested_item fm.buy.total is exist - process it [01:02:15]requested_item shift.sale.total is exist - process it [01:02:15]SAM_PROTO_GetShiftData [01:02:15]wFMCommunicate request_size=4 [01:02:15]MH_SAM_APDU [01:02:15]CAPDU: 80 13 02 00 [01:02:15]Write to MH i2c: E2 08 00 16 00 80 13 02 00 00 00 00 00 94 [01:02:15]Write i2c OK [01:02:15]MH_I2C_Read... [01:02:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:02:15]Read from MH i2c: E2 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 [01:02:15]MH_I2C_Read... [01:02:15]Read from MH i2c: E2 FD 00 16 00 00 A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [01:02:15]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:15]wFMCommunicate OK [01:02:15]wFMCommunicate request_size=4 [01:02:15]MH_SAM_APDU [01:02:15]CAPDU: 80 17 00 00 [01:02:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:02:15]Write i2c OK [01:02:15]MH_I2C_Read... [01:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:16]Read from MH i2c: E2 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 17 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [01:02:16]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:16]wFMCommunicate OK [01:02:16]wFMCommunicate request_size=4 [01:02:16]MH_SAM_APDU [01:02:16]CAPDU: 80 17 00 00 [01:02:16]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [01:02:16]Write i2c OK [01:02:16]MH_I2C_Read... [01:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:16]Read from MH i2c: E2 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 18 00 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 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 90 00 50 [01:02:16]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:16]wFMCommunicate OK [01:02:16]wFMCommunicate request_size=4 [01:02:16]MH_SAM_APDU [01:02:16]CAPDU: 80 17 00 00 [01:02:16]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:02:16]Write i2c OK [01:02:16]MH_I2C_Read... [01:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:16]Read from MH i2c: E2 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 [01:02:16]MH_I2C_Read... [01:02:16]Read from MH i2c: E2 FD 00 19 00 00 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 90 00 18 [01:02:16]RAPDU: 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 90 00 [01:02:16]wFMCommunicate OK [01:02:16]wFMCommunicate request_size=4 [01:02:16]MH_SAM_APDU [01:02:16]CAPDU: 80 17 00 00 [01:02:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:02:16]Write i2c OK [01:02:16]MH_I2C_Read... [01:02:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [01:02:17]Read from MH i2c: E2 [01:02:17]MH_I2C_Read... [01:02:17]Read from MH i2c: E2 C4 00 [01:02:17]MH_I2C_Read... [01:02:17]Read from MH i2c: E2 C4 00 1A 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [01:02:17]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:02:17]wFMCommunicate OK [01:02:17]SAM_PROTO_GetShiftData done [01:02:17]requested_item shift.sale.total_cash is exist - process it [01:02:17]requested_item shift.sale_refund.total is exist - process it [01:02:17]requested_item shift.sale_refund.total_cash is exist - process it [01:02:17]requested_item shift.buy.total is exist - process it [01:02:17]requested_item shift.buy.total_cash is exist - process it [01:02:17]produce_requested_data done [01:02:17]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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} [01:02:17]process_action_free get_value [01:02:17]json_value_free [01:02:17]json_value_free done [01:02:17]process_json_proto returns [01:02:17]Send response to host [01:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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}}} [01:02:17]free response buf [01:02:17]execute_script done [01:02:17]execute_script returns [01:02:17]free content buf [01:02:17]Sock 9.Close socket [01:02:17]Sock 9.Thread stoped [01:02:19]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:28]accept exits with 8 [01:02:28]New connection [01:02:28]New thread 3066801508 created [01:02:28]Thread 3066658148 joined [01:02:28]Waiting for new connection... [01:02:28] Sock 8.Parse request [01:02:28]Sock 8.Check first char [01:02:28]Sock 8.First char is OK [01:02:28]request: POST /json_proto HTTP/1.0 [01:02:28]Method: POST [01:02:28]URL: /json_proto [01:02:28]Method is POST - this is cgi request [01:02:28]url: /json_proto [01:02:28]query_string will be loaded in cgi processing [01:02:28]execute_cgi json_proto POST (null) [01:02:28]execute_cgi path=json_proto method=POST [01:02:28]POST find Content-Length [01:02:28]Host: 172.17.57.71:8080 [01:02:28]Content-Length: 215 [01:02:28]Content-Type: application/json [01:02:28] [01:02:28]POST finish read [01:02:28]Found Content-Length = 215 [01:02:28]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" ] } } [01:02:28]execute_script... [01:02:28]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" ] } } [01:02:28]POST & json_proto [01:02:28]process_json_proto [01:02:28]json parsed OK: [01:02:28]protocol is kg_v1.0 [01:02:28]action value=get_value [01:02:28]process_action get_value [01:02:28]cmd_get_value [01:02:28]process_action get_value done [01:02:28]requested_data is exist [01:02:28]produce_requested_data [01:02:28]requested_item kkm.sn is exist - process it [01:02:28]requested_item kkm.ver is exist - process it [01:02:28]requested_item fm.sn is exist - process it [01:02:28]wFMCommunicate request_size=4 [01:02:28]MH_SAM_APDU [01:02:28]CAPDU: 80 11 00 00 [01:02:28]Write to MH i2c: E2 08 00 1B 00 80 11 00 00 00 00 00 00 95 [01:02:28]Write i2c OK [01:02:28]MH_I2C_Read... [01:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:28]Read from MH i2c: E2 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 17 00 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 17 00 1B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EC [01:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:02:28]wFMCommunicate OK [01:02:28]requested_item fd.num is exist - process it [01:02:28]SAM_PROTO_GetFieldsCounters [01:02:28]wFMCommunicate request_size=4 [01:02:28]MH_SAM_APDU [01:02:28]CAPDU: 80 13 00 00 [01:02:28]Write to MH i2c: E2 08 00 1C 00 80 13 00 00 00 00 00 00 98 [01:02:28]Write i2c OK [01:02:28]MH_I2C_Read... [01:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:28]Read from MH i2c: E2 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 62 00 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 62 00 1C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [01:02:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:28]wFMCommunicate OK [01:02:28]SAM_PROTO_GetFieldsCounters done [01:02:28]requested_item shift.num is exist - process it [01:02:28]requested_item shift.opened is exist - process it [01:02:28]req_shift_opened [01:02:28]FM_GetShiftState [01:02:28]SAM_PROTO_GetShiftState [01:02:28]wFMCommunicate request_size=4 [01:02:28]MH_SAM_APDU [01:02:28]CAPDU: 80 13 01 00 [01:02:28]Write to MH i2c: E2 08 00 1D 00 80 13 01 00 00 00 00 00 9A [01:02:28]Write i2c OK [01:02:28]MH_I2C_Read... [01:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:28]Read from MH i2c: E2 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 0E 00 [01:02:28]MH_I2C_Read... [01:02:28]Read from MH i2c: E2 0E 00 1D 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 34 [01:02:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:02:28]wFMCommunicate OK [01:02:28]SAM_PROTO_GetShiftState done [01:02:28]FM_GetShiftState done [01:02:28]req_shift_opened done [01:02:28]requested_item shift.open_date is exist - process it [01:02:28]req_shift_open_date [01:02:28]req_shift_open_date done [01:02:28]produce_requested_data done [01:02:28]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:02:28]process_action_free get_value [01:02:28]json_value_free [01:02:28]json_value_free done [01:02:28]process_json_proto returns [01:02:28]Send response to host [01:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:02:28]free response buf [01:02:28]execute_script done [01:02:28]execute_script returns [01:02:28]free content buf [01:02:28]Sock 8.Close socket [01:02:28]Sock 8.Thread stoped [01:02:28]accept exits with 9 [01:02:28]New connection [01:02:28]New thread 3066658148 created [01:02:28]Thread 3066801508 joined [01:02:28]Waiting for new connection... [01:02:28] Sock 9.Parse request [01:02:28]Sock 9.Check first char [01:02:28]Sock 9.First char is OK [01:02:28]request: POST /json_proto HTTP/1.0 [01:02:28]Method: POST [01:02:28]URL: /json_proto [01:02:28]Method is POST - this is cgi request [01:02:28]url: /json_proto [01:02:28]query_string will be loaded in cgi processing [01:02:28]execute_cgi json_proto POST (null) [01:02:28]execute_cgi path=json_proto method=POST [01:02:28]POST find Content-Length [01:02:28]Host: 172.17.57.71:8080 [01:02:28]Content-Length: 331 [01:02:28]Content-Type: application/json [01:02:28] [01:02:28]POST finish read [01:02:28]Found Content-Length = 331 [01:02:28]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" ] } } [01:02:28]execute_script... [01:02:28]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" ] } } [01:02:28]POST & json_proto [01:02:28]process_json_proto [01:02:28]json parsed OK: [01:02:28]protocol is kg_v1.0 [01:02:28]action value=get_value [01:02:28]process_action get_value [01:02:28]cmd_get_value [01:02:28]process_action get_value done [01:02:28]requested_data is exist [01:02:28]produce_requested_data [01:02:28]requested_item fm.sale.total is exist - process it [01:02:28]SAM_PROTO_GetFMData [01:02:28]wFMCommunicate request_size=4 [01:02:28]MH_SAM_APDU [01:02:28]CAPDU: 80 13 03 00 [01:02:28]Write to MH i2c: E2 08 00 1E 00 80 13 03 00 00 00 00 00 9D [01:02:28]Write i2c OK [01:02:28]MH_I2C_Read... [01:02:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:02:29]Read from MH i2c: E2 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 1E 00 00 C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 76 [01:02:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [01:02:29]wFMCommunicate OK [01:02:29]wFMCommunicate request_size=4 [01:02:29]MH_SAM_APDU [01:02:29]CAPDU: 80 17 00 00 [01:02:29]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [01:02:29]Write i2c OK [01:02:29]MH_I2C_Read... [01:02:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:29]Read from MH i2c: E2 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 1F 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 1D 1C 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 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 98 [01:02:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 [01:02:29]wFMCommunicate OK [01:02:29]wFMCommunicate request_size=4 [01:02:29]MH_SAM_APDU [01:02:29]CAPDU: 80 17 00 00 [01:02:29]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [01:02:29]Write i2c OK [01:02:29]MH_I2C_Read... [01:02:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:29]Read from MH i2c: E2 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 [01:02:29]MH_I2C_Read... [01:02:29]Read from MH i2c: E2 FD 00 20 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 B2 [01:02:29]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 [01:02:29]wFMCommunicate OK [01:02:29]wFMCommunicate request_size=4 [01:02:29]MH_SAM_APDU [01:02:29]CAPDU: 80 17 00 00 [01:02:29]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [01:02:29]Write i2c OK [01:02:29]MH_I2C_Read... [01:02:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:30]Read from MH i2c: E2 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 FD 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 FD 00 21 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 2D [01:02:30]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 [01:02:30]wFMCommunicate OK [01:02:30]wFMCommunicate request_size=4 [01:02:30]MH_SAM_APDU [01:02:30]CAPDU: 80 17 00 00 [01:02:30]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [01:02:30]OFD Sender: No OFD packet to send [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:02:30]Read from MH i2c: E2 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 E2 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 E2 00 22 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [01:02:30]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 [01:02:30]wFMCommunicate OK [01:02:30]SAM_PROTO_GetFMData done [01:02:30]requested_item fm.sale_refund.total is exist - process it [01:02:30]requested_item fm.buy.total is exist - process it [01:02:30]requested_item shift.sale.total is exist - process it [01:02:30]SAM_PROTO_GetShiftData [01:02:30]wFMCommunicate request_size=4 [01:02:30]MH_SAM_APDU [01:02:30]CAPDU: 80 13 02 00 [01:02:30]Write to MH i2c: E2 08 00 23 00 80 13 02 00 00 00 00 00 A1 [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:02:30]Read from MH i2c: E2 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 FD 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: E2 FD 00 23 00 00 A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [01:02:30]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:30]wFMCommunicate OK [01:02:30]wFMCommunicate request_size=4 [01:02:30]MH_SAM_APDU [01:02:30]CAPDU: 80 17 00 00 [01:02:30]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 24 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [01:02:31]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:31]wFMCommunicate OK [01:02:31]wFMCommunicate request_size=4 [01:02:31]MH_SAM_APDU [01:02:31]CAPDU: 80 17 00 00 [01:02:31]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 25 00 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 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 90 00 5D [01:02:31]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:02:31]wFMCommunicate OK [01:02:31]wFMCommunicate request_size=4 [01:02:31]MH_SAM_APDU [01:02:31]CAPDU: 80 17 00 00 [01:02:31]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 FD 00 26 00 00 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 90 00 25 [01:02:31]RAPDU: 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 90 00 [01:02:31]wFMCommunicate OK [01:02:31]wFMCommunicate request_size=4 [01:02:31]MH_SAM_APDU [01:02:31]CAPDU: 80 17 00 00 [01:02:31]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 C4 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 C4 00 27 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [01:02:31]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:02:31]wFMCommunicate OK [01:02:31]SAM_PROTO_GetShiftData done [01:02:31]requested_item shift.sale.total_cash is exist - process it [01:02:31]requested_item shift.sale_refund.total is exist - process it [01:02:31]requested_item shift.sale_refund.total_cash is exist - process it [01:02:31]requested_item shift.buy.total is exist - process it [01:02:31]requested_item shift.buy.total_cash is exist - process it [01:02:31]produce_requested_data done [01:02:31]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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} [01:02:31]process_action_free get_value [01:02:31]json_value_free [01:02:31]json_value_free done [01:02:31]process_json_proto returns [01:02:31]Send response to host [01:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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}}} [01:02:31]free response buf [01:02:31]execute_script done [01:02:31]execute_script returns [01:02:31]free content buf [01:02:31]Sock 9.Close socket [01:02:31]Sock 9.Thread stoped [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]accept exits with 8 [01:07:45]New connection [01:07:45]New thread 3066801508 created [01:07:45]Thread 3066658148 joined [01:07:45]Waiting for new connection... [01:07:45] Sock 8.Parse request [01:07:45]Sock 8.Check first char [01:07:45]Sock 8.First char is OK [01:07:45]request: POST /json_proto HTTP/1.0 [01:07:45]Method: POST [01:07:45]URL: /json_proto [01:07:45]Method is POST - this is cgi request [01:07:45]url: /json_proto [01:07:45]query_string will be loaded in cgi processing [01:07:45]execute_cgi json_proto POST (null) [01:07:45]execute_cgi path=json_proto method=POST [01:07:45]POST find Content-Length [01:07:45]Host: 172.17.57.71:8080 [01:07:45]Content-Length: 215 [01:07:45]Content-Type: application/json [01:07:45] [01:07:45]POST finish read [01:07:45]Found Content-Length = 215 [01:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:45]execute_script... [01:07:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:45]POST & json_proto [01:07:45]process_json_proto [01:07:45]json parsed OK: [01:07:45]protocol is kg_v1.0 [01:07:45]action value=get_value [01:07:45]process_action get_value [01:07:45]cmd_get_value [01:07:45]process_action get_value done [01:07:45]requested_data is exist [01:07:45]produce_requested_data [01:07:45]requested_item kkm.sn is exist - process it [01:07:45]requested_item kkm.ver is exist - process it [01:07:45]requested_item fm.sn is exist - process it [01:07:45]wFMCommunicate request_size=4 [01:07:45]MH_SAM_APDU [01:07:45]CAPDU: 80 11 00 00 [01:07:45]Write to MH i2c: E2 08 00 28 00 80 11 00 00 00 00 00 00 A2 [01:07:45]Write i2c OK [01:07:45]MH_I2C_Read... [01:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:45]Read from MH i2c: E2 [01:07:45]MH_I2C_Read... [01:07:45]Read from MH i2c: E2 17 00 [01:07:45]MH_I2C_Read... [01:07:45]Read from MH i2c: E2 17 00 28 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F9 [01:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:07:45]wFMCommunicate OK [01:07:45]requested_item fd.num is exist - process it [01:07:45]SAM_PROTO_GetFieldsCounters [01:07:45]wFMCommunicate request_size=4 [01:07:45]MH_SAM_APDU [01:07:45]CAPDU: 80 13 00 00 [01:07:45]Write to MH i2c: E2 08 00 29 00 80 13 00 00 00 00 00 00 A5 [01:07:45]Write i2c OK [01:07:45]MH_I2C_Read... [01:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:45]Read from MH i2c: E2 [01:07:45]MH_I2C_Read... [01:07:45]Read from MH i2c: E2 62 00 [01:07:45]MH_I2C_Read... [01:07:45]OFD Sender: No OFD packet to send [01:07:45]Read from MH i2c: E2 62 00 29 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [01:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:45]wFMCommunicate OK [01:07:45]SAM_PROTO_GetFieldsCounters done [01:07:45]requested_item shift.num is exist - process it [01:07:45]requested_item shift.opened is exist - process it [01:07:45]req_shift_opened [01:07:45]FM_GetShiftState [01:07:45]SAM_PROTO_GetShiftState [01:07:45]wFMCommunicate request_size=4 [01:07:45]MH_SAM_APDU [01:07:45]CAPDU: 80 13 01 00 [01:07:45]Write to MH i2c: E2 08 00 2A 00 80 13 01 00 00 00 00 00 A7 [01:07:45]Write i2c OK [01:07:45]MH_I2C_Read... [01:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:45]Read from MH i2c: E2 [01:07:45]MH_I2C_Read... [01:07:45]Read from MH i2c: E2 0E 00 [01:07:45]MH_I2C_Read... [01:07:45]Read from MH i2c: E2 0E 00 2A 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 41 [01:07:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:07:45]wFMCommunicate OK [01:07:45]SAM_PROTO_GetShiftState done [01:07:45]FM_GetShiftState done [01:07:45]req_shift_opened done [01:07:45]requested_item shift.open_date is exist - process it [01:07:45]req_shift_open_date [01:07:45]req_shift_open_date done [01:07:45]produce_requested_data done [01:07:45]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:07:45]process_action_free get_value [01:07:45]json_value_free [01:07:45]json_value_free done [01:07:45]process_json_proto returns [01:07:45]Send response to host [01:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92350,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:07:45]free response buf [01:07:45]execute_script done [01:07:45]execute_script returns [01:07:45]free content buf [01:07:45]Sock 8.Close socket [01:07:45]Sock 8.Thread stoped [01:07:48]accept exits with 9 [01:07:48]New connection [01:07:48]New thread 3066658148 created [01:07:48]Thread 3066801508 joined [01:07:48]Waiting for new connection... [01:07:48] Sock 9.Parse request [01:07:48]Sock 9.Check first char [01:07:48]Sock 9.First char is OK [01:07:48]request: POST /json_proto HTTP/1.0 [01:07:48]Method: POST [01:07:48]URL: /json_proto [01:07:48]Method is POST - this is cgi request [01:07:48]url: /json_proto [01:07:48]query_string will be loaded in cgi processing [01:07:48]execute_cgi json_proto POST (null) [01:07:48]execute_cgi path=json_proto method=POST [01:07:48]POST find Content-Length [01:07:48]Host: 172.17.57.71:8080 [01:07:48]Content-Length: 331 [01:07:48]Content-Type: application/json [01:07:48] [01:07:48]POST finish read [01:07:48]Found Content-Length = 331 [01:07:48]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" ] } } [01:07:48]execute_script... [01:07:48]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" ] } } [01:07:48]POST & json_proto [01:07:48]process_json_proto [01:07:48]json parsed OK: [01:07:48]protocol is kg_v1.0 [01:07:48]action value=get_value [01:07:48]process_action get_value [01:07:48]cmd_get_value [01:07:48]process_action get_value done [01:07:48]requested_data is exist [01:07:48]produce_requested_data [01:07:48]requested_item fm.sale.total is exist - process it [01:07:48]SAM_PROTO_GetFMData [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 13 03 00 [01:07:48]Write to MH i2c: E2 08 00 2B 00 80 13 03 00 00 00 00 00 AA [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 FD 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 FD 00 2B 00 00 C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 83 [01:07:48]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CA 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4E 03 00 00 B1 04 04 00 3C 62 76 04 70 04 04 00 84 DE 3E 04 72 04 03 00 B8 83 37 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 6B 55 79 EF 03 09 90 00 [01:07:48]wFMCommunicate OK [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 17 00 00 [01:07:48]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:49]Read from MH i2c: E2 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 2C 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 1D 1C 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 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 A5 [01:07:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1D 1C 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 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 [01:07:49]wFMCommunicate OK [01:07:49]wFMCommunicate request_size=4 [01:07:49]MH_SAM_APDU [01:07:49]CAPDU: 80 17 00 00 [01:07:49]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:49]Read from MH i2c: E2 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 2D 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 BF [01: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 [01:07:49]wFMCommunicate OK [01:07:49]wFMCommunicate request_size=4 [01:07:49]MH_SAM_APDU [01:07:49]CAPDU: 80 17 00 00 [01:07:49]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:49]Read from MH i2c: E2 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 FD 00 2E 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 3A [01: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 [01:07:49]wFMCommunicate OK [01:07:49]wFMCommunicate request_size=4 [01:07:49]MH_SAM_APDU [01:07:49]CAPDU: 80 17 00 00 [01:07:49]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:07:49]Read from MH i2c: E2 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 E2 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: E2 E2 00 2F 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [01:07:49]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 [01:07:49]wFMCommunicate OK [01:07:49]SAM_PROTO_GetFMData done [01:07:49]requested_item fm.sale_refund.total is exist - process it [01:07:49]requested_item fm.buy.total is exist - process it [01:07:49]requested_item shift.sale.total is exist - process it [01:07:49]SAM_PROTO_GetShiftData [01:07:49]wFMCommunicate request_size=4 [01:07:49]MH_SAM_APDU [01:07:49]CAPDU: 80 13 02 00 [01:07:49]Write to MH i2c: E2 08 00 30 00 80 13 02 00 00 00 00 00 AE [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:07:50]Read from MH i2c: E2 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 30 00 00 A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [01:07:50]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:07:50]wFMCommunicate OK [01:07:50]wFMCommunicate request_size=4 [01:07:50]MH_SAM_APDU [01:07:50]CAPDU: 80 17 00 00 [01:07:50]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [01:07:50]Write i2c OK [01:07:50]MH_I2C_Read... [01:07:50]OFD Sender: No OFD packet to send [01:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:50]Read from MH i2c: E2 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 31 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [01:07:50]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:07:50]wFMCommunicate OK [01:07:50]wFMCommunicate request_size=4 [01:07:50]MH_SAM_APDU [01:07:50]CAPDU: 80 17 00 00 [01:07:50]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [01:07:50]Write i2c OK [01:07:50]MH_I2C_Read... [01:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:50]Read from MH i2c: E2 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 [01:07:50]MH_I2C_Read... [01:07:50]Read from MH i2c: E2 FD 00 32 00 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 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 90 00 6A [01:07:50]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:07:50]wFMCommunicate OK [01:07:50]wFMCommunicate request_size=4 [01:07:50]MH_SAM_APDU [01:07:50]CAPDU: 80 17 00 00 [01:07:50]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [01:07:50]Write i2c OK [01:07:50]MH_I2C_Read... [01:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:07:51]Read from MH i2c: E2 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 FD 00 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 FD 00 33 00 00 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 90 00 32 [01:07:51]RAPDU: 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 90 00 [01:07:51]wFMCommunicate OK [01:07:51]wFMCommunicate request_size=4 [01:07:51]MH_SAM_APDU [01:07:51]CAPDU: 80 17 00 00 [01:07:51]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [01:07:51]Write i2c OK [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 [01:07:51]MH_I2C_Read... [01:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [01:07:51]Read from MH i2c: E2 C4 00 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 C4 00 34 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [01:07:51]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:07:51]wFMCommunicate OK [01:07:51]SAM_PROTO_GetShiftData done [01:07:51]requested_item shift.sale.total_cash is exist - process it [01:07:51]requested_item shift.sale_refund.total is exist - process it [01:07:51]requested_item shift.sale_refund.total_cash is exist - process it [01:07:51]requested_item shift.buy.total is exist - process it [01:07:51]requested_item shift.buy.total_cash is exist - process it [01:07:51]produce_requested_data done [01:07:51]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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} [01:07:51]process_action_free get_value [01:07:51]json_value_free [01:07:51]json_value_free done [01:07:51]process_json_proto returns [01:07:51]Send response to host [01:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748672.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.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}}} [01:07:51]free response buf [01:07:51]execute_script done [01:07:51]execute_script returns [01:07:51]free content buf [01:07:51]Sock 9.Close socket [01:07:51]Sock 9.Thread stoped [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:01]accept exits with 8 [01:09:01]New connection [01:09:01]New thread 3066801508 created [01:09:01]Thread 3066658148 joined [01:09:01]Waiting for new connection... [01:09:01] Sock 8.Parse request [01:09:01]Sock 8.Check first char [01:09:01]Sock 8.First char is OK [01:09:01]request: POST /json_proto HTTP/1.0 [01:09:01]Method: POST [01:09:01]URL: /json_proto [01:09:01]Method is POST - this is cgi request [01:09:01]url: /json_proto [01:09:01]query_string will be loaded in cgi processing [01:09:01]execute_cgi json_proto POST (null) [01:09:01]execute_cgi path=json_proto method=POST [01:09:01]POST find Content-Length [01:09:01]Host: 172.17.57.71:8080 [01:09:01]Content-Length: 1033 [01:09:01]Content-Type: application/json [01:09:01] [01:09:01]POST finish read [01:09:01]Found Content-Length = 1033 [01:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92350, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127275", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "92350" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:01]execute_script... [01:09:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92350, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127275", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "92350" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:01]POST & json_proto [01:09:01]process_json_proto [01:09:01]json parsed OK: [01:09:01]protocol is kg_v1.0 [01:09:01]action value=close_receipt [01:09:01]process_action close_receipt [01:09:01]cmd_close_receipt [01:09:01]MH_GetDate [01:09:01]Write to MH i2c: F0 00 00 35 00 24 [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: F0 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: F0 09 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: F0 09 00 35 00 00 2D E2 E4 66 33 3A A4 66 FD [01:09:01]GetLastDocTimeStamp 48 [01:09:01]current date 1726276141 [01:09:01]FM_GetShiftState [01:09:01]SAM_PROTO_GetShiftState [01:09:01]wFMCommunicate request_size=4 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 13 01 00 [01:09:01]Write to MH i2c: E2 08 00 36 00 80 13 01 00 00 00 00 00 B3 [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:01]Read from MH i2c: E2 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 0E 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 0E 00 36 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4D [01:09:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:09:01]wFMCommunicate OK [01:09:01]SAM_PROTO_GetShiftState done [01:09:01]FM_GetShiftState done [01:09:01]opened in 1726273389 [01:09:01]opened+sec_in_day 1726359789 [01:09:01]quantity*price = 6500 [01:09:01]sum+1 = 6501 [01:09:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740191 Сух Кириешки салями 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 86.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 86.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 2 14.09.2024 01:09 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92350 ФМ осн.: 0000000000874692 ФМ: 0000000000874692 ФД: 92351 ФПД: 250500020112097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T010901&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92351&fm=250500020112097&tin=02508201610067®Number=0000000000091423&sum=8600 92350 [01:09:02]StoreToDocumentArchive [01:09:02]shift 506 fd 92351 [01:09:02]save to /storage/0506/doc_00092351 [01:09:02]save last doc name /storage/0506/doc_00092351 to /storage/kkm_last_doc_name [01:09:02]save OK [01:09:02]Clear old archive folders... [01:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=436 [01:09:02]tlvbuf is 00F98B80 [01:09:02]SAM_PROTO_ClearQueue [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 09 00 00 [01:09:02]Write to MH i2c: E2 08 00 45 00 80 09 00 00 00 00 00 00 B7 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 45 00 00 90 00 B9 [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]SAM_PROTO_ClearQueue done [01:09:02]KKMCreateOFDPacket [01:09:02]OFDProtocolAddRootSTLVToBuf [01:09:02]FM_MakeSignedData [01:09:02]FM_MakeSignedData [01:09:02]SAM_PROTO_SignData [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 01 02 [01:09:02]Write to MH i2c: E2 08 00 46 00 80 0D 01 02 00 00 00 00 BF [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 46 00 00 90 00 BA [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=255 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [01:09:02]Write to MH i2c: E2 02 01 47 00 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 98 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 47 00 00 90 00 BB [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=195 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 02 02 BE 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 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 00 00 00 F4 03 04 00 2D E2 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 BE 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 68 01 00 35 04 06 00 E3 D4 14 B7 0A E1 [01:09:02]Write to MH i2c: E2 C6 00 48 00 80 0D 02 02 BE 00 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 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 00 00 00 F4 03 04 00 2D E2 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 BE 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 68 01 00 35 04 06 00 E3 D4 14 B7 0A E1 00 00 6C [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:03]Read from MH i2c: E2 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 03 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 03 00 48 00 00 90 00 BC [01:09:03]RAPDU: 90 00 [01:09:03]wFMCommunicate OK [01:09:03]wFMCommunicate request_size=4 [01:09:03]MH_SAM_APDU [01:09:03]CAPDU: 80 0D 03 02 [01:09:03]Write to MH i2c: E2 08 00 49 00 80 0D 03 02 00 00 00 00 C4 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:03]Read from MH i2c: E2 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 0B 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 0B 00 49 00 00 6D 9E 28 50 51 46 66 5D 90 00 A2 [01:09:03]RAPDU: 6D 9E 28 50 51 46 66 5D 90 00 [01:09:03]wFMCommunicate OK [01:09:03]SAM_PROTO_SignData done [01:09:03]FM_MakeSignedData done [01:09:03]CreateOFDProtocolMessage [01:09:03]wFMCommunicate request_size=4 [01:09:03]MH_SAM_APDU [01:09:03]CAPDU: 80 11 00 00 [01:09:03]Write to MH i2c: E2 08 00 4A 00 80 11 00 00 00 00 00 00 C4 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:03]Read from MH i2c: E2 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 17 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 17 00 4A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1B [01:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:09:03]wFMCommunicate OK [01:09:03]CreateOFDProtocolMessage done [01:09:03]OFDSenderStorePacket 92351 [01:09:03]StoreOFDPacket docnum=92351 [01:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C8 01 00 00 2A B4 C0 01 A4 B8 5A 03 01 00 03 00 B4 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 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 00 00 00 F4 03 04 00 2D E2 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 BE 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 68 01 00 35 04 06 00 E3 D4 14 B7 0A E1 6D 9E 28 50 51 46 66 5D [01:09:03]CheckFolder [01:09:03]dirname=/storage/ofd_packets [01:09:03]CheckFolder done [01:09:03]ProducePacketName [01:09:03]name=ofd_packets/00092351 [01:09:03]NVStorageSaveData ofd_packets/00092351 [01:09:03]File name is /storage/ofd_packets/00092351 [01:09:03]Write 486 bytes [01:09:03]NVStorageSaveData done [01:09:03]OFDSenderStorePacket done [01:09:03]KKMCreateOFDPacket done [01:09:03]NVStorageSaveData kkm_last_timestamp [01:09:03]File name is /storage/kkm_last_timestamp [01:09:03]Write 4 bytes [01:09:03]NVStorageSaveData done [01:09:03]ExternCall_PrintAddStr [01:09:03]wPrintStart [01:09:03]Write to MH i2c: 01 00 00 4B 00 4B [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 07 00 [01:09:03]MH_I2C_Read... [01:09:03]OFD Sender: Processing packet 92351 [packets to send 63, broken 62] [01:09:03]ProducePacketName [01:09:03]name=ofd_packets/00092351 [01:09:03]Read from MH i2c: 01 OFD Sender: To server: pG, [01:09:03]07 CommunicateWithHost lk.salyk.kg:30040 [01:09:03]00 ConnectInit lk.salyk.kg [01:09:03]4B 00 00 00 00 00 00 FF 0F 60 [01:09:03]RasterBufferAndPrint [01:09:03]line Счет N : (3)127275 [01:09:03]line ИНН: 02508201610067 [01:09:03]line Контрольно-Кассовый Чек [01:09:03]line ВОЗВРАТ ПРОДАЖИ [01:09:03]line Товар: 4870002325441 [01:09:03]line Вода ASU пит н.газ лимон ПЭТ 0,5л [01:09:03]line 1.000 * 65.00 [01:09:03]line = 65.00 [01:09:03]line НДС 12% НСП 1% [01:09:03]line > о реализуемом товаре [01:09:03]line Товар: 4607010740191 [01:09:03]line Сух Кириешки салями 40г [01:09:03]line 1.000 * 21.00 [01:09:03]line = 21.00 [01:09:03]line НДС 12% НСП 1% [01:09:03]line > о реализуемом товаре [01:09:03]line ИТОГО: 86.00 [01:09:03]line НСП 1% : 0.76 [01:09:03]line НДС 12% : 9.13 [01:09:03]line Наличными: 86.00 [01:09:03]line Безнал.: 0.00 [01:09:03]line Место: АЗС № 5 "Партнер Нефть" [01:09:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:09:03]line СНО: Общий режим [01:09:03]line Чек 2 14.09.2024 01:09 [01:09:03]line Смена: 506 ФФД: 1.0 [01:09:03]line ЗНМ: 03000000022 [01:09:03]line РНМ: 0000000000091423 [01:09:03]line Версия ККМ: 001 [01:09:03]line ФД осн.: 92350 [01:09:03]line ФМ осн.: 0000000000874692 [01:09:03]line ФМ: 0000000000874692 [01:09:03]line ФД: 92351 [01:09:03]line ФПД: 250500020112097 [01:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T010901&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92351&fm=250500020112097&tin=02508201610067®Number=0000000000091423&sum=8600 [01:09:03]line 92350 [01:09:03]written 0, free lines is 4095 [01:09:03]Connected sock=10 [01:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C8 01 00 00 2A B4 C0 01 A4 B8 5A 03 01 00 03 00 B4 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 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 00 00 00 F4 03 04 00 2D E2 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 BE 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 68 01 00 35 04 06 00 E3 D4 14 B7 0A E1 6D 9E 28 50 51 46 66 5D [01:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 28 9F 47 00 A5 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 BF 68 01 00 F4 03 04 00 AA 8A E4 66 B6 04 01 00 00 5F 78 58 43 64 29 A9 78 [01:09:03]CommunicateWithHost err = 0 [01:09:03]CheckOFDResponse [01:09:03]1017 (14) - 77093643461234 [01:09:03]1041 (16) - 0000000000874692 [01:09:03]1040 (4) - 92351 [01:09:03]1012 (4) - 13.09.2024 18:55 [01:09:03]1206 (1) - 0 [01:09:03]OFD Sender: Remove packet 92351 [01:09:03]ProducePacketName [01:09:03]name=ofd_packets/00092351 [01:09:03]NVStorageDeleteData [01:09:04]Write to MH i2c: 01 00 00 7C 00 7C [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: 01 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: 01 07 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 AA 0C 39 [01:09:04]RasterBufferAndPrint [01:09:04]line [01:09:04]line [01:09:04]line [01:09:04]line [01:09:04]line [01:09:04]written 0, free lines is 3249 [01:09:04]MH_Cut [01:09:04]Write to MH i2c: D1 01 00 83 00 01 55 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: D1 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: D1 01 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: D1 01 00 83 00 00 54 [01:09:04]Write to MH i2c: 01 00 00 84 00 84 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]OFD Sender: No OFD packet to send [01:09:04]*** Cut start [01:09:04]*** Purtial cut [01:09:04]*** Stage 1: CUTSNS_PIN = 1 [01:09:06]Read from MH i2c: 01 [01:09:06]MH_I2C_Read... [01:09:06]*** Stop cut motor [01:09:06]*** Cut end [01:09:06]Read from MH i2c: 01 07 00 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: 01 07 00 84 00 00 00 00 00 00 FF 0F 99 [01:09:06]process_action close_receipt done [01:09:06]requested_data is exist [01:09:06]produce_requested_data [01:09:06]requested_item fm.sn is exist - process it [01:09:06]wFMCommunicate request_size=4 [01:09:06]MH_SAM_APDU [01:09:06]CAPDU: 80 11 00 00 [01:09:06]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [01:09:06]Write i2c OK [01:09:06]MH_I2C_Read... [01:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:06]Read from MH i2c: E2 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: E2 17 00 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 56 [01:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:09:06]wFMCommunicate OK [01:09:06]requested_item fd.num is exist - process it [01:09:06]SAM_PROTO_GetFieldsCounters [01:09:06]wFMCommunicate request_size=4 [01:09:06]MH_SAM_APDU [01:09:06]CAPDU: 80 13 00 00 [01:09:06]Write to MH i2c: E2 08 00 86 00 80 13 00 00 00 00 00 00 02 [01:09:06]Write i2c OK [01:09:06]MH_I2C_Read... [01:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:07]Read from MH i2c: E2 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 62 00 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 62 00 86 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [01: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:07]wFMCommunicate OK [01:09:07]SAM_PROTO_GetFieldsCounters done [01:09:07]requested_item shift.num is exist - process it [01:09:07]requested_item shift.opened is exist - process it [01:09:07]req_shift_opened [01:09:07]FM_GetShiftState [01:09:07]SAM_PROTO_GetShiftState [01:09:07]wFMCommunicate request_size=4 [01:09:07]MH_SAM_APDU [01:09:07]CAPDU: 80 13 01 00 [01:09:07]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [01:09:07]Write i2c OK [01:09:07]MH_I2C_Read... [01:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:07]Read from MH i2c: E2 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 0E 00 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9E [01:09:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:09:07]wFMCommunicate OK [01:09:07]SAM_PROTO_GetShiftState done [01:09:07]FM_GetShiftState done [01:09:07]req_shift_opened done [01:09:07]requested_item shift.open_date is exist - process it [01:09:07]req_shift_open_date [01:09:07]req_shift_open_date done [01:09:07]produce_requested_data done [01:09:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:09:07]process_action_free close_receipt [01:09:07]json_value_free [01:09:07]json_value_free done [01:09:07]process_json_proto returns [01:09:07]Send response to host [01:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:09:07]free response buf [01:09:07]execute_script done [01:09:07]execute_script returns [01:09:07]free content buf [01:09:07]Sock 8.Close socket [01:09:07]Sock 8.Thread stoped [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:22]accept exits with 9 [01:13:22]New connection [01:13:22]New thread 3066658148 created [01:13:22]Thread 3066801508 joined [01:13:22]Waiting for new connection... [01:13:22] Sock 9.Parse request [01:13:22]Sock 9.Check first char [01:13:22]Sock 9.First char is OK [01:13:22]request: POST /json_proto HTTP/1.0 [01:13:22]Method: POST [01:13:22]URL: /json_proto [01:13:22]Method is POST - this is cgi request [01:13:22]url: /json_proto [01:13:22]query_string will be loaded in cgi processing [01:13:22]execute_cgi json_proto POST (null) [01:13:22]execute_cgi path=json_proto method=POST [01:13:22]POST find Content-Length [01:13:22]Host: 172.17.57.71:8080 [01:13:22]Content-Length: 215 [01:13:22]Content-Type: application/json [01:13:22] [01:13:22]POST finish read [01:13:22]Found Content-Length = 215 [01:13: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" ] } } [01:13:22]execute_script... [01:13: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" ] } } [01:13:22]POST & json_proto [01:13:22]process_json_proto [01:13:22]json parsed OK: [01:13:22]protocol is kg_v1.0 [01:13:22]action value=get_value [01:13:22]process_action get_value [01:13:22]cmd_get_value [01:13:22]process_action get_value done [01:13:22]requested_data is exist [01:13:22]produce_requested_data [01:13:22]requested_item kkm.sn is exist - process it [01:13:22]requested_item kkm.ver is exist - process it [01:13:22]requested_item fm.sn is exist - process it [01:13:22]wFMCommunicate request_size=4 [01:13:22]MH_SAM_APDU [01:13:22]CAPDU: 80 11 00 00 [01:13:22]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [01:13:22]Write i2c OK [01:13:22]MH_I2C_Read... [01:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:22]Read from MH i2c: E2 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: E2 17 00 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [01:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:13:22]wFMCommunicate OK [01:13:22]requested_item fd.num is exist - process it [01:13:22]SAM_PROTO_GetFieldsCounters [01:13:22]wFMCommunicate request_size=4 [01:13:22]MH_SAM_APDU [01:13:22]CAPDU: 80 13 00 00 [01:13:22]Write to MH i2c: E2 08 00 89 00 80 13 00 00 00 00 00 00 05 [01:13:22]Write i2c OK [01:13:22]MH_I2C_Read... [01:13:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:13:22]Read from MH i2c: E2 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: E2 62 00 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: E2 62 00 89 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [01:13:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:13:22]wFMCommunicate OK [01:13:22]SAM_PROTO_GetFieldsCounters done [01:13:22]requested_item shift.num is exist - process it [01:13:22]requested_item shift.opened is exist - process it [01:13:22]req_shift_opened [01:13:22]FM_GetShiftState [01:13:22]SAM_PROTO_GetShiftState [01:13:22]wFMCommunicate request_size=4 [01:13:22]MH_SAM_APDU [01:13:22]CAPDU: 80 13 01 00 [01:13:22]Write to MH i2c: E2 08 00 8A 00 80 13 01 00 00 00 00 00 07 [01:13:22]Write i2c OK [01:13:22]MH_I2C_Read... [01:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:23]Read from MH i2c: E2 [01:13:23]MH_I2C_Read... [01:13:23]Read from MH i2c: E2 0E 00 [01:13:23]MH_I2C_Read... [01:13:23]Read from MH i2c: E2 0E 00 8A 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [01:13:23]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:13:23]wFMCommunicate OK [01:13:23]SAM_PROTO_GetShiftState done [01:13:23]FM_GetShiftState done [01:13:23]req_shift_opened done [01:13:23]requested_item shift.open_date is exist - process it [01:13:23]req_shift_open_date [01:13:23]req_shift_open_date done [01:13:23]produce_requested_data done [01:13:23]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:13:23]process_action_free get_value [01:13:23]json_value_free [01:13:23]json_value_free done [01:13:23]process_json_proto returns [01:13:23]Send response to host [01:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:13:23]free response buf [01:13:23]execute_script done [01:13:23]execute_script returns [01:13:23]free content buf [01:13:23]Sock 9.Close socket [01:13:23]Sock 9.Thread stoped [01:13:24]OFD Sender: No OFD packet to send [01:13:26]accept exits with 8 [01:13:26]New connection [01:13:26]New thread 3066801508 created [01:13:26]Thread 3066658148 joined [01:13:26]Waiting for new connection... [01:13:26] Sock 8.Parse request [01:13:26]Sock 8.Check first char [01:13:26]Sock 8.First char is OK [01:13:26]request: POST /json_proto HTTP/1.0 [01:13:26]Method: POST [01:13:26]URL: /json_proto [01:13:26]Method is POST - this is cgi request [01:13:26]url: /json_proto [01:13:26]query_string will be loaded in cgi processing [01:13:26]execute_cgi json_proto POST (null) [01:13:26]execute_cgi path=json_proto method=POST [01:13:26]POST find Content-Length [01:13:26]Host: 172.17.57.71:8080 [01:13:26]Content-Length: 331 [01:13:26]Content-Type: application/json [01:13:26] [01:13:26]POST finish read [01:13:26]Found Content-Length = 331 [01:13:26]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" ] } } [01:13:26]execute_script... [01:13:26]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" ] } } [01:13:26]POST & json_proto [01:13:26]process_json_proto [01:13:26]json parsed OK: [01:13:26]protocol is kg_v1.0 [01:13:26]action value=get_value [01:13:26]process_action get_value [01:13:26]cmd_get_value [01:13:26]process_action get_value done [01:13:26]requested_data is exist [01:13:26]produce_requested_data [01:13:26]requested_item fm.sale.total is exist - process it [01:13:26]SAM_PROTO_GetFMData [01:13:26]wFMCommunicate request_size=4 [01:13:26]MH_SAM_APDU [01:13:26]CAPDU: 80 13 03 00 [01:13:26]Write to MH i2c: E2 08 00 8B 00 80 13 03 00 00 00 00 00 0A [01:13:26]Write i2c OK [01:13:26]MH_I2C_Read... [01:13:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:13:26]Read from MH i2c: E2 [01:13:26]MH_I2C_Read... [01:13:26]Read from MH i2c: E2 FD 00 [01:13:26]MH_I2C_Read... [01:13:26]Read from MH i2c: E2 FD 00 8B 00 00 C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 ED [01:13:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 [01:13:26]wFMCommunicate OK [01:13:26]wFMCommunicate request_size=4 [01:13:26]MH_SAM_APDU [01:13:26]CAPDU: 80 17 00 00 [01:13:26]Write to MH i2c: E2 08 00 8C 00 80 17 00 00 00 00 00 00 0C [01:13:26]Write i2c OK [01:13:26]MH_I2C_Read... [01:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:26]Read from MH i2c: E2 [01:13:26]MH_I2C_Read... [01:13:26]Read from MH i2c: E2 FD 00 [01:13:26]MH_I2C_Read... [01:13:26]Read from MH i2c: E2 FD 00 8C 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 69 1C 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 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 51 [01:13:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 69 1C 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 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 [01:13:26]wFMCommunicate OK [01:13:26]wFMCommunicate request_size=4 [01:13:26]MH_SAM_APDU [01:13:26]CAPDU: 80 17 00 00 [01:13:26]Write to MH i2c: E2 08 00 8D 00 80 17 00 00 00 00 00 00 0D [01:13:26]Write i2c OK [01:13:26]MH_I2C_Read... [01:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:27]Read from MH i2c: E2 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 FD 00 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 FD 00 8D 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 1F [01:13:27]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 [01:13:27]wFMCommunicate OK [01:13:27]wFMCommunicate request_size=4 [01:13:27]MH_SAM_APDU [01:13:27]CAPDU: 80 17 00 00 [01:13:27]Write to MH i2c: E2 08 00 8E 00 80 17 00 00 00 00 00 00 0E [01:13:27]Write i2c OK [01:13:27]MH_I2C_Read... [01:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:27]Read from MH i2c: E2 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 FD 00 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 FD 00 8E 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 9A [01:13:27]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 [01:13:27]wFMCommunicate OK [01:13:27]wFMCommunicate request_size=4 [01:13:27]MH_SAM_APDU [01:13:27]CAPDU: 80 17 00 00 [01:13:27]Write to MH i2c: E2 08 00 8F 00 80 17 00 00 00 00 00 00 0F [01:13:27]Write i2c OK [01:13:27]MH_I2C_Read... [01:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:13:27]Read from MH i2c: E2 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 E2 00 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: E2 E2 00 8F 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 ED [01:13:27]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 [01:13:27]wFMCommunicate OK [01:13:27]SAM_PROTO_GetFMData done [01:13:27]requested_item fm.sale_refund.total is exist - process it [01:13:27]requested_item fm.buy.total is exist - process it [01:13:27]requested_item shift.sale.total is exist - process it [01:13:27]SAM_PROTO_GetShiftData [01:13:27]wFMCommunicate request_size=4 [01:13:27]MH_SAM_APDU [01:13:27]CAPDU: 80 13 02 00 [01:13:27]Write to MH i2c: E2 08 00 90 00 80 13 02 00 00 00 00 00 0E [01:13:27]Write i2c OK [01:13:27]MH_I2C_Read... [01:13:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:13:28]Read from MH i2c: E2 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 90 00 00 AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 2F [01:13:28]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 [01:13:28]wFMCommunicate OK [01:13:28]wFMCommunicate request_size=4 [01:13:28]MH_SAM_APDU [01:13:28]CAPDU: 80 17 00 00 [01:13:28]Write to MH i2c: E2 08 00 91 00 80 17 00 00 00 00 00 00 11 [01:13:28]Write i2c OK [01:13:28]MH_I2C_Read... [01:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:28]Read from MH i2c: E2 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 91 00 00 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 7D [01:13:28]RAPDU: 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [01:13:28]wFMCommunicate OK [01:13:28]wFMCommunicate request_size=4 [01:13:28]MH_SAM_APDU [01:13:28]CAPDU: 80 17 00 00 [01:13:28]Write to MH i2c: E2 08 00 92 00 80 17 00 00 00 00 00 00 12 [01:13:28]Write i2c OK [01:13:28]MH_I2C_Read... [01:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:28]Read from MH i2c: E2 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 92 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C9 [01:13:28]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [01:13:28]wFMCommunicate OK [01:13:28]wFMCommunicate request_size=4 [01:13:28]MH_SAM_APDU [01:13:28]CAPDU: 80 17 00 00 [01:13:28]Write to MH i2c: E2 08 00 93 00 80 17 00 00 00 00 00 00 13 [01:13:28]Write i2c OK [01:13:28]MH_I2C_Read... [01:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:13:28]Read from MH i2c: E2 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 [01:13:28]MH_I2C_Read... [01:13:28]Read from MH i2c: E2 FD 00 93 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 85 [01:13:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [01:13:28]wFMCommunicate OK [01:13:28]wFMCommunicate request_size=4 [01:13:28]MH_SAM_APDU [01:13:28]CAPDU: 80 17 00 00 [01:13:28]Write to MH i2c: E2 08 00 94 00 80 17 00 00 00 00 00 00 14 [01:13:28]Write i2c OK [01:13:28]MH_I2C_Read... [01:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [01:13:29]Read from MH i2c: E2 [01:13:29]MH_I2C_Read... [01:13:29]Read from MH i2c: E2 CB 00 [01:13:29]MH_I2C_Read... [01:13:29]Read from MH i2c: E2 CB 00 94 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [01:13:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:13:29]wFMCommunicate OK [01:13:29]SAM_PROTO_GetShiftData done [01:13:29]requested_item shift.sale.total_cash is exist - process it [01:13:29]requested_item shift.sale_refund.total is exist - process it [01:13:29]requested_item shift.sale_refund.total_cash is exist - process it [01:13:29]requested_item shift.buy.total is exist - process it [01:13:29]requested_item shift.buy.total_cash is exist - process it [01:13:29]produce_requested_data done [01:13:29]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:13:29]process_action_free get_value [01:13:29]json_value_free [01:13:29]json_value_free done [01:13:29]process_json_proto returns [01:13:29]Send response to host [01:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:13:29]free response buf [01:13:29]execute_script done [01:13:29]execute_script returns [01:13:29]free content buf [01:13:29]Sock 8.Close socket [01:13:29]Sock 8.Thread stoped [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:16]accept exits with 9 [01:19:16]New connection [01:19:16]New thread 3066658148 created [01:19:16]Thread 3066801508 joined [01:19:16]Waiting for new connection... [01:19:16] Sock 9.Parse request [01:19:16]Sock 9.Check first char [01:19:16]Sock 9.First char is OK [01:19:16]request: POST /json_proto HTTP/1.0 [01:19:16]Method: POST [01:19:16]URL: /json_proto [01:19:16]Method is POST - this is cgi request [01:19:16]url: /json_proto [01:19:16]query_string will be loaded in cgi processing [01:19:16]execute_cgi json_proto POST (null) [01:19:16]execute_cgi path=json_proto method=POST [01:19:16]POST find Content-Length [01:19:16]Host: 172.17.57.71:8080 [01:19:16]Content-Length: 215 [01:19:16]Content-Type: application/json [01:19:16] [01:19:16]POST finish read [01:19:16]Found Content-Length = 215 [01:19:16]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" ] } } [01:19:16]execute_script... [01:19:16]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" ] } } [01:19:16]POST & json_proto [01:19:16]process_json_proto [01:19:16]json parsed OK: [01:19:16]protocol is kg_v1.0 [01:19:16]action value=get_value [01:19:16]process_action get_value [01:19:16]cmd_get_value [01:19:16]process_action get_value done [01:19:16]requested_data is exist [01:19:16]produce_requested_data [01:19:16]requested_item kkm.sn is exist - process it [01:19:16]requested_item kkm.ver is exist - process it [01:19:16]requested_item fm.sn is exist - process it [01:19:16]wFMCommunicate request_size=4 [01:19:16]MH_SAM_APDU [01:19:16]CAPDU: 80 11 00 00 [01:19:16]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [01:19:16]Write i2c OK [01:19:16]MH_I2C_Read... [01:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:16]Read from MH i2c: E2 [01:19:16]MH_I2C_Read... [01:19:16]Read from MH i2c: E2 17 00 [01:19:16]MH_I2C_Read... [01:19:16]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 34 36 39 32 90 00 66 [01:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:19:16]wFMCommunicate OK [01:19:16]requested_item fd.num is exist - process it [01:19:16]SAM_PROTO_GetFieldsCounters [01:19:16]wFMCommunicate request_size=4 [01:19:16]MH_SAM_APDU [01:19:16]CAPDU: 80 13 00 00 [01:19:16]Write to MH i2c: E2 08 00 96 00 80 13 00 00 00 00 00 00 12 [01:19:16]Write i2c OK [01:19:16]MH_I2C_Read... [01:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:16]Read from MH i2c: E2 [01:19:16]MH_I2C_Read... [01:19:16]Read from MH i2c: E2 62 00 [01:19:16]MH_I2C_Read... [01:19:16]Read from MH i2c: E2 62 00 96 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [01:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:16]wFMCommunicate OK [01:19:16]SAM_PROTO_GetFieldsCounters done [01:19:16]requested_item shift.num is exist - process it [01:19:16]requested_item shift.opened is exist - process it [01:19:16]req_shift_opened [01:19:16]FM_GetShiftState [01:19:16]SAM_PROTO_GetShiftState [01:19:16]wFMCommunicate request_size=4 [01:19:16]MH_SAM_APDU [01:19:16]CAPDU: 80 13 01 00 [01:19:16]Write to MH i2c: E2 08 00 97 00 80 13 01 00 00 00 00 00 14 [01:19:16]Write i2c OK [01:19:16]MH_I2C_Read... [01:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:16]Read from MH i2c: E2 [01:19:16]MH_I2C_Read... [01:19:16]Read from MH i2c: E2 0E 00 [01:19:16]MH_I2C_Read... [01:19:16]Read from MH i2c: E2 0E 00 97 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AE [01:19:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:19:16]wFMCommunicate OK [01:19:16]SAM_PROTO_GetShiftState done [01:19:16]FM_GetShiftState done [01:19:16]req_shift_opened done [01:19:16]requested_item shift.open_date is exist - process it [01:19:16]req_shift_open_date [01:19:16]req_shift_open_date done [01:19:16]produce_requested_data done [01:19:16]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:19:16]process_action_free get_value [01:19:16]json_value_free [01:19:16]json_value_free done [01:19:16]process_json_proto returns [01:19:16]Send response to host [01:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:19:16]free response buf [01:19:16]execute_script done [01:19:16]execute_script returns [01:19:16]free content buf [01:19:16]Sock 9.Close socket [01:19:16]Sock 9.Thread stoped [01:19:16]accept exits with 8 [01:19:16]New connection [01:19:16]New thread 3066801508 created [01:19:16]Thread 3066658148 joined [01:19:16]Waiting for new connection... [01:19:16] Sock 8.Parse request [01:19:16]Sock 8.Check first char [01:19:16]Sock 8.First char is OK [01:19:16]request: POST /json_proto HTTP/1.0 [01:19:16]Method: POST [01:19:16]URL: /json_proto [01:19:16]Method is POST - this is cgi request [01:19:16]url: /json_proto [01:19:16]query_string will be loaded in cgi processing [01:19:16]execute_cgi json_proto POST (null) [01:19:16]execute_cgi path=json_proto method=POST [01:19:16]POST find Content-Length [01:19:16]Host: 172.17.57.71:8080 [01:19:16]Content-Length: 331 [01:19:16]Content-Type: application/json [01:19:16] [01:19:16]POST finish read [01:19:16]Found Content-Length = 331 [01:19:16]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" ] } } [01:19:16]execute_script... [01:19:16]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" ] } } [01:19:16]POST & json_proto [01:19:16]process_json_proto [01:19:16]json parsed OK: [01:19:16]protocol is kg_v1.0 [01:19:16]action value=get_value [01:19:16]process_action get_value [01:19:16]cmd_get_value [01:19:16]process_action get_value done [01:19:16]requested_data is exist [01:19:16]produce_requested_data [01:19:16]requested_item fm.sale.total is exist - process it [01:19:16]SAM_PROTO_GetFMData [01:19:16]wFMCommunicate request_size=4 [01:19:16]MH_SAM_APDU [01:19:16]CAPDU: 80 13 03 00 [01:19:16]Write to MH i2c: E2 08 00 98 00 80 13 03 00 00 00 00 00 17 [01:19:16]Write i2c OK [01:19:16]MH_I2C_Read... [01:19:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:17]Read from MH i2c: E2 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 98 00 00 C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 FA [01:19:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 [01:19:17]wFMCommunicate OK [01:19:17]wFMCommunicate request_size=4 [01:19:17]MH_SAM_APDU [01:19:17]CAPDU: 80 17 00 00 [01:19:17]Write to MH i2c: E2 08 00 99 00 80 17 00 00 00 00 00 00 19 [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:17]Read from MH i2c: E2 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 99 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 69 1C 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 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 5E [01:19:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 69 1C 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 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 [01:19:17]wFMCommunicate OK [01:19:17]wFMCommunicate request_size=4 [01:19:17]MH_SAM_APDU [01:19:17]CAPDU: 80 17 00 00 [01:19:17]Write to MH i2c: E2 08 00 9A 00 80 17 00 00 00 00 00 00 1A [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:17]Read from MH i2c: E2 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 FD 00 9A 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 2C [01:19:17]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 [01:19:17]wFMCommunicate OK [01:19:17]wFMCommunicate request_size=4 [01:19:17]MH_SAM_APDU [01:19:17]CAPDU: 80 17 00 00 [01:19:17]Write to MH i2c: E2 08 00 9B 00 80 17 00 00 00 00 00 00 1B [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 FD 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 FD 00 9B 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 A7 [01:19:18]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 [01:19:18]wFMCommunicate OK [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 17 00 00 [01:19:18]Write to MH i2c: E2 08 00 9C 00 80 17 00 00 00 00 00 00 1C [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 E2 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 E2 00 9C 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FA [01:19:18]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 [01:19:18]wFMCommunicate OK [01:19:18]SAM_PROTO_GetFMData done [01:19:18]requested_item fm.sale_refund.total is exist - process it [01:19:18]requested_item fm.buy.total is exist - process it [01:19:18]requested_item shift.sale.total is exist - process it [01:19:18]SAM_PROTO_GetShiftData [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 13 02 00 [01:19:18]Write to MH i2c: E2 08 00 9D 00 80 13 02 00 00 00 00 00 1B [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 FD 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 FD 00 9D 00 00 AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 3C [01:19:18]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 [01:19:18]wFMCommunicate OK [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 17 00 00 [01:19:18]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:19]Read from MH i2c: E2 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 9E 00 00 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8A [01:19:19]RAPDU: 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [01:19:19]wFMCommunicate OK [01:19:19]wFMCommunicate request_size=4 [01:19:19]MH_SAM_APDU [01:19:19]CAPDU: 80 17 00 00 [01:19:19]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:19]Read from MH i2c: E2 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 9F 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D6 [01:19:19]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [01:19:19]wFMCommunicate OK [01:19:19]wFMCommunicate request_size=4 [01:19:19]MH_SAM_APDU [01:19:19]CAPDU: 80 17 00 00 [01:19:19]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:19]Read from MH i2c: E2 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 FD 00 A0 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 92 [01:19:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [01:19:19]wFMCommunicate OK [01:19:19]wFMCommunicate request_size=4 [01:19:19]MH_SAM_APDU [01:19:19]CAPDU: 80 17 00 00 [01:19:19]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [01:19:19]Read from MH i2c: E2 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 CB 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 CB 00 A1 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0A [01:19:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:19]wFMCommunicate OK [01:19:19]SAM_PROTO_GetShiftData done [01:19:19]requested_item shift.sale.total_cash is exist - process it [01:19:19]requested_item shift.sale_refund.total is exist - process it [01:19:19]requested_item shift.sale_refund.total_cash is exist - process it [01:19:19]requested_item shift.buy.total is exist - process it [01:19:19]requested_item shift.buy.total_cash is exist - process it [01:19:19]produce_requested_data done [01:19:19]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:19:19]process_action_free get_value [01:19:19]json_value_free [01:19:19]json_value_free done [01:19:19]process_json_proto returns [01:19:19]Send response to host [01:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:19:19]free response buf [01:19:19]execute_script done [01:19:19]execute_script returns [01:19:19]free content buf [01:19:19]Sock 8.Close socket [01:19:19]Sock 8.Thread stoped [01:19:20]OFD Sender: No OFD packet to send [01:19:20]accept exits with 9 [01:19:20]New connection [01:19:20]New thread 3066658148 created [01:19:20]Thread 3066801508 joined [01:19:20]Waiting for new connection... [01:19:20] Sock 9.Parse request [01:19:20]Sock 9.Check first char [01:19:20]Sock 9.First char is OK [01:19:20]request: POST /json_proto HTTP/1.0 [01:19:20]Method: POST [01:19:20]URL: /json_proto [01:19:20]Method is POST - this is cgi request [01:19:20]url: /json_proto [01:19:20]query_string will be loaded in cgi processing [01:19:20]execute_cgi json_proto POST (null) [01:19:20]execute_cgi path=json_proto method=POST [01:19:20]POST find Content-Length [01:19:20]Host: 172.17.57.71:8080 [01:19:20]Content-Length: 331 [01:19:20]Content-Type: application/json [01:19:20] [01:19:20]POST finish read [01:19:20]Found Content-Length = 331 [01:19:20]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" ] } } [01:19:20]execute_script... [01:19:20]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" ] } } [01:19:20]POST & json_proto [01:19:20]process_json_proto [01:19:20]json parsed OK: [01:19:20]protocol is kg_v1.0 [01:19:20]action value=get_value [01:19:20]process_action get_value [01:19:20]cmd_get_value [01:19:20]process_action get_value done [01:19:20]requested_data is exist [01:19:20]produce_requested_data [01:19:20]requested_item fm.sale.total is exist - process it [01:19:20]SAM_PROTO_GetFMData [01:19:20]wFMCommunicate request_size=4 [01:19:20]MH_SAM_APDU [01:19:20]CAPDU: 80 13 03 00 [01:19:20]Write to MH i2c: E2 08 00 A2 00 80 13 03 00 00 00 00 00 21 [01:19:20]Write i2c OK [01:19:20]MH_I2C_Read... [01:19:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:20]Read from MH i2c: E2 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 FD 00 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 FD 00 A2 00 00 C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 04 [01:19:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 [01:19:20]wFMCommunicate OK [01:19:20]wFMCommunicate request_size=4 [01:19:20]MH_SAM_APDU [01:19:20]CAPDU: 80 17 00 00 [01:19:20]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [01:19:20]Write i2c OK [01:19:20]MH_I2C_Read... [01:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:20]Read from MH i2c: E2 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 FD 00 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 FD 00 A3 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 69 1C 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 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 68 [01:19:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 69 1C 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 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 [01:19:20]wFMCommunicate OK [01:19:20]wFMCommunicate request_size=4 [01:19:20]MH_SAM_APDU [01:19:20]CAPDU: 80 17 00 00 [01:19:20]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [01:19:20]Write i2c OK [01:19:20]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 FD 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 FD 00 A4 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 36 [01:19:21]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 [01:19:21]wFMCommunicate OK [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 17 00 00 [01:19:21]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 FD 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 FD 00 A5 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 B1 [01:19:21]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 [01:19:21]wFMCommunicate OK [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 17 00 00 [01:19:21]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 E2 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 E2 00 A6 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:19:21]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 [01:19:21]wFMCommunicate OK [01:19:21]SAM_PROTO_GetFMData done [01:19:21]requested_item fm.sale_refund.total is exist - process it [01:19:21]requested_item fm.buy.total is exist - process it [01:19:21]requested_item shift.sale.total is exist - process it [01:19:21]SAM_PROTO_GetShiftData [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 13 02 00 [01:19:21]Write to MH i2c: E2 08 00 A7 00 80 13 02 00 00 00 00 00 25 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:22]Read from MH i2c: E2 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 A7 00 00 AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 46 [01:19:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 [01:19:22]wFMCommunicate OK [01:19:22]wFMCommunicate request_size=4 [01:19:22]MH_SAM_APDU [01:19:22]CAPDU: 80 17 00 00 [01:19:22]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:22]Read from MH i2c: E2 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 A8 00 00 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 94 [01:19:22]RAPDU: 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [01:19:22]wFMCommunicate OK [01:19:22]wFMCommunicate request_size=4 [01:19:22]MH_SAM_APDU [01:19:22]CAPDU: 80 17 00 00 [01:19:22]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 A9 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E0 [01:19:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [01:19:23]wFMCommunicate OK [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 17 00 00 [01:19:23]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 AA 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9C [01:19:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [01:19:23]wFMCommunicate OK [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 17 00 00 [01:19:23]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 CB 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 CB 00 AB 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [01:19:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:23]wFMCommunicate OK [01:19:23]SAM_PROTO_GetShiftData done [01:19:23]requested_item shift.sale.total_cash is exist - process it [01:19:23]requested_item shift.sale_refund.total is exist - process it [01:19:23]requested_item shift.sale_refund.total_cash is exist - process it [01:19:23]requested_item shift.buy.total is exist - process it [01:19:23]requested_item shift.buy.total_cash is exist - process it [01:19:23]produce_requested_data done [01:19:23]produce_requested_data return {"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:19:23]process_action_free get_value [01:19:23]json_value_free [01:19:23]json_value_free done [01:19:23]process_json_proto returns [01:19:23]Send response to host [01:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29944755.09,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":86.00,"shift.sale.total_cash":86.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:19:23]free response buf [01:19:23]execute_script done [01:19:23]execute_script returns [01:19:23]free content buf [01:19:23]Sock 9.Close socket [01:19:23]Sock 9.Thread stoped [01:19:23]accept exits with 8 [01:19:23]New connection [01:19:23]New thread 3066801508 created [01:19:23]Thread 3066658148 joined [01:19:23]Waiting for new connection... [01:19:23] Sock 8.Parse request [01:19:23]Sock 8.Check first char [01:19:23]Sock 8.First char is OK [01:19:23]request: POST /json_proto HTTP/1.0 [01:19:23]Method: POST [01:19:23]URL: /json_proto [01:19:23]Method is POST - this is cgi request [01:19:23]url: /json_proto [01:19:23]query_string will be loaded in cgi processing [01:19:23]execute_cgi json_proto POST (null) [01:19:23]execute_cgi path=json_proto method=POST [01:19:23]POST find Content-Length [01:19:23]Host: 172.17.57.71:8080 [01:19:23]Content-Length: 275 [01:19:23]Content-Type: application/json [01:19:23] [01:19:23]POST finish read [01:19:23]Found Content-Length = 275 [01:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:23]execute_script... [01:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:23]POST & json_proto [01:19:23]process_json_proto [01:19:23]json parsed OK: [01:19:23]protocol is kg_v1.0 [01:19:23]action value=x_report [01:19:23]process_action x_report [01:19:23]cmd_x_report [01:19:23]MH_GetDate [01:19:23]Write to MH i2c: F0 00 00 AC 00 9B [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: F0 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: F0 09 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: F0 09 00 AC 00 00 9C E4 E4 66 33 3A A4 66 E5 [01:19:23]GetLastDocTimeStamp 1726276141 [01:19:23]current date 1726276764 [01:19:23]FM_GetShiftState [01:19:23]SAM_PROTO_GetShiftState [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 13 01 00 [01:19:23]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 0E 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C4 [01:19:24]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:19:24]wFMCommunicate OK [01:19:24]SAM_PROTO_GetShiftState done [01:19:24]FM_GetShiftState done [01:19:24]KKMCreateXReportDocument [01:19:24]Load OK [01:19:24]Malloc new data [01:19:24]MH_GetDate [01:19:24]Write to MH i2c: F0 00 00 AE 00 9D [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: F0 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: F0 09 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: F0 09 00 AE 00 00 9C E4 E4 66 33 3A A4 66 E7 [01:19:24]Malloc new data [01:19:24]Malloc new data [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 11 00 00 [01:19:24]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 17 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 80 [01:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:19:24]wFMCommunicate OK [01:19:24]SAM_PROTO_GetFieldsCounters [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 13 00 00 [01:19:24]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 62 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [01:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:24]wFMCommunicate OK [01:19:24]SAM_PROTO_GetFieldsCounters done [01:19:24]Malloc new data [01:19:24]Malloc new data [01:19:24]Malloc new data [01:19:24]KKMCreateXReportDocument OK [01:19:24]KKMSetXReportData OK [01:19:24]KKMPrepareXReportFMData [01:19:24]SAM_PROTO_GetShiftData [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 13 02 00 [01:19:24]Write to MH i2c: E2 08 00 B1 00 80 13 02 00 00 00 00 00 2F [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 B1 00 00 AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 50 [01:19:24]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 02 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 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 91 03 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 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 21 70 04 02 00 98 21 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 90 00 [01:19:24]wFMCommunicate OK [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 17 00 00 [01:19:24]Write to MH i2c: E2 08 00 B2 00 80 17 00 00 00 00 00 00 32 [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:25]Read from MH i2c: E2 [01:19:25]MH_I2C_Read... [01:19:25]OFD Sender: No OFD packet to send [01:19:25]Read from MH i2c: E2 FD 00 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 FD 00 B2 00 00 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 9E [01:19:25]RAPDU: 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [01:19:25]wFMCommunicate OK [01:19:25]wFMCommunicate request_size=4 [01:19:25]MH_SAM_APDU [01:19:25]CAPDU: 80 17 00 00 [01:19:25]Write to MH i2c: E2 08 00 B3 00 80 17 00 00 00 00 00 00 33 [01:19:25]Write i2c OK [01:19:25]MH_I2C_Read... [01:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:25]Read from MH i2c: E2 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 FD 00 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 FD 00 B3 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 EA [01:19:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [01:19:25]wFMCommunicate OK [01:19:25]wFMCommunicate request_size=4 [01:19:25]MH_SAM_APDU [01:19:25]CAPDU: 80 17 00 00 [01:19:25]Write to MH i2c: E2 08 00 B4 00 80 17 00 00 00 00 00 00 34 [01:19:25]Write i2c OK [01:19:25]MH_I2C_Read... [01:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:26]Read from MH i2c: E2 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 B4 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A6 [01:19:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [01:19:26]wFMCommunicate OK [01:19:26]wFMCommunicate request_size=4 [01:19:26]MH_SAM_APDU [01:19:26]CAPDU: 80 17 00 00 [01:19:26]Write to MH i2c: E2 08 00 B5 00 80 17 00 00 00 00 00 00 35 [01:19:26]Write i2c OK [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 [01:19:26]MH_I2C_Read... [01:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [01:19:26]Read from MH i2c: E2 CB 00 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 CB 00 B5 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [01:19:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:26]wFMCommunicate OK [01:19:26]SAM_PROTO_GetShiftData done [01:19:26]1194 (1194) - счетчики итогов смены [01:19:26] 1134 (4) - 2 - количество чеков со всеми признаками расчетов [01:19:26] 1129 (148) - счетчики операций «приход» [01:19:26] 1135 (4) - 1 - количество чеков по признаку расчетов [01:19:26] 1201 (2) - 86.00 - общая итоговая сумма в чеках [01:19:26] 1136 (2) - 86.00 - итоговая сумма в чеках наличными [01:19:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:26] 1024 (120) - суммы налогов [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 0% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1006 (11) - суммы НДС [01:19:26] 1010 (1) - 12% - код ставки НДС [01:19:26] 1011 (2) - 9.13 - сумма НДС по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (10) - суммы НСП [01:19:26] 1014 (1) - 1% - код ставки НСП [01:19:26] 1015 (1) - 0.76 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 2% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 3% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 5% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1130 (148) - счетчики операций «возврат прихода» [01:19:26] 1135 (4) - 1 - количество чеков по признаку расчетов [01:19:26] 1201 (2) - 86.00 - общая итоговая сумма в чеках [01:19:26] 1136 (2) - 86.00 - итоговая сумма в чеках наличными [01:19:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:26] 1024 (120) - суммы налогов [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 0% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1006 (11) - суммы НДС [01:19:26] 1010 (1) - 12% - код ставки НДС [01:19:26] 1011 (2) - 9.13 - сумма НДС по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (10) - суммы НСП [01:19:26] 1014 (1) - 1% - код ставки НСП [01:19:26] 1015 (1) - 0.76 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 2% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 3% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 5% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1131 (141) - счетчики операций «расход» [01:19:26] 1135 (4) - 0 - количество чеков по признаку расчетов [01:19:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:19:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:19:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:26] 1024 (117) - суммы налогов [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 0% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 12% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 2% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 3% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 5% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1132 (141) - счетчики операций «возврат расхода» [01:19:26] 1135 (4) - 0 - количество чеков по признаку расчетов [01:19:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:19:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:19:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:26] 1024 (117) - суммы налогов [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 0% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1006 (9) - суммы НДС [01:19:26] 1010 (1) - 12% - код ставки НДС [01:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 2% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 3% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 5% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 0,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1007 (9) - суммы НСП [01:19:26] 1014 (1) - 1,50% - код ставки НСП [01:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:26] 1133 (588) - - счетчики коррекции - не используются [01:19:26]SetTLVBufToDocument [01:19:26]Processing tag 1194 (04AA) [01:19:26]Load OK [01:19:26]SetTLVBufToDocument [01:19:26]Processing tag 1134 (046E) [01:19:26]Malloc new data [01:19:27]Processing tag 1129 (0469) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1135 (046F) [01:19:27]Malloc new data [01:19:27]Processing tag 1201 (04B1) [01:19:27]Malloc new data [01:19:27]Processing tag 1136 (0470) [01:19:27]Malloc new data [01:19:27]Processing tag 1138 (0472) [01:19:27]Malloc new data [01:19:27]Processing tag 1024 (0400) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1130 (046A) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1135 (046F) [01:19:27]Malloc new data [01:19:27]Processing tag 1201 (04B1) [01:19:27]Malloc new data [01:19:27]Processing tag 1136 (0470) [01:19:27]Malloc new data [01:19:27]Processing tag 1138 (0472) [01:19:27]Malloc new data [01:19:27]Processing tag 1024 (0400) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1131 (046B) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1135 (046F) [01:19:27]Malloc new data [01:19:27]Processing tag 1201 (04B1) [01:19:27]Malloc new data [01:19:27]Processing tag 1136 (0470) [01:19:27]Malloc new data [01:19:27]Processing tag 1138 (0472) [01:19:27]Malloc new data [01:19:27]Processing tag 1024 (0400) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1132 (046C) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1135 (046F) [01:19:27]Malloc new data [01:19:27]Processing tag 1201 (04B1) [01:19:27]Malloc new data [01:19:27]Processing tag 1136 (0470) [01:19:27]Malloc new data [01:19:27]Processing tag 1138 (0472) [01:19:27]Malloc new data [01:19:27]Processing tag 1024 (0400) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1006 (03EE) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1010 (03F2) [01:19:27]Malloc new data [01:19:27]Processing tag 1011 (03F3) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1007 (03EF) [01:19:27]Load OK [01:19:27]SetTLVBufToDocument [01:19:27]Processing tag 1014 (03F6) [01:19:27]Malloc new data [01:19:27]Processing tag 1015 (03F7) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Processing tag 1133 (046D) [01:19:27]Malloc new data [01:19:27]SetTLVBufToDocument err=0 [01:19:27]SetTLVBufToDocument err=0 [01:19:27]Malloc new data [01:19:27]SAM_PROTO_GetFMData [01:19:27]wFMCommunicate request_size=4 [01:19:27]MH_SAM_APDU [01:19:27]CAPDU: 80 13 03 00 [01:19:27]Write to MH i2c: E2 08 00 B6 00 80 13 03 00 00 00 00 00 35 [01:19:27]Write i2c OK [01:19:27]MH_I2C_Read... [01:19:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:28]Read from MH i2c: E2 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 B6 00 00 C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 18 [01:19:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 [01:19:28]wFMCommunicate OK [01:19:28]wFMCommunicate request_size=4 [01:19:28]MH_SAM_APDU [01:19:28]CAPDU: 80 17 00 00 [01:19:28]Write to MH i2c: E2 08 00 B7 00 80 17 00 00 00 00 00 00 37 [01:19:28]Write i2c OK [01:19:28]MH_I2C_Read... [01:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:28]Read from MH i2c: E2 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 B7 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 69 1C 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 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 7C [01:19:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 69 1C 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 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 [01:19:28]wFMCommunicate OK [01:19:28]wFMCommunicate request_size=4 [01:19:28]MH_SAM_APDU [01:19:28]CAPDU: 80 17 00 00 [01:19:28]Write to MH i2c: E2 08 00 B8 00 80 17 00 00 00 00 00 00 38 [01:19:28]Write i2c OK [01:19:28]MH_I2C_Read... [01:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:29]Read from MH i2c: E2 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 B8 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 4A [01:19:29]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 [01:19:29]wFMCommunicate OK [01:19:29]wFMCommunicate request_size=4 [01:19:29]MH_SAM_APDU [01:19:29]CAPDU: 80 17 00 00 [01:19:29]Write to MH i2c: E2 08 00 B9 00 80 17 00 00 00 00 00 00 39 [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:29]Read from MH i2c: E2 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 B9 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 C5 [01:19:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [01:19:29]wFMCommunicate OK [01:19:29]wFMCommunicate request_size=4 [01:19:29]MH_SAM_APDU [01:19:29]CAPDU: 80 17 00 00 [01:19:29]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:30]Read from MH i2c: E2 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 E2 00 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 E2 00 BA 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [01:19:30]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 [01:19:30]wFMCommunicate OK [01:19:30]SAM_PROTO_GetFMData done [01:19:30]FM_GetFMData:85 04 C1 04 6E 04 04 00 CB 64 01 00 69 04 A1 00 6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 OFD Sender: No OFD packet to send [01:19:30]F7 03 04 00 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 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 69 1C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:19:30]oper:6F 04 04 00 7C 61 01 00 B1 04 04 00 F5 11 7C B2 70 04 04 00 A0 CC 1E 83 72 04 04 00 55 45 5D 2F 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 BE 95 F4 12 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 62 3B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:19:31]total:F5 11 7C B2 [01:19:31]Malloc new data [01:19:31]oper:6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 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 69 1C 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 [01:19:31]total:D4 83 76 04 [01:19:31]Malloc new data [01:19:31]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 [01:19:31]total: [01:19:31]Malloc new data [01:19:31]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 [01:19:31]total: [01:19:31]Malloc new data [01:19:31]KKMPrepareXReportFMData err=0 [01:19:31]Х отчет ИНН: 02508201610067 Кассир: Молдокулова А. 14.09.2024 01:19 Смена: 266 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Всего чеков: 2 ИТОГИ ПРИХОД Чеков: 1 Общий итог: 86.00 Итого наличными: 86.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 9.13 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.76 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 86.00 Итого наличными: 86.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 9.13 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.76 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 0.00 НС Приход: 29944755.09 НС Возвр.Прихода: 748758.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874692 [01:19:31]StoreToDocumentArchive [01:19:31]MH_GetDate [01:19:31]Write to MH i2c: F0 00 00 BB 00 AA [01:19:31]Write i2c OK [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: F0 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: F0 09 00 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: F0 09 00 BB 00 00 A3 E4 E4 66 33 3A A4 66 FB [01:19:31]shift 266 fd 1726276771 [01:19:31]Create dir for shift 0266 [01:19:31]save to /storage/0266/doc_1726276771 [01:19:31]save last doc name /storage/0266/doc_1726276771 to /storage/kkm_last_doc_name [01:19:31]save OK [01:19:31]Clear old archive folders... [01:19:31]NVStorageSaveData kkm_last_timestamp [01:19:31]File name is /storage/kkm_last_timestamp [01:19:31]Write 4 bytes [01:19:31]NVStorageSaveData done [01:19:31]ExternCall_PrintAddStr [01:19:31]wPrintStart [01:19:31]Write to MH i2c: 01 00 00 BC 00 BC [01:19:31]Write i2c OK [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: 01 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: 01 07 00 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: 01 07 00 BC 00 00 00 00 00 00 FF 0F D1 [01:19:31]RasterBufferAndPrint [01:19:31]line Х отчет [01:19:31]line ИНН: 02508201610067 [01:19:31]line Кассир: Молдокулова А. [01:19:31]line 14.09.2024 01:19 [01:19:31]line Смена: 266 [01:19:31]line РНМ: 0000000000091423 [01:19:31]line ЗНМ: 03000000022 [01:19:31]line СНО: Общий режим [01:19:31]line Всего чеков: 2 [01:19:31]line ИТОГИ ПРИХОД [01:19:31]line Чеков: 1 [01:19:31]line Общий итог: 86.00 [01:19:31]line Итого наличными: 86.00 [01:19:31]line Итого безнал.: 0.00 [01:19:31]line НДС 0% : 0.00 [01:19:31]line НДС 12% : 9.13 [01:19:31]line НСП 0% : 0.00 [01:19:31]line НСП 1,50% : 0.00 [01:19:31]line НСП 0,50% : 0.00 [01:19:31]line НСП 5% : 0.00 [01:19:31]line НСП 3% : 0.00 [01:19:31]line НСП 2% : 0.00 [01:19:31]line НСП 1% : 0.76 [01:19:31]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:19:31]line Чеков: 1 [01:19:31]line Общий итог: 86.00 [01:19:31]line Итого наличными: 86.00 [01:19:31]line Итого безнал.: 0.00 [01:19:31]line НДС 0% : 0.00 [01:19:31]line НДС 12% : 9.13 [01:19:31]line НСП 0% : 0.00 [01:19:31]line НСП 1,50% : 0.00 [01:19:31]line НСП 0,50% : 0.00 [01:19:31]line НСП 5% : 0.00 [01:19:31]line НСП 3% : 0.00 [01:19:31]line НСП 2% : 0.00 [01:19:31]line НСП 1% : 0.76 [01:19:31]line ИТОГИ РАСХОД [01:19:31]line Чеков: 0 [01:19:31]line Общий итог: 0.00 [01:19:31]line Итого наличными: 0.00 [01:19:31]line Итого безнал.: 0.00 [01:19:31]line НДС 0% : 0.00 [01:19:31]line НДС 12% : 0.00 [01:19:31]line НСП 0% : 0.00 [01:19:31]line НСП 1,50% : 0.00 [01:19:31]line НСП 0,50% : 0.00 [01:19:31]line НСП 5% : 0.00 [01:19:31]line НСП 3% : 0.00 [01:19:31]line НСП 2% : 0.00 [01:19:31]line НСП 1% : 0.00 [01:19:31]line ИТОГИ ВОЗВРАТ РАСХОДА [01:19:31]line Чеков: 0 [01:19:31]line Общий итог: 0.00 [01:19:31]line Итого наличными: 0.00 [01:19:31]line Итого безнал.: 0.00 [01:19:31]line НДС 0% : 0.00 [01:19:31]line НДС 12% : 0.00 [01:19:31]line НСП 0% : 0.00 [01:19:31]line НСП 1,50% : 0.00 [01:19:31]line НСП 0,50% : 0.00 [01:19:31]line НСП 5% : 0.00 [01:19:31]line НСП 3% : 0.00 [01:19:31]line НСП 2% : 0.00 [01:19:31]line НСП 1% : 0.00 [01:19:31]line Сумма внесений: 0.00 [01:19:31]line Сумма выплат: 0.00 [01:19:31]line Нал. в кассе: 0.00 [01:19:31]line НС Приход: 29944755.09 [01:19:31]line НС Возвр.Прихода: 748758.60 [01:19:31]line НС Расход: 0.00 [01:19:31]line НС Возвр.Расхода: 0.00 [01:19:31]line ФМ: 0000000000874692 [01:19:31]written 0, free lines is 4095 [01:19:32]Write to MH i2c: 01 00 00 07 01 08 [01:19:32]Write i2c OK [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 07 00 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 F9 0A 12 [01:19:32]RasterBufferAndPrint [01:19:32]line [01:19:32]line [01:19:32]line [01:19:32]line [01:19:32]line [01:19:32]written 0, free lines is 2844 [01:19:32]MH_Cut [01:19:32]Write to MH i2c: D1 01 00 0E 01 01 E1 [01:19:32]Write i2c OK [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: D1 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: D1 01 00 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: D1 01 00 0E 01 00 E0 [01:19:32]Write to MH i2c: 01 00 00 0F 01 10 [01:19:32]Write i2c OK [01:19:32]MH_I2C_Read... [01:19:33]*** Cut start [01:19:33]*** Purtial cut [01:19:33]*** Stage 1: CUTSNS_PIN = 1 [01:19:35]Read from MH i2c: 01 [01:19:35]MH_I2C_Read... [01:19:35]*** Stop cut motor [01:19:35]*** Cut end [01:19:35]Read from MH i2c: 01 07 00 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [01:19:35]process_action x_report done [01:19:35]requested_data is exist [01:19:35]produce_requested_data [01:19:35]requested_item fd.num is exist - process it [01:19:35]SAM_PROTO_GetFieldsCounters [01:19:35]wFMCommunicate request_size=4 [01:19:35]MH_SAM_APDU [01:19:35]CAPDU: 80 13 00 00 [01:19:35]Write to MH i2c: E2 08 00 10 01 80 13 00 00 00 00 00 00 8D [01:19:35]Write i2c OK [01:19:35]MH_I2C_Read... [01:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:35]Read from MH i2c: E2 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 62 00 [01:19:35]MH_I2C_Read... [01:19:35]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [01:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 BF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:35]wFMCommunicate OK [01:19:35]SAM_PROTO_GetFieldsCounters done [01:19:35]requested_item shift.num is exist - process it [01:19:35]requested_item shift.opened is exist - process it [01:19:35]req_shift_opened [01:19:35]FM_GetShiftState [01:19:35]SAM_PROTO_GetShiftState [01:19:35]wFMCommunicate request_size=4 [01:19:35]MH_SAM_APDU [01:19:35]CAPDU: 80 13 01 00 [01:19:35]Write to MH i2c: E2 08 00 11 01 80 13 01 00 00 00 00 00 8F [01:19:35]Write i2c OK [01:19:35]MH_I2C_Read... [01:19:35]OFD Sender: No OFD packet to send [01:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:35]Read from MH i2c: E2 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 0E 00 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 0E 00 11 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 29 [01:19:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:19:35]wFMCommunicate OK [01:19:35]SAM_PROTO_GetShiftState done [01:19:35]FM_GetShiftState done [01:19:35]req_shift_opened done [01:19:35]requested_item shift.open_date is exist - process it [01:19:35]req_shift_open_date [01:19:35]req_shift_open_date done [01:19:35]produce_requested_data done [01:19:35]produce_requested_data return {"fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:19:35]process_action_free x_report [01:19:35]json_value_free [01:19:35]json_value_free done [01:19:35]process_json_proto returns [01:19:35]Send response to host [01:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92351,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:19:35]free response buf [01:19:35]execute_script done [01:19:35]execute_script returns [01:19:35]free content buf [01:19:35]Sock 8.Close socket [01:19:35]Sock 8.Thread stoped [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:30]accept exits with 9 [01:42:30]New connection [01:42:30]New thread 3066658148 created [01:42:30]Thread 3066801508 joined [01:42:30]Waiting for new connection... [01:42:30] Sock 9.Parse request [01:42:30]Sock 9.Check first char [01:42:30]Sock 9.First char is OK [01:42:30]request: POST /json_proto HTTP/1.0 [01:42:30]Method: POST [01:42:30]URL: /json_proto [01:42:30]Method is POST - this is cgi request [01:42:30]url: /json_proto [01:42:30]query_string will be loaded in cgi processing [01:42:30]execute_cgi json_proto POST (null) [01:42:30]execute_cgi path=json_proto method=POST [01:42:30]POST find Content-Length [01:42:30]Host: 172.17.57.71:8080 [01:42:30]Content-Length: 632 [01:42:30]Content-Type: application/json [01:42:30] [01:42:30]POST finish read [01:42:30]Found Content-Length = 632 [01:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127277", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:30]execute_script... [01:42: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 : (3)127277", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:30]POST & json_proto [01:42:30]process_json_proto [01:42:30]json parsed OK: [01:42:30]protocol is kg_v1.0 [01:42:30]action value=close_receipt [01:42:30]process_action close_receipt [01:42:30]cmd_close_receipt [01:42:30]MH_GetDate [01:42:30]Write to MH i2c: F0 00 00 12 01 02 [01:42:30]Write i2c OK [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: F0 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: F0 09 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: F0 09 00 12 01 00 07 EA E4 66 33 3A A4 66 BD [01:42:30]GetLastDocTimeStamp 1726276764 [01:42:30]current date 1726278151 [01:42:30]FM_GetShiftState [01:42:30]SAM_PROTO_GetShiftState [01:42:30]wFMCommunicate request_size=4 [01:42:30]MH_SAM_APDU [01:42:30]CAPDU: 80 13 01 00 [01:42:30]Write to MH i2c: E2 08 00 13 01 80 13 01 00 00 00 00 00 91 [01:42:30]Write i2c OK [01:42:30]MH_I2C_Read... [01:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:30]Read from MH i2c: E2 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 0E 00 [01:42:30]MH_I2C_Read... [01:42:30]Read from MH i2c: E2 0E 00 13 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2B [01:42:30]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:42:30]wFMCommunicate OK [01:42:30]SAM_PROTO_GetShiftState done [01:42:30]FM_GetShiftState done [01:42:30]opened in 1726273389 [01:42:30]opened+sec_in_day 1726359789 [01:42:30]quantity*price = 4000 [01:42:30]sum+1 = 4001 [01:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 3 14.09.2024 01:42 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92352 ФПД: 39327578816758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T014231&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92352&fm=39327578816758&tin=02508201610067®Number=0000000000091423&sum=4000 0 [01:42:31]StoreToDocumentArchive [01:42:31]shift 506 fd 92352 [01:42:31]save to /storage/0506/doc_00092352 [01:42:31]save last doc name /storage/0506/doc_00092352 to /storage/kkm_last_doc_name [01:42:31]save OK [01:42:31]Clear old archive folders... [01:42:31]Remove dir /storage/0266 [01:42:31]opendir ok [01:42:31]file . [01:42:31]file .. [01:42:31]file doc_1726276771 [01:42:31]remove file /storage/0266/doc_1726276771 [01:42:31]remove dir /storage/0266 [01:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=271 [01:42:31]tlvbuf is 00F8C750 [01:42:31]SAM_PROTO_ClearQueue [01:42:31]wFMCommunicate request_size=4 [01:42:31]MH_SAM_APDU [01:42:31]CAPDU: 80 09 00 00 [01:42:31]Write to MH i2c: E2 08 00 20 01 80 09 00 00 00 00 00 00 93 [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:31]Read from MH i2c: E2 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: E2 03 00 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [01:42:31]RAPDU: 90 00 [01:42:31]wFMCommunicate OK [01:42:31]SAM_PROTO_ClearQueue done [01:42:31]KKMCreateOFDPacket [01:42:31]OFDProtocolAddRootSTLVToBuf [01:42:31]FM_MakeSignedData [01:42:31]FM_MakeSignedData [01:42:31]SAM_PROTO_SignData [01:42:31]wFMCommunicate request_size=4 [01:42:31]MH_SAM_APDU [01:42:31]CAPDU: 80 0D 01 02 [01:42:31]Write to MH i2c: E2 08 00 21 01 80 0D 01 02 00 00 00 00 9B [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:31]Read from MH i2c: E2 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: E2 03 00 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [01:42:31]RAPDU: 90 00 [01:42:31]wFMCommunicate OK [01:42:31]wFMCommunicate request_size=255 [01:42:31]MH_SAM_APDU [01:42:31]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 07 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [01:42:31]Write to MH i2c: E2 02 01 22 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 07 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B3 [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:31]OFD Sender: No OFD packet to send [01:42:31]Read from MH i2c: E2 [01:42:31]MH_I2C_Read... [01:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:31]Read from MH i2c: E2 03 00 [01:42:31]MH_I2C_Read... [01:42:31]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [01:42:31]RAPDU: 90 00 [01:42:31]wFMCommunicate OK [01:42:31]wFMCommunicate request_size=30 [01:42:31]MH_SAM_APDU [01:42:31]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 C0 68 01 00 35 04 06 00 23 C4 AA 5D 80 F6 [01:42:31]Write to MH i2c: E2 21 00 23 01 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 C0 68 01 00 35 04 06 00 23 C4 AA 5D 80 F6 00 00 28 [01:42:31]Write i2c OK [01:42:31]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 03 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [01:42:32]RAPDU: 90 00 [01:42:32]wFMCommunicate OK [01:42:32]wFMCommunicate request_size=4 [01:42:32]MH_SAM_APDU [01:42:32]CAPDU: 80 0D 03 02 [01:42:32]Write to MH i2c: E2 08 00 24 01 80 0D 03 02 00 00 00 00 A0 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 0B 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 0B 00 24 01 00 19 56 FF 93 27 29 27 4D 90 00 66 [01:42:32]RAPDU: 19 56 FF 93 27 29 27 4D 90 00 [01:42:32]wFMCommunicate OK [01:42:32]SAM_PROTO_SignData done [01:42:32]FM_MakeSignedData done [01:42:32]CreateOFDProtocolMessage [01:42:32]wFMCommunicate request_size=4 [01:42:32]MH_SAM_APDU [01:42:32]CAPDU: 80 11 00 00 [01:42:32]Write to MH i2c: E2 08 00 25 01 80 11 00 00 00 00 00 00 A0 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 17 00 [01:42:32]MH_I2C_Read... [01:42:32]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 34 36 39 32 90 00 F7 [01:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:42:32]wFMCommunicate OK [01:42:32]CreateOFDProtocolMessage done [01:42:32]OFDSenderStorePacket 92352 [01:42:32]StoreOFDPacket docnum=92352 [01:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 5D 5A 1B 01 47 BB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 07 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 68 01 00 35 04 06 00 23 C4 AA 5D 80 F6 19 56 FF 93 27 29 27 4D [01:42:32]CheckFolder [01:42:32]dirname=/storage/ofd_packets [01:42:32]CheckFolder done [01:42:32]ProducePacketName [01:42:32]name=ofd_packets/00092352 [01:42:32]NVStorageSaveData ofd_packets/00092352 [01:42:32]File name is /storage/ofd_packets/00092352 [01:42:32]Write 321 bytes [01:42:32]NVStorageSaveData done [01:42:32]OFDSenderStorePacket done [01:42:32]KKMCreateOFDPacket done [01:42:32]NVStorageSaveData kkm_last_timestamp [01:42:32]File name is /storage/kkm_last_timestamp [01:42:32]Write 4 bytes [01:42:32]NVStorageSaveData done [01:42:32]ExternCall_PrintAddStr [01:42:32]wPrintStart [01:42:32]Write to MH i2c: 01 00 00 26 01 27 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 07 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [01:42:32]RasterBufferAndPrint [01:42:32]line Счет N : (3)127277 [01:42:32]line ИНН: 02508201610067 [01:42:32]line Контрольно-Кассовый Чек [01:42:32]line ПРОДАЖА [01:42:32]line Товар: 4700000160211 [01:42:32]line Вода Легенда 0,5л [01:42:32]line 1.000 * 40.00 [01:42:32]line = 40.00 [01:42:32]line НДС 12% НСП 1% [01:42:32]line > о реализуемом товаре [01:42:32]line ИТОГО: 40.00 [01:42:32]line НСП 1% : 0.35 [01:42:32]line НДС 12% : 4.25 [01:42:32]line Наличными: 40.00 [01:42:32]line Безнал.: 0.00 [01:42:32]line Место: АЗС № 5 "Партнер Нефть" [01:42:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:42:32]line СНО: Общий режим [01:42:32]line Чек 3 14.09.2024 01:42 [01:42:32]line Смена: 506 ФФД: 1.0 [01:42:32]line ЗНМ: 03000000022 [01:42:32]line РНМ: 0000000000091423 [01:42:32]line Версия ККМ: 001 [01:42:32]line ФМ: 0000000000874692 [01:42:32]line ФД: 92352 [01:42:32]line ФПД: 39327578816758 [01:42:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T014231&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92352&fm=39327578816758&tin=02508201610067®Number=0000000000091423&sum=4000 [01:42:32]line 0 [01:42:32]OFD Sender: Processing packet 92352 [packets to send 63, broken 62] [01:42:32]ProducePacketName [01:42:32]name=ofd_packets/00092352 [01:42:32]OFD Sender: To server: pG, [01:42:32]CommunicateWithHost lk.salyk.kg:30040 [01:42:32]ConnectInit lk.salyk.kg [01:42:32]written 0, free lines is 4095 [01:42:32]Connected sock=10 [01:42:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 5D 5A 1B 01 47 BB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 07 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 68 01 00 35 04 06 00 23 C4 AA 5D 80 F6 19 56 FF 93 27 29 27 4D [01:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 38 70 47 00 45 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C0 68 01 00 F4 03 04 00 83 92 E4 66 B6 04 01 00 00 20 40 E3 7B FC BB 81 B1 [01:42:32]CommunicateWithHost err = 0 [01:42:32]CheckOFDResponse [01:42:32]1017 (14) - 77093643461234 [01:42:32]1041 (16) - 0000000000874692 [01:42:32]1040 (4) - 92352 [01:42:32]1012 (4) - 13.09.2024 19:29 [01:42:32]1206 (1) - 0 [01:42:32]OFD Sender: Remove packet 92352 [01:42:32]ProducePacketName [01:42:32]name=ofd_packets/00092352 [01:42:32]NVStorageDeleteData [01:42:32]Write to MH i2c: 01 00 00 4E 01 4F [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 07 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 18 0D 7B [01:42:32]RasterBufferAndPrint [01:42:32]line [01:42:32]line [01:42:32]line [01:42:32]line [01:42:32]line [01:42:32]written 0, free lines is 3360 [01:42:32]MH_Cut [01:42:32]Write to MH i2c: D1 01 00 55 01 01 28 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: D1 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: D1 01 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: D1 01 00 55 01 00 27 [01:42:32]Write to MH i2c: 01 00 00 56 01 57 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:33]OFD Sender: No OFD packet to send [01:42:33]*** Cut start [01:42:33]*** Purtial cut [01:42:33]*** Stage 1: CUTSNS_PIN = 1 [01:42:35]Read from MH i2c: 01 [01:42:35]MH_I2C_Read... [01:42:35]*** Stop cut motor [01:42:35]*** Cut end [01:42:35]Read from MH i2c: 01 07 00 [01:42:35]MH_I2C_Read... [01:42:35]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [01:42:35]process_action close_receipt done [01:42:35]requested_data is exist [01:42:35]produce_requested_data [01:42:35]requested_item fm.sn is exist - process it [01:42:35]wFMCommunicate request_size=4 [01:42:35]MH_SAM_APDU [01:42:35]CAPDU: 80 11 00 00 [01:42:35]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [01:42:35]Write i2c OK [01:42:35]MH_I2C_Read... [01:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:35]Read from MH i2c: E2 [01:42:35]MH_I2C_Read... [01:42:35]Read from MH i2c: E2 17 00 [01:42:35]MH_I2C_Read... [01:42:35]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 34 36 39 32 90 00 29 [01:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:42:35]wFMCommunicate OK [01:42:35]requested_item fd.num is exist - process it [01:42:35]SAM_PROTO_GetFieldsCounters [01:42:35]wFMCommunicate request_size=4 [01:42:35]MH_SAM_APDU [01:42:35]CAPDU: 80 13 00 00 [01:42:35]Write to MH i2c: E2 08 00 58 01 80 13 00 00 00 00 00 00 D5 [01:42:35]Write i2c OK [01:42:35]MH_I2C_Read... [01:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:35]Read from MH i2c: E2 [01:42:35]MH_I2C_Read... [01:42:35]Read from MH i2c: E2 62 00 [01:42:35]MH_I2C_Read... [01:42:35]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C0 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [01:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C0 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:35]wFMCommunicate OK [01:42:35]SAM_PROTO_GetFieldsCounters done [01:42:35]requested_item shift.num is exist - process it [01:42:35]requested_item shift.opened is exist - process it [01:42:35]req_shift_opened [01:42:35]FM_GetShiftState [01:42:35]SAM_PROTO_GetShiftState [01:42:35]wFMCommunicate request_size=4 [01:42:35]MH_SAM_APDU [01:42:35]CAPDU: 80 13 01 00 [01:42:35]Write to MH i2c: E2 08 00 59 01 80 13 01 00 00 00 00 00 D7 [01:42:35]Write i2c OK [01:42:35]MH_I2C_Read... [01:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:35]Read from MH i2c: E2 [01:42:35]MH_I2C_Read... [01:42:35]Read from MH i2c: E2 0E 00 [01:42:35]MH_I2C_Read... [01:42:35]Read from MH i2c: E2 0E 00 59 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 71 [01:42:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:42:35]wFMCommunicate OK [01:42:35]SAM_PROTO_GetShiftState done [01:42:35]FM_GetShiftState done [01:42:35]req_shift_opened done [01:42:35]requested_item shift.open_date is exist - process it [01:42:35]req_shift_open_date [01:42:35]req_shift_open_date done [01:42:35]produce_requested_data done [01:42:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92352,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:42:35]process_action_free close_receipt [01:42:35]json_value_free [01:42:35]json_value_free done [01:42:35]process_json_proto returns [01:42:35]Send response to host [01:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92352,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:42:35]free response buf [01:42:35]execute_script done [01:42:35]execute_script returns [01:42:35]free content buf [01:42:35]Sock 9.Close socket [01:42:35]Sock 9.Thread stoped [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]accept exits with 8 [01:46:08]New connection [01:46:08]New thread 3066801508 created [01:46:08]Thread 3066658148 joined [01:46:08]Waiting for new connection... [01:46:08] Sock 8.Parse request [01:46:08]Sock 8.Check first char [01:46:08]Sock 8.First char is OK [01:46:08]request: POST /json_proto HTTP/1.0 [01:46:08]Method: POST [01:46:08]URL: /json_proto [01:46:08]Method is POST - this is cgi request [01:46:08]url: /json_proto [01:46:08]query_string will be loaded in cgi processing [01:46:08]execute_cgi json_proto POST (null) [01:46:08]execute_cgi path=json_proto method=POST [01:46:08]POST find Content-Length [01:46:08]Host: 172.17.57.71:8080 [01:46:08]Content-Length: 616 [01:46:08]Content-Type: application/json [01:46:08] [01:46:08]POST finish read [01:46:08]Found Content-Length = 616 [01:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127278", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:08]execute_script... [01:46: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 : (3)127278", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:08]POST & json_proto [01:46:08]process_json_proto [01:46:08]json parsed OK: [01:46:08]protocol is kg_v1.0 [01:46:08]action value=close_receipt [01:46:08]process_action close_receipt [01:46:08]cmd_close_receipt [01:46:08]MH_GetDate [01:46:08]Write to MH i2c: F0 00 00 5A 01 4A [01:46:08]Write i2c OK [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 09 00 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 09 00 5A 01 00 E1 EA E4 66 33 3A A4 66 DF [01:46:08]GetLastDocTimeStamp 1726278151 [01:46:08]current date 1726278369 [01:46:08]FM_GetShiftState [01:46:08]SAM_PROTO_GetShiftState [01:46:08]wFMCommunicate request_size=4 [01:46:08]MH_SAM_APDU [01:46:08]CAPDU: 80 13 01 00 [01:46:08]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [01:46:08]Write i2c OK [01:46:08]MH_I2C_Read... [01:46:08]OFD Sender: No OFD packet to send [01:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:08]Read from MH i2c: E2 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: E2 0E 00 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 73 [01:46:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:46:08]wFMCommunicate OK [01:46:08]SAM_PROTO_GetShiftState done [01:46:08]FM_GetShiftState done [01:46:08]opened in 1726273389 [01:46:08]opened+sec_in_day 1726359789 [01:46:08]quantity*price = 15500 [01:46:08]sum+1 = 15501 [01:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 4 14.09.2024 01:46 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92353 ФПД: 116641764208032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T014609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92353&fm=116641764208032&tin=02508201610067®Number=0000000000091423&sum=15500 0 [01:46:09]StoreToDocumentArchive [01:46:09]shift 506 fd 92353 [01:46:09]save to /storage/0506/doc_00092353 [01:46:09]save last doc name /storage/0506/doc_00092353 to /storage/kkm_last_doc_name [01:46:09]save OK [01:46:09]Clear old archive folders... [01:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=268 [01:46:09]tlvbuf is 00FB8630 [01:46:09]SAM_PROTO_ClearQueue [01:46:09]wFMCommunicate request_size=4 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 09 00 00 [01:46:09]Write to MH i2c: E2 08 00 68 01 80 09 00 00 00 00 00 00 DB [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [01:46:09]RAPDU: 90 00 [01:46:09]wFMCommunicate OK [01:46:09]SAM_PROTO_ClearQueue done [01:46:09]KKMCreateOFDPacket [01:46:09]OFDProtocolAddRootSTLVToBuf [01:46:09]FM_MakeSignedData [01:46:09]FM_MakeSignedData [01:46:09]SAM_PROTO_SignData [01:46:09]wFMCommunicate request_size=4 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 0D 01 02 [01:46:09]Write to MH i2c: E2 08 00 69 01 80 0D 01 02 00 00 00 00 E3 [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [01:46:09]RAPDU: 90 00 [01:46:09]wFMCommunicate OK [01:46:09]wFMCommunicate request_size=255 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E1 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:46:09]Write to MH i2c: E2 02 01 6A 01 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E1 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 14 [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:10]Read from MH i2c: E2 03 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [01:46:10]RAPDU: 90 00 [01:46:10]wFMCommunicate OK [01:46:10]wFMCommunicate request_size=27 [01:46:10]MH_SAM_APDU [01:46:10]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 C1 68 01 00 35 04 06 00 6A 15 C6 EB ED A0 [01:46:10]Write to MH i2c: E2 1E 00 6B 01 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 C1 68 01 00 35 04 06 00 6A 15 C6 EB ED A0 00 00 25 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 03 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [01:46:10]RAPDU: 90 00 [01:46:10]wFMCommunicate OK [01:46:10]wFMCommunicate request_size=4 [01:46:10]MH_SAM_APDU [01:46:10]CAPDU: 80 0D 03 02 [01:46:10]Write to MH i2c: E2 08 00 6C 01 80 0D 03 02 00 00 00 00 E8 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 0B 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 0B 00 6C 01 00 F0 41 86 8E 21 1D E9 08 90 00 5D [01:46:10]RAPDU: F0 41 86 8E 21 1D E9 08 90 00 [01:46:10]wFMCommunicate OK [01:46:10]SAM_PROTO_SignData done [01:46:10]FM_MakeSignedData done [01:46:10]CreateOFDProtocolMessage [01:46:10]wFMCommunicate request_size=4 [01:46:10]MH_SAM_APDU [01:46:10]CAPDU: 80 11 00 00 [01:46:10]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 17 00 [01:46:10]MH_I2C_Read... [01:46: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 34 36 39 32 90 00 3F [01:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:46:10]wFMCommunicate OK [01:46:10]CreateOFDProtocolMessage done [01:46:10]OFDSenderStorePacket 92353 [01:46:10]StoreOFDPacket docnum=92353 [01:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 C1 F6 18 01 62 4E 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E1 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C1 68 01 00 35 04 06 00 6A 15 C6 EB ED A0 F0 41 86 8E 21 1D E9 08 [01:46:10]CheckFolder [01:46:10]dirname=/storage/ofd_packets [01:46:10]CheckFolder done [01:46:10]ProducePacketName [01:46:10]name=ofd_packets/00092353 [01:46:10]NVStorageSaveData ofd_packets/00092353 [01:46:10]File name is /storage/ofd_packets/00092353 [01:46:10]Write 318 bytes [01:46:10]NVStorageSaveData done [01:46:10]OFDSenderStorePacket done [01:46:10]KKMCreateOFDPacket done [01:46:10]NVStorageSaveData kkm_last_timestamp [01:46:10]File name is /storage/kkm_last_timestamp [01:46:10]Write 4 bytes [01:46:10]NVStorageSaveData done [01:46:10]ExternCall_PrintAddStr [01:46:10]wPrintStart [01:46:10]Write to MH i2c: 01 00 00 6E 01 6F [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [01:46:10]RasterBufferAndPrint [01:46:10]line Счет N : (3)127278 [01:46:10]line ИНН: 02508201610067 [01:46:10]line Контрольно-Кассовый Чек [01:46:10]line ПРОДАЖА [01:46:10]line Товар: 4640030091584 [01:46:10]line Сигареты Esse Gold [01:46:10]line 1.000 * 155.00 [01:46:10]line = 155.00 [01:46:10]line НДС 12% НСП 1% [01:46:10]line > о реализуемом товаре [01:46:10]line ИТОГО: 155.00 [01:46:10]line НСП 1% : 1.37 [01:46:10]line НДС 12% : 16.46 [01:46:10]line Наличными: 155.00 [01:46:10]line Безнал.: 0.00 [01:46:10]line Место: АЗС № 5 "Партнер Нефть" [01:46:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:46:10]line СНО: Общий режим [01:46:10]line Чек 4 14.09.2024 01:46 [01:46:10]line Смена: 506 ФФД: 1.0 [01:46:10]line ЗНМ: 03000000022 [01:46:10]line РНМ: 0000000000091423 [01:46:10]line Версия ККМ: 001 [01:46:10]line ФМ: 0000000000874692 [01:46:10]line ФД: 92353 [01:46:10]line ФПД: 116641764208032 [01:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T014609&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92353&fm=116641764208032&tin=02508201610067®Number=0000000000091423&sum=15500 [01:46:10]OFD Sender: Processing packet 92353 [packets to send 63, broken 62] [01:46:10]ProducePacketName [01:46:10]name=ofd_packets/00092353 [01:46:10]OFD Sender: To server: pG, [01:46:10]CommunicateWithHost lk.salyk.kg:30040 [01:46:10]ConnectInit lk.salyk.kg [01:46:10]line 0 [01:46:10]written 0, free lines is 4095 [01:46:10]Write to MH i2c: 01 00 00 96 01 97 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 20 0D CB [01:46:10]RasterBufferAndPrint [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]written 0, free lines is 3364 [01:46:10]MH_Cut [01:46:10]Write to MH i2c: D1 01 00 9D 01 01 70 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 01 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 01 00 9D 01 00 6F [01:46:10]Write to MH i2c: 01 00 00 9E 01 9F [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:11]*** Cut start [01:46:11]*** Purtial cut [01:46:11]*** Stage 1: CUTSNS_PIN = 1 [01:46:13]Read from MH i2c: 01 [01:46:13]MH_I2C_Read... [01:46:13]*** Stop cut motor [01:46:13]*** Cut end [01:46:13]Read from MH i2c: 01 07 00 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [01:46:13]process_action close_receipt done [01:46:13]requested_data is exist [01:46:13]produce_requested_data [01:46:13]requested_item fm.sn is exist - process it [01:46:13]wFMCommunicate request_size=4 [01:46:13]MH_SAM_APDU [01:46:13]CAPDU: 80 11 00 00 [01:46:13]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [01:46:13]Write i2c OK [01:46:13]MH_I2C_Read... [01:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:13]Read from MH i2c: E2 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 17 00 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [01:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:46:13]wFMCommunicate OK [01:46:13]requested_item fd.num is exist - process it [01:46:13]SAM_PROTO_GetFieldsCounters [01:46:13]wFMCommunicate request_size=4 [01:46:13]MH_SAM_APDU [01:46:13]CAPDU: 80 13 00 00 [01:46:13]Write to MH i2c: E2 08 00 A0 01 80 13 00 00 00 00 00 00 1D [01:46:13]Write i2c OK [01:46:13]MH_I2C_Read... [01:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:13]Read from MH i2c: E2 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 62 00 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 62 00 A0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C1 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [01:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C1 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:13]wFMCommunicate OK [01:46:13]SAM_PROTO_GetFieldsCounters done [01:46:13]requested_item shift.num is exist - process it [01:46:13]requested_item shift.opened is exist - process it [01:46:13]req_shift_opened [01:46:13]FM_GetShiftState [01:46:13]SAM_PROTO_GetShiftState [01:46:13]wFMCommunicate request_size=4 [01:46:13]MH_SAM_APDU [01:46:13]CAPDU: 80 13 01 00 [01:46:13]Write to MH i2c: E2 08 00 A1 01 80 13 01 00 00 00 00 00 1F [01:46:13]Write i2c OK [01:46:13]MH_I2C_Read... [01:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:13]Read from MH i2c: E2 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 0E 00 [01:46:13]MH_I2C_Read... [01:46:13]Read from MH i2c: E2 0E 00 A1 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B9 [01:46:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [01:46:13]wFMCommunicate OK [01:46:13]SAM_PROTO_GetShiftState done [01:46:13]FM_GetShiftState done [01:46:13]req_shift_opened done [01:46:13]requested_item shift.open_date is exist - process it [01:46:13]req_shift_open_date [01:46:13]req_shift_open_date done [01:46:13]produce_requested_data done [01:46:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92353,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [01:46:13]process_action_free close_receipt [01:46:13]json_value_free [01:46:13]json_value_free done [01:46:13]process_json_proto returns [01:46:13]Send response to host [01:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92353,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [01:46:13]free response buf [01:46:13]execute_script done [01:46:13]execute_script returns [01:46:13]free content buf [01:46:13]Sock 8.Close socket [01:46:13]Sock 8.Thread stoped [01:48:21]ConnectInit Can't connect to host [01:48:21]CommunicateWithHost connect error [01:48:21]CommunicateWithHost err = -1 [01:48:21]OFD Sender: Server communicate error [01:48:26]OFD Sender: Processing packet 92353 [packets to send 63, broken 62] [01:48:26]ProducePacketName [01:48:26]name=ofd_packets/00092353 [01:48:26]OFD Sender: To server: pG, [01:48:26]CommunicateWithHost lk.salyk.kg:30040 [01:48:26]ConnectInit lk.salyk.kg [01:48:26]Connected sock=8 [01: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 34 36 39 32 20 01 00 00 C1 F6 18 01 62 4E 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E1 EA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C1 68 01 00 35 04 06 00 6A 15 C6 EB ED A0 F0 41 86 8E 21 1D E9 08 [01:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0F CC 47 00 67 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 34 36 39 32 10 04 04 00 C1 68 01 00 F4 03 04 00 E5 93 E4 66 B6 04 01 00 00 E2 F1 33 9D 52 27 D9 5A [01:48:26]CommunicateWithHost err = 0 [01:48:26]CheckOFDResponse [01:48:26]1017 (14) - 77093643461234 [01:48:26]1041 (16) - 0000000000874692 [01:48:26]1040 (4) - 92353 [01:48:26]1012 (4) - 13.09.2024 19:35 [01:48:26]1206 (1) - 0 [01:48:26]OFD Sender: Remove packet 92353 [01:48:26]ProducePacketName [01:48:26]name=ofd_packets/00092353 [01:48:26]NVStorageDeleteData [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49: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:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06: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:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:28]accept exits with 9 [02:24:28]New connection [02:24:28]New thread 3066658148 created [02:24:28]Thread 3066801508 joined [02:24:28]Waiting for new connection... [02:24:28] Sock 9.Parse request [02:24:28]Sock 9.Check first char [02:24:28]Sock 9.First char is OK [02:24:28]request: POST /json_proto HTTP/1.0 [02:24:28]Method: POST [02:24:28]URL: /json_proto [02:24:28]Method is POST - this is cgi request [02:24:28]url: /json_proto [02:24:28]query_string will be loaded in cgi processing [02:24:28]execute_cgi json_proto POST (null) [02:24:28]execute_cgi path=json_proto method=POST [02:24:28]POST find Content-Length [02:24:28]Host: 172.17.57.71:8080 [02:24:28]Content-Length: 623 [02:24:28]Content-Type: application/json [02:24:28] [02:24:28]POST finish read [02:24:28]Found Content-Length = 623 [02:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127279", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:28]execute_script... [02:24: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 : (3)127279", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:28]POST & json_proto [02:24:28]process_json_proto [02:24:28]json parsed OK: [02:24:28]protocol is kg_v1.0 [02:24:28]action value=close_receipt [02:24:28]process_action close_receipt [02:24:28]cmd_close_receipt [02:24:28]MH_GetDate [02:24:28]Write to MH i2c: F0 00 00 A2 01 92 [02:24:28]Write i2c OK [02:24:28]MH_I2C_Read... [02:24:28]Read from MH i2c: F0 [02:24:28]MH_I2C_Read... [02:24:28]Read from MH i2c: F0 09 00 [02:24:28]MH_I2C_Read... [02:24:28]Read from MH i2c: F0 09 00 A2 01 00 DD F3 E4 66 33 3A A4 66 2C [02:24:28]GetLastDocTimeStamp 1726278369 [02:24:28]current date 1726280669 [02:24:28]FM_GetShiftState [02:24:28]SAM_PROTO_GetShiftState [02:24:28]wFMCommunicate request_size=4 [02:24:28]MH_SAM_APDU [02:24:28]CAPDU: 80 13 01 00 [02:24:28]Write to MH i2c: E2 08 00 A3 01 80 13 01 00 00 00 00 00 21 [02:24:28]Write i2c OK [02:24:28]MH_I2C_Read... [02:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:28]Read from MH i2c: E2 [02:24:28]MH_I2C_Read... [02:24:28]Read from MH i2c: E2 0E 00 [02:24:28]MH_I2C_Read... [02:24:28]Read from MH i2c: E2 0E 00 A3 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BB [02:24:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:24:28]wFMCommunicate OK [02:24:28]SAM_PROTO_GetShiftState done [02:24:28]FM_GetShiftState done [02:24:28]opened in 1726273389 [02:24:28]opened+sec_in_day 1726359789 [02:24:28]quantity*price = 14400 [02:24:28]sum+1 = 14401 [02:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 5 14.09.2024 02:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92354 ФПД: 150333384179257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022429&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92354&fm=150333384179257&tin=02508201610067®Number=0000000000091423&sum=14400 0 [02:24:29]StoreToDocumentArchive [02:24:29]shift 506 fd 92354 [02:24:29]save to /storage/0506/doc_00092354 [02:24:29]save last doc name /storage/0506/doc_00092354 to /storage/kkm_last_doc_name [02:24:29]save OK [02:24:29]Clear old archive folders... [02:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=275 [02:24:29]tlvbuf is 00FC6940 [02:24:29]SAM_PROTO_ClearQueue [02:24:29]wFMCommunicate request_size=4 [02:24:29]MH_SAM_APDU [02:24:29]CAPDU: 80 09 00 00 [02:24:29]Write to MH i2c: E2 08 00 B0 01 80 09 00 00 00 00 00 00 23 [02:24:29]Write i2c OK [02:24:29]MH_I2C_Read... [02:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:29]Read from MH i2c: E2 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [02:24:29]RAPDU: 90 00 [02:24:29]wFMCommunicate OK [02:24:29]SAM_PROTO_ClearQueue done [02:24:29]KKMCreateOFDPacket [02:24:29]OFDProtocolAddRootSTLVToBuf [02:24:29]FM_MakeSignedData [02:24:29]FM_MakeSignedData [02:24:29]SAM_PROTO_SignData [02:24:29]wFMCommunicate request_size=4 [02:24:29]MH_SAM_APDU [02:24:29]CAPDU: 80 0D 01 02 [02:24:29]Write to MH i2c: E2 08 00 B1 01 80 0D 01 02 00 00 00 00 2B [02:24:29]Write i2c OK [02:24:29]MH_I2C_Read... [02:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:29]Read from MH i2c: E2 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [02:24:29]RAPDU: 90 00 [02:24:29]wFMCommunicate OK [02:24:29]wFMCommunicate request_size=255 [02:24:29]MH_SAM_APDU [02:24:29]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 DD F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [02:24:29]Write to MH i2c: E2 02 01 B2 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 DD F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 44 [02:24:29]Write i2c OK [02:24:29]MH_I2C_Read... [02:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:29]Read from MH i2c: E2 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [02:24:29]RAPDU: 90 00 [02:24:29]wFMCommunicate OK [02:24:29]wFMCommunicate request_size=34 [02:24:29]MH_SAM_APDU [02:24:29]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 68 01 00 35 04 06 00 88 BA 37 F6 3E 39 [02:24:29]Write to MH i2c: E2 25 00 B3 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 68 01 00 35 04 06 00 88 BA 37 F6 3E 39 00 00 04 [02:24:29]Write i2c OK [02:24:29]MH_I2C_Read... [02:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:29]Read from MH i2c: E2 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 [02:24:29]MH_I2C_Read... [02:24:29]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [02:24:29]RAPDU: 90 00 [02:24:30]wFMCommunicate OK [02:24:30]wFMCommunicate request_size=4 [02:24:30]MH_SAM_APDU [02:24:30]CAPDU: 80 0D 03 02 [02:24:30]Write to MH i2c: E2 08 00 B4 01 80 0D 03 02 00 00 00 00 30 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:30]Read from MH i2c: E2 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: E2 0B 00 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: E2 0B 00 B4 01 00 05 11 C5 34 05 E1 18 F8 90 00 36 [02:24:30]RAPDU: 05 11 C5 34 05 E1 18 F8 90 00 [02:24:30]wFMCommunicate OK [02:24:30]SAM_PROTO_SignData done [02:24:30]FM_MakeSignedData done [02:24:30]CreateOFDProtocolMessage [02:24:30]wFMCommunicate request_size=4 [02:24:30]MH_SAM_APDU [02:24:30]CAPDU: 80 11 00 00 [02:24:30]Write to MH i2c: E2 08 00 B5 01 80 11 00 00 00 00 00 00 30 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:30]Read from MH i2c: E2 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: E2 17 00 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: E2 17 00 B5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 87 [02:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:24:30]wFMCommunicate OK [02:24:30]CreateOFDProtocolMessage done [02:24:30]OFDSenderStorePacket 92354 [02:24:30]StoreOFDPacket docnum=92354 [02:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 F1 C4 1F 01 56 46 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 DD F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 68 01 00 35 04 06 00 88 BA 37 F6 3E 39 05 11 C5 34 05 E1 18 F8 [02:24:30]CheckFolder [02:24:30]dirname=/storage/ofd_packets [02:24:30]CheckFolder done [02:24:30]ProducePacketName [02:24:30]name=ofd_packets/00092354 [02:24:30]NVStorageSaveData ofd_packets/00092354 [02:24:30]File name is /storage/ofd_packets/00092354 [02:24:30]Write 325 bytes [02:24:30]NVStorageSaveData done [02:24:30]OFDSenderStorePacket done [02:24:30]KKMCreateOFDPacket done [02:24:30]NVStorageSaveData kkm_last_timestamp [02:24:30]File name is /storage/kkm_last_timestamp [02:24:30]Write 4 bytes [02:24:30]NVStorageSaveData done [02:24:30]ExternCall_PrintAddStr [02:24:30]wPrintStart [02:24:30]Write to MH i2c: 01 00 00 B6 01 B7 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 07 00 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [02:24:30]RasterBufferAndPrint [02:24:30]line Счет N : (3)127279 [02:24:30]line ИНН: 02508201610067 [02:24:30]line Контрольно-Кассовый Чек [02:24:30]line ПРОДАЖА [02:24:30]line Товар: 48743587 [02:24:30]line Сигареты Winston XStyle Silver [02:24:30]line 1.000 * 144.00 [02:24:30]line = 144.00 [02:24:30]line НДС 12% НСП 1% [02:24:30]line > о реализуемом товаре [02:24:30]line ИТОГО: 144.00 [02:24:30]line НСП 1% : 1.27 [02:24:30]line НДС 12% : 15.29 [02:24:30]line Наличными: 144.00 [02:24:30]line Безнал.: 0.00 [02:24:30]line Место: АЗС № 5 "Партнер Нефть" [02:24:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:24:30]line СНО: Общий режим [02:24:30]line Чек 5 14.09.2024 02:24 [02:24:30]line Смена: 506 ФФД: 1.0 [02:24:30]line ЗНМ: 03000000022 [02:24:30]line РНМ: 0000000000091423 [02:24:30]line Версия ККМ: 001 [02:24:30]line ФМ: 0000000000874692 [02:24:30]line ФД: 92354 [02:24:30]line ФПД: 150333384179257 [02:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022429&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92354&fm=150333384179257&tin=02508201610067®Number=0000000000091423&sum=14400 [02:24:30]line 0 [02:24:30]OFD Sender: Processing packet 92354 [packets to send 63, broken 62] [02:24:30]ProducePacketName [02:24:30]name=ofd_packets/00092354 [02:24:30]OFD Sender: To server: pG, [02:24:30]CommunicateWithHost lk.salyk.kg:30040 [02:24:30]ConnectInit lk.salyk.kg [02:24:30]written 0, free lines is 4095 [02:24:30]Connected sock=10 [02:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 F1 C4 1F 01 56 46 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 DD F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C2 68 01 00 35 04 06 00 88 BA 37 F6 3E 39 05 11 C5 34 05 E1 18 F8 [02:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 23 D9 47 00 02 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 34 36 39 32 10 04 04 00 C2 68 01 00 F4 03 04 00 59 9C E4 66 B6 04 01 00 00 9D F4 FB DB EE 96 81 21 [02:24:30]CommunicateWithHost err = 0 [02:24:30]CheckOFDResponse [02:24:30]1017 (14) - 77093643461234 [02:24:30]1041 (16) - 0000000000874692 [02:24:30]1040 (4) - 92354 [02:24:30]1012 (4) - 13.09.2024 20:11 [02:24:30]1206 (1) - 0 [02:24:30]OFD Sender: Remove packet 92354 [02:24:30]ProducePacketName [02:24:30]name=ofd_packets/00092354 [02:24:30]NVStorageDeleteData [02:24:30]Write to MH i2c: 01 00 00 DF 01 E0 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 07 00 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 0F 0D 03 [02:24:30]RasterBufferAndPrint [02:24:30]line [02:24:30]line [02:24:30]line [02:24:30]line [02:24:30]line [02:24:30]written 0, free lines is 3351 [02:24:30]MH_Cut [02:24:30]Write to MH i2c: D1 01 00 E6 01 01 B9 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: D1 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: D1 01 00 [02:24:30]MH_I2C_Read... [02:24:30]Read from MH i2c: D1 01 00 E6 01 00 B8 [02:24:30]Write to MH i2c: 01 00 00 E7 01 E8 [02:24:30]Write i2c OK [02:24:30]MH_I2C_Read... [02:24:31]OFD Sender: No OFD packet to send [02:24:31]*** Cut start [02:24:31]*** Purtial cut [02:24:31]*** Stage 1: CUTSNS_PIN = 1 [02:24:33]Read from MH i2c: 01 [02:24:33]MH_I2C_Read... [02:24:33]*** Stop cut motor [02:24:33]*** Cut end [02:24:33]Read from MH i2c: 01 07 00 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 FF 0F FD [02:24:33]process_action close_receipt done [02:24:33]requested_data is exist [02:24:33]produce_requested_data [02:24:33]requested_item fm.sn is exist - process it [02:24:33]wFMCommunicate request_size=4 [02:24:33]MH_SAM_APDU [02:24:33]CAPDU: 80 11 00 00 [02:24:33]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [02:24:33]Write i2c OK [02:24:33]MH_I2C_Read... [02:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:33]Read from MH i2c: E2 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 17 00 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BA [02:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:24:33]wFMCommunicate OK [02:24:33]requested_item fd.num is exist - process it [02:24:33]SAM_PROTO_GetFieldsCounters [02:24:33]wFMCommunicate request_size=4 [02:24:33]MH_SAM_APDU [02:24:33]CAPDU: 80 13 00 00 [02:24:33]Write to MH i2c: E2 08 00 E9 01 80 13 00 00 00 00 00 00 66 [02:24:33]Write i2c OK [02:24:33]MH_I2C_Read... [02:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:33]Read from MH i2c: E2 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 62 00 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 62 00 E9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C2 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [02:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C2 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:33]wFMCommunicate OK [02:24:33]SAM_PROTO_GetFieldsCounters done [02:24:33]requested_item shift.num is exist - process it [02:24:33]requested_item shift.opened is exist - process it [02:24:33]req_shift_opened [02:24:33]FM_GetShiftState [02:24:33]SAM_PROTO_GetShiftState [02:24:33]wFMCommunicate request_size=4 [02:24:33]MH_SAM_APDU [02:24:33]CAPDU: 80 13 01 00 [02:24:33]Write to MH i2c: E2 08 00 EA 01 80 13 01 00 00 00 00 00 68 [02:24:33]Write i2c OK [02:24:33]MH_I2C_Read... [02:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:33]Read from MH i2c: E2 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 0E 00 [02:24:33]MH_I2C_Read... [02:24:33]Read from MH i2c: E2 0E 00 EA 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 02 [02:24:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:24:33]wFMCommunicate OK [02:24:33]SAM_PROTO_GetShiftState done [02:24:33]FM_GetShiftState done [02:24:33]req_shift_opened done [02:24:33]requested_item shift.open_date is exist - process it [02:24:33]req_shift_open_date [02:24:33]req_shift_open_date done [02:24:33]produce_requested_data done [02:24:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92354,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:24:33]process_action_free close_receipt [02:24:33]json_value_free [02:24:33]json_value_free done [02:24:33]process_json_proto returns [02:24:33]Send response to host [02:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92354,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:24:33]free response buf [02:24:33]execute_script done [02:24:33]execute_script returns [02:24:33]free content buf [02:24:33]Sock 9.Close socket [02:24:33]Sock 9.Thread stoped [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:02]accept exits with 8 [02:25:02]New connection [02:25:02]New thread 3066801508 created [02:25:02]Thread 3066658148 joined [02:25:02]Waiting for new connection... [02:25:02] Sock 8.Parse request [02:25:02]Sock 8.Check first char [02:25:02]Sock 8.First char is OK [02:25:02]request: POST /json_proto HTTP/1.0 [02:25:02]Method: POST [02:25:02]URL: /json_proto [02:25:02]Method is POST - this is cgi request [02:25:02]url: /json_proto [02:25:02]query_string will be loaded in cgi processing [02:25:02]execute_cgi json_proto POST (null) [02:25:02]execute_cgi path=json_proto method=POST [02:25:02]POST find Content-Length [02:25:02]Host: 172.17.57.71:8080 [02:25:02]Content-Length: 805 [02:25:02]Content-Type: application/json [02:25:02] [02:25:02]POST finish read [02:25:02]Found Content-Length = 805 [02:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:02]execute_script... [02: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)647256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:02]POST & json_proto [02:25:02]process_json_proto [02:25:02]json parsed OK: [02:25:02]protocol is kg_v1.0 [02:25:02]action value=close_receipt [02:25:02]process_action close_receipt [02:25:02]cmd_close_receipt [02:25:02]MH_GetDate [02:25:02]Write to MH i2c: F0 00 00 EB 01 DB [02:25:02]Write i2c OK [02:25:02]MH_I2C_Read... [02:25:02]Read from MH i2c: F0 [02:25:02]MH_I2C_Read... [02:25:02]Read from MH i2c: F0 09 00 [02:25:02]MH_I2C_Read... [02:25:02]Read from MH i2c: F0 09 00 EB 01 00 FF F3 E4 66 33 3A A4 66 97 [02:25:02]GetLastDocTimeStamp 1726280669 [02:25:02]current date 1726280703 [02:25:02]FM_GetShiftState [02:25:02]SAM_PROTO_GetShiftState [02:25:02]wFMCommunicate request_size=4 [02:25:02]MH_SAM_APDU [02:25:02]CAPDU: 80 13 01 00 [02:25:02]Write to MH i2c: E2 08 00 EC 01 80 13 01 00 00 00 00 00 6A [02:25:02]Write i2c OK [02:25:02]MH_I2C_Read... [02:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:02]Read from MH i2c: E2 [02:25:02]MH_I2C_Read... [02:25:02]Read from MH i2c: E2 0E 00 [02:25:02]MH_I2C_Read... [02:25:02]Read from MH i2c: E2 0E 00 EC 01 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 04 [02:25:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:25:02]wFMCommunicate OK [02:25:02]SAM_PROTO_GetShiftState done [02:25:02]FM_GetShiftState done [02:25:02]opened in 1726273389 [02:25:02]opened+sec_in_day 1726359789 [02:25:02]quantity*price = 50041 [02:25:02]sum+1 = 50042 [02:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 6 14.09.2024 02:25 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92355 ФПД: 51603202075352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92355&fm=51603202075352&tin=02508201610067®Number=0000000000091423&sum=50041 [02:25:03]StoreToDocumentArchive [02:25:03]shift 506 fd 92355 [02:25:03]save to /storage/0506/doc_00092355 [02:25:03]save last doc name /storage/0506/doc_00092355 to /storage/kkm_last_doc_name [02:25:03]save OK [02:25:03]Clear old archive folders... [02:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:25:03]tlvbuf is 00FB63F0 [02:25:03]SAM_PROTO_ClearQueue [02:25:03]wFMCommunicate request_size=4 [02:25:03]MH_SAM_APDU [02:25:03]CAPDU: 80 09 00 00 [02:25:03]Write to MH i2c: E2 08 00 F9 01 80 09 00 00 00 00 00 00 6C [02:25:03]Write i2c OK [02:25:03]MH_I2C_Read... [02:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:25:03]Read from MH i2c: E2 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [02:25:03]RAPDU: 90 00 [02:25:03]wFMCommunicate OK [02:25:03]SAM_PROTO_ClearQueue done [02:25:03]KKMCreateOFDPacket [02:25:03]OFDProtocolAddRootSTLVToBuf [02:25:03]FM_MakeSignedData [02:25:03]FM_MakeSignedData [02:25:03]SAM_PROTO_SignData [02:25:03]wFMCommunicate request_size=4 [02:25:03]MH_SAM_APDU [02:25:03]CAPDU: 80 0D 01 02 [02:25:03]Write to MH i2c: E2 08 00 FA 01 80 0D 01 02 00 00 00 00 74 [02:25:03]Write i2c OK [02:25:03]MH_I2C_Read... [02:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:25:03]Read from MH i2c: E2 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [02:25:03]RAPDU: 90 00 [02:25:03]wFMCommunicate OK [02:25:03]wFMCommunicate request_size=255 [02:25:03]MH_SAM_APDU [02: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 00 00 00 F4 03 04 00 FF F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 68 01 00 35 04 06 00 2E [02:25:03]Write to MH i2c: E2 02 01 FB 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 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 06 00 00 00 F4 03 04 00 FF F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 68 01 00 35 04 06 00 2E 00 00 EA [02:25:03]Write i2c OK [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 [02:25:03]MH_I2C_Read... [02:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:03]Read from MH i2c: E2 03 00 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [02:25:03]RAPDU: 90 00 [02:25:03]wFMCommunicate OK [02:25:03]wFMCommunicate request_size=10 [02:25:03]MH_SAM_APDU [02:25:03]CAPDU: 80 0D 02 02 05 EE CE 87 6A D8 [02:25:03]Write to MH i2c: E2 0D 00 FC 01 80 0D 02 02 05 00 EE CE 87 6A D8 00 00 06 [02:25:03]Write i2c OK [02:25:03]MH_I2C_Read... [02:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:03]Read from MH i2c: E2 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 [02:25:03]MH_I2C_Read... [02:25:03]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [02:25:03]RAPDU: 90 00 [02:25:03]wFMCommunicate OK [02:25:03]wFMCommunicate request_size=4 [02:25:03]MH_SAM_APDU [02:25:03]CAPDU: 80 0D 03 02 [02:25:03]Write to MH i2c: E2 08 00 FD 01 80 0D 03 02 00 00 00 00 79 [02:25:03]Write i2c OK [02:25:03]MH_I2C_Read... [02:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:25:04]Read from MH i2c: E2 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: E2 0B 00 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: E2 0B 00 FD 01 00 1C 41 D9 85 D5 B2 D4 B0 90 00 40 [02:25:04]RAPDU: 1C 41 D9 85 D5 B2 D4 B0 90 00 [02:25:04]wFMCommunicate OK [02:25:04]SAM_PROTO_SignData done [02:25:04]FM_MakeSignedData done [02:25:04]CreateOFDProtocolMessage [02:25:04]wFMCommunicate request_size=4 [02:25:04]MH_SAM_APDU [02:25:04]CAPDU: 80 11 00 00 [02:25:04]Write to MH i2c: E2 08 00 FE 01 80 11 00 00 00 00 00 00 79 [02:25:04]Write i2c OK [02:25:04]MH_I2C_Read... [02:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:04]Read from MH i2c: E2 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: E2 17 00 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: E2 17 00 FE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D0 [02:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:25:04]wFMCommunicate OK [02:25:04]CreateOFDProtocolMessage done [02:25:04]OFDSenderStorePacket 92355 [02:25:04]StoreOFDPacket docnum=92355 [02:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 2F CD 07 01 C6 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 00 00 00 F4 03 04 00 FF F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 68 01 00 35 04 06 00 2E EE CE 87 6A D8 1C 41 D9 85 D5 B2 D4 B0 [02:25:04]CheckFolder [02:25:04]dirname=/storage/ofd_packets [02:25:04]CheckFolder done [02:25:04]ProducePacketName [02:25:04]name=ofd_packets/00092355 [02:25:04]NVStorageSaveData ofd_packets/00092355 [02:25:04]File name is /storage/ofd_packets/00092355 [02:25:04]Write 301 bytes [02:25:04]NVStorageSaveData done [02:25:04]OFDSenderStorePacket done [02:25:04]KKMCreateOFDPacket done [02:25:04]NVStorageSaveData kkm_last_timestamp [02:25:04]File name is /storage/kkm_last_timestamp [02:25:04]Write 4 bytes [02:25:04]NVStorageSaveData done [02:25:04]ExternCall_PrintAddStr [02:25:04]wPrintStart [02:25:04]Write to MH i2c: 01 00 00 FF 01 00 [02:25:04]Write i2c OK [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 07 00 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [02:25:04]RasterBufferAndPrint [02:25:04]line Счет N : (1)647256 [02:25:04]line ИНН: 02508201610067 [02:25:04]line Контрольно-Кассовый Чек [02:25:04]line ПРОДАЖА [02:25:04]line ТРК (МРК, ГНК) : 23 [02:25:04]line Товар: 2710124130 [02:25:04]line Аи-92-К-5 [02:25:04]line 7.480 * 66.90 [02:25:04]line = 500.41 [02:25:04]line НДС 12% НСП 1% [02:25:04]line > о реализуемом товаре [02:25:04]line ИТОГО: 500.41 [02:25:04]line НСП 1% : 4.43 [02:25:04]line НДС 12% : 53.14 [02:25:04]line Наличными: 0.00 [02:25:04]line Безнал.: 500.41 [02:25:04]line Место: АЗС № 5 "Партнер Нефть" [02:25:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:25:04]line СНО: Общий режим [02:25:04]line Чек 6 14.09.2024 02:25 [02:25:04]line Смена: 506 ФФД: 1.0 [02:25:04]line ЗНМ: 03000000022 [02:25:04]line РНМ: 0000000000091423 [02:25:04]line Версия ККМ: 001 [02:25:04]line Платежная система: О! деньги [02:25:04]line ФМ: 0000000000874692 [02:25:04]line ФД: 92355 [02:25:04]line ФПД: 51603202075352 [02:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022503&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92355&fm=51603202075352&tin=02508201610067®Number=0000000000091423&sum=50041 [02:25:04]OFD Sender: Processing packet 92355 [packets to send 63, broken 62] [02:25:04]ProducePacketName [02:25:04]name=ofd_packets/00092355 [02:25:04]OFD Sender: To server: pG, [02:25:04]CommunicateWithHost lk.salyk.kg:30040 [02:25:04]ConnectInit lk.salyk.kg [02:25:04]written 0, free lines is 4095 [02:25:04]Connected sock=10 [02: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 34 36 39 32 0F 01 00 00 2F CD 07 01 C6 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 00 00 00 F4 03 04 00 FF F3 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 68 01 00 35 04 06 00 2E EE CE 87 6A D8 1C 41 D9 85 D5 B2 D4 B0 [02:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CA 6C 47 00 DE 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C3 68 01 00 F4 03 04 00 7B 9C E4 66 B6 04 01 00 00 6A 5C F2 03 09 B5 42 89 [02:25:04]CommunicateWithHost err = 0 [02:25:04]CheckOFDResponse [02:25:04]1017 (14) - 77093643461234 [02:25:04]1041 (16) - 0000000000874692 [02:25:04]1040 (4) - 92355 [02:25:04]1012 (4) - 13.09.2024 20:11 [02:25:04]1206 (1) - 0 [02:25:04]OFD Sender: Remove packet 92355 [02:25:04]ProducePacketName [02:25:04]name=ofd_packets/00092355 [02:25:04]NVStorageDeleteData [02:25:04]Write to MH i2c: 01 00 00 29 02 2B [02:25:04]Write i2c OK [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 07 00 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 0A 0D 49 [02:25:04]RasterBufferAndPrint [02:25:04]line [02:25:04]line [02:25:04]line [02:25:04]line [02:25:04]line [02:25:04]written 0, free lines is 3344 [02:25:04]MH_Cut [02:25:04]Write to MH i2c: D1 01 00 30 02 01 04 [02:25:04]Write i2c OK [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: D1 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: D1 01 00 [02:25:04]MH_I2C_Read... [02:25:04]Read from MH i2c: D1 01 00 30 02 00 03 [02:25:04]Write to MH i2c: 01 00 00 31 02 33 [02:25:04]Write i2c OK [02:25:04]MH_I2C_Read... [02:25:05]OFD Sender: No OFD packet to send [02:25:05]*** Cut start [02:25:05]*** Purtial cut [02:25:05]*** Stage 1: CUTSNS_PIN = 1 [02:25:07]Read from MH i2c: 01 [02:25:07]MH_I2C_Read... [02:25:07]*** Stop cut motor [02:25:07]*** Cut end [02:25:07]Read from MH i2c: 01 07 00 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [02:25:07]process_action close_receipt done [02:25:07]requested_data is exist [02:25:07]produce_requested_data [02:25:07]requested_item fm.sn is exist - process it [02:25:07]wFMCommunicate request_size=4 [02:25:07]MH_SAM_APDU [02:25:07]CAPDU: 80 11 00 00 [02:25:07]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [02:25:07]Write i2c OK [02:25:07]MH_I2C_Read... [02:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:07]Read from MH i2c: E2 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 17 00 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 05 [02:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:25:07]wFMCommunicate OK [02:25:07]requested_item fd.num is exist - process it [02:25:07]SAM_PROTO_GetFieldsCounters [02:25:07]wFMCommunicate request_size=4 [02:25:07]MH_SAM_APDU [02:25:07]CAPDU: 80 13 00 00 [02:25:07]Write to MH i2c: E2 08 00 33 02 80 13 00 00 00 00 00 00 B1 [02:25:07]Write i2c OK [02:25:07]MH_I2C_Read... [02:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:25:07]Read from MH i2c: E2 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 62 00 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 62 00 33 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C3 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [02:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C3 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:25:07]wFMCommunicate OK [02:25:07]SAM_PROTO_GetFieldsCounters done [02:25:07]requested_item shift.num is exist - process it [02:25:07]requested_item shift.opened is exist - process it [02:25:07]req_shift_opened [02:25:07]FM_GetShiftState [02:25:07]SAM_PROTO_GetShiftState [02:25:07]wFMCommunicate request_size=4 [02:25:07]MH_SAM_APDU [02:25:07]CAPDU: 80 13 01 00 [02:25:07]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [02:25:07]Write i2c OK [02:25:07]MH_I2C_Read... [02:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:07]Read from MH i2c: E2 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 0E 00 [02:25:07]MH_I2C_Read... [02:25:07]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4D [02:25:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:25:07]wFMCommunicate OK [02:25:07]SAM_PROTO_GetShiftState done [02:25:07]FM_GetShiftState done [02:25:07]req_shift_opened done [02:25:07]requested_item shift.open_date is exist - process it [02:25:07]req_shift_open_date [02:25:07]req_shift_open_date done [02:25:07]produce_requested_data done [02:25:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92355,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:25:07]process_action_free close_receipt [02:25:07]json_value_free [02:25:07]json_value_free done [02:25:07]process_json_proto returns [02:25:07]Send response to host [02:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92355,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:25:07]free response buf [02:25:07]execute_script done [02:25:07]execute_script returns [02:25:07]free content buf [02:25:07]Sock 8.Close socket [02:25:07]Sock 8.Thread stoped [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:28:59]accept exits with 9 [02:28:59]New connection [02:28:59]New thread 3066658148 created [02:28:59]Thread 3066801508 joined [02:28:59]Waiting for new connection... [02:28:59] Sock 9.Parse request [02:28:59]Sock 9.Check first char [02:28:59]Sock 9.First char is OK [02:28:59]request: POST /json_proto HTTP/1.0 [02:28:59]Method: POST [02:28:59]URL: /json_proto [02:28:59]Method is POST - this is cgi request [02:28:59]url: /json_proto [02:28:59]query_string will be loaded in cgi processing [02:28:59]execute_cgi json_proto POST (null) [02:28:59]execute_cgi path=json_proto method=POST [02:28:59]POST find Content-Length [02:28:59]Host: 172.17.57.71:8080 [02:28:59]Content-Length: 806 [02:28:59]Content-Type: application/json [02:28:59] [02:28:59]POST finish read [02:28:59]Found Content-Length = 806 [02:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 36.90, "quantity" : 0.990, "sum" : 36.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 36.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:28:59]execute_script... [02: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)647257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 36.90, "quantity" : 0.990, "sum" : 36.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 36.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:28:59]POST & json_proto [02:28:59]process_json_proto [02:28:59]json parsed OK: [02:28:59]protocol is kg_v1.0 [02:28:59]action value=close_receipt [02:28:59]process_action close_receipt [02:28:59]cmd_close_receipt [02:28:59]MH_GetDate [02:28:59]Write to MH i2c: F0 00 00 35 02 26 [02:28:59]Write i2c OK [02:28:59]MH_I2C_Read... [02:28:59]Read from MH i2c: F0 [02:28:59]MH_I2C_Read... [02:28:59]Read from MH i2c: F0 09 00 [02:28:59]MH_I2C_Read... [02:28:59]Read from MH i2c: F0 09 00 35 02 00 EC F4 E4 66 33 3A A4 66 D0 [02:28:59]GetLastDocTimeStamp 1726280703 [02:28:59]current date 1726280940 [02:28:59]FM_GetShiftState [02:28:59]SAM_PROTO_GetShiftState [02:28:59]wFMCommunicate request_size=4 [02:28:59]MH_SAM_APDU [02:28:59]CAPDU: 80 13 01 00 [02:28:59]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [02:28:59]Write i2c OK [02:28:59]MH_I2C_Read... [02:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:59]Read from MH i2c: E2 [02:28:59]MH_I2C_Read... [02:28:59]Read from MH i2c: E2 0E 00 [02:28:59]MH_I2C_Read... [02:28:59]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4F [02:28:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:28:59]wFMCommunicate OK [02:28:59]SAM_PROTO_GetShiftState done [02:28:59]FM_GetShiftState done [02:28:59]opened in 1726273389 [02:28:59]opened+sec_in_day 1726359789 [02:28:59]quantity*price = 3653 [02:28:59]sum+1 = 3654 [02:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 36.53 НСП 1% : 0.32 НДС 12% : 3.88 Наличными: 0.00 Безнал.: 36.53 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 7 14.09.2024 02:29 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92356 ФПД: 29834263943573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022900&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92356&fm=29834263943573&tin=02508201610067®Number=0000000000091423&sum=3653 [02:29:01]StoreToDocumentArchive [02:29:01]shift 506 fd 92356 [02:29:01]save to /storage/0506/doc_00092356 [02:29:01]save last doc name /storage/0506/doc_00092356 to /storage/kkm_last_doc_name [02:29:01]save OK [02:29:01]Clear old archive folders... [02:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:29:01]tlvbuf is 00F7ECE0 [02:29:01]SAM_PROTO_ClearQueue [02:29:01]wFMCommunicate request_size=4 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 09 00 00 [02:29:01]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [02:29:01]RAPDU: 90 00 [02:29:01]wFMCommunicate OK [02:29:01]SAM_PROTO_ClearQueue done [02:29:01]KKMCreateOFDPacket [02:29:01]OFDProtocolAddRootSTLVToBuf [02:29:01]FM_MakeSignedData [02:29:01]FM_MakeSignedData [02:29:01]SAM_PROTO_SignData [02:29:01]wFMCommunicate request_size=4 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 0D 01 02 [02:29:01]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [02:29:01]RAPDU: 90 00 [02:29:01]wFMCommunicate OK [02:29:01]wFMCommunicate request_size=255 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 03 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 45 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 0E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 EC F4 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 68 01 00 35 04 06 00 1B 22 [02:29:01]Write to MH i2c: E2 02 01 45 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 03 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 45 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 0E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 EC F4 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 68 01 00 35 04 06 00 1B 22 00 00 FB [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:01]Read from MH i2c: E2 03 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [02:29:01]RAPDU: 90 00 [02:29:01]wFMCommunicate OK [02:29:01]wFMCommunicate request_size=9 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 0D 02 02 04 54 B4 59 95 [02:29:01]Write to MH i2c: E2 0C 00 46 02 80 0D 02 02 04 00 54 B4 59 95 00 00 C0 [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [02:29:01]RAPDU: 90 00 [02:29:01]wFMCommunicate OK [02:29:01]wFMCommunicate request_size=4 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 0D 03 02 [02:29:01]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 0B 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 0B 00 47 02 00 98 5A 6D 64 13 67 F2 D1 90 00 C5 [02:29:01]RAPDU: 98 5A 6D 64 13 67 F2 D1 90 00 [02:29:01]wFMCommunicate OK [02:29:01]SAM_PROTO_SignData done [02:29:01]FM_MakeSignedData done [02:29:01]CreateOFDProtocolMessage [02:29:01]wFMCommunicate request_size=4 [02:29:01]MH_SAM_APDU [02:29:01]CAPDU: 80 11 00 00 [02:29:01]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:01]Read from MH i2c: E2 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 17 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1B [02:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:29:01]wFMCommunicate OK [02:29:01]CreateOFDProtocolMessage done [02:29:01]OFDSenderStorePacket 92356 [02:29:01]StoreOFDPacket docnum=92356 [02:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 EC D2 06 01 6D 2B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 03 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 45 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 0E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 EC F4 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 68 01 00 35 04 06 00 1B 22 54 B4 59 95 98 5A 6D 64 13 67 F2 D1 [02:29:01]CheckFolder [02:29:01]dirname=/storage/ofd_packets [02:29:01]CheckFolder done [02:29:01]ProducePacketName [02:29:01]name=ofd_packets/00092356 [02:29:01]NVStorageSaveData ofd_packets/00092356 [02:29:01]File name is /storage/ofd_packets/00092356 [02:29:01]Write 300 bytes [02:29:01]NVStorageSaveData done [02:29:01]OFDSenderStorePacket done [02:29:01]KKMCreateOFDPacket done [02:29:01]NVStorageSaveData kkm_last_timestamp [02:29:01]File name is /storage/kkm_last_timestamp [02:29:01]Write 4 bytes [02:29:01]NVStorageSaveData done [02:29:01]ExternCall_PrintAddStr [02:29:01]wPrintStart [02:29:01]Write to MH i2c: 01 00 00 49 02 4B [02:29:01]Write i2c OK [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: 01 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: 01 07 00 [02:29:01]MH_I2C_Read... [02:29:01]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [02:29:01]RasterBufferAndPrint [02:29:01]line Счет N : (1)647257 [02:29:01]line ИНН: 02508201610067 [02:29:01]line Контрольно-Кассовый Чек [02:29:01]line ПРОДАЖА [02:29:01]line ТРК (МРК, ГНК) : 71 [02:29:01]line Товар: 2711190000 [02:29:01]line ГАЗ-К-5 [02:29:01]line 0.990 * 36.90 [02:29:01]line = 36.53 [02:29:01]line НДС 12% НСП 1% [02:29:01]line > о реализуемом товаре [02:29:01]line ИТОГО: 36.53 [02:29:01]line НСП 1% : 0.32 [02:29:01]line НДС 12% : 3.88 [02:29:01]line Наличными: 0.00 [02:29:01]line Безнал.: 36.53 [02:29:01]line Место: АЗС № 5 "Партнер Нефть" [02:29:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:29:01]line СНО: Общий режим [02:29:01]line Чек 7 14.09.2024 02:29 [02:29:01]line Смена: 506 ФФД: 1.0 [02:29:01]line ЗНМ: 03000000022 [02:29:01]line РНМ: 0000000000091423 [02:29:01]line Версия ККМ: 001 [02:29:01]line Платежная система: О! деньги [02:29:01]line ФМ: 0000000000874692 [02:29:01]line ФД: 92356 [02:29:01]line ФПД: 29834263943573 [02:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022900&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92356&fm=29834263943573&tin=02508201610067®Number=0000000000091423&sum=3653 [02:29:01]written 0, free lines is 4095 [02:29:01]OFD Sender: Processing packet 92356 [packets to send 63, broken 62] [02:29:01]ProducePacketName [02:29:01]name=ofd_packets/00092356 [02:29:01]OFD Sender: To server: pG, [02:29:01]CommunicateWithHost lk.salyk.kg:30040 [02:29:01]ConnectInit lk.salyk.kg [02:29:01]Connected sock=10 [02:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 EC D2 06 01 6D 2B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 03 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 45 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 0E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 EC F4 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C4 68 01 00 35 04 06 00 1B 22 54 B4 59 95 98 5A 6D 64 13 67 F2 D1 [02:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8E DB 47 00 D7 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 34 36 39 32 10 04 04 00 C4 68 01 00 F4 03 04 00 69 9D E4 66 B6 04 01 00 00 01 AB F8 5B CB 3D E2 92 [02:29:01]CommunicateWithHost err = 0 [02:29:01]CheckOFDResponse [02:29:01]1017 (14) - 77093643461234 [02:29:01]1041 (16) - 0000000000874692 [02:29:01]1040 (4) - 92356 [02:29:01]1012 (4) - 13.09.2024 20:15 [02:29:01]1206 (1) - 0 [02:29:01]OFD Sender: Remove packet 92356 [02:29:01]ProducePacketName [02:29:01]name=ofd_packets/00092356 [02:29:01]NVStorageDeleteData [02:29:02]Write to MH i2c: 01 00 00 73 02 75 [02:29:02]Write i2c OK [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: 01 [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: 01 07 00 [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 0B 0D 94 [02:29:02]RasterBufferAndPrint [02:29:02]line [02:29:02]line [02:29:02]line [02:29:02]line [02:29:02]line [02:29:02]written 0, free lines is 3347 [02:29:02]MH_Cut [02:29:02]Write to MH i2c: D1 01 00 7A 02 01 4E [02:29:02]Write i2c OK [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: D1 [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: D1 01 00 [02:29:02]MH_I2C_Read... [02:29:02]Read from MH i2c: D1 01 00 7A 02 00 4D [02:29:02]Write to MH i2c: 01 00 00 7B 02 7D [02:29:02]Write i2c OK [02:29:02]MH_I2C_Read... [02:29:02]OFD Sender: No OFD packet to send [02:29:02]*** Cut start [02:29:02]*** Purtial cut [02:29:02]*** Stage 1: CUTSNS_PIN = 1 [02:29:04]Read from MH i2c: 01 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: 01 07 00 [02:29:04]MH_I2C_Read... [02:29:04]*** Stop cut motor [02:29:04]*** Cut end [02:29:04]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [02:29:04]process_action close_receipt done [02:29:04]requested_data is exist [02:29:04]produce_requested_data [02:29:04]requested_item fm.sn is exist - process it [02:29:04]wFMCommunicate request_size=4 [02:29:04]MH_SAM_APDU [02:29:04]CAPDU: 80 11 00 00 [02:29:04]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [02:29:04]Write i2c OK [02:29:04]MH_I2C_Read... [02:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:04]Read from MH i2c: E2 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 17 00 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [02:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:29:04]wFMCommunicate OK [02:29:04]requested_item fd.num is exist - process it [02:29:04]SAM_PROTO_GetFieldsCounters [02:29:04]wFMCommunicate request_size=4 [02:29:04]MH_SAM_APDU [02:29:04]CAPDU: 80 13 00 00 [02:29:04]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [02:29:04]Write i2c OK [02:29:04]MH_I2C_Read... [02:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:29:04]Read from MH i2c: E2 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 62 00 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 62 00 7D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C4 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [02:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C4 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:29:04]wFMCommunicate OK [02:29:04]SAM_PROTO_GetFieldsCounters done [02:29:04]requested_item shift.num is exist - process it [02:29:04]requested_item shift.opened is exist - process it [02:29:04]req_shift_opened [02:29:04]FM_GetShiftState [02:29:04]SAM_PROTO_GetShiftState [02:29:04]wFMCommunicate request_size=4 [02:29:04]MH_SAM_APDU [02:29:04]CAPDU: 80 13 01 00 [02:29:04]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [02:29:04]Write i2c OK [02:29:04]MH_I2C_Read... [02:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:04]Read from MH i2c: E2 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 0E 00 [02:29:04]MH_I2C_Read... [02:29:04]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 97 [02:29:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:29:04]wFMCommunicate OK [02:29:04]SAM_PROTO_GetShiftState done [02:29:04]FM_GetShiftState done [02:29:04]req_shift_opened done [02:29:04]requested_item shift.open_date is exist - process it [02:29:04]req_shift_open_date [02:29:04]req_shift_open_date done [02:29:04]produce_requested_data done [02:29:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92356,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:29:04]process_action_free close_receipt [02:29:04]json_value_free [02:29:04]json_value_free done [02:29:04]process_json_proto returns [02:29:04]Send response to host [02:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92356,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:29:04]free response buf [02:29:04]execute_script done [02:29:04]execute_script returns [02:29:04]free content buf [02:29:04]Sock 9.Close socket [02:29:04]Sock 9.Thread stoped [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:26]accept exits with 8 [02:29:26]New connection [02:29:26]New thread 3066801508 created [02:29:26]Thread 3066658148 joined [02:29:26]Waiting for new connection... [02:29:26] Sock 8.Parse request [02:29:26]Sock 8.Check first char [02:29:26]Sock 8.First char is OK [02:29:26]request: POST /json_proto HTTP/1.0 [02:29:26]Method: POST [02:29:26]URL: /json_proto [02:29:26]Method is POST - this is cgi request [02:29:26]url: /json_proto [02:29:26]query_string will be loaded in cgi processing [02:29:26]execute_cgi json_proto POST (null) [02:29:26]execute_cgi path=json_proto method=POST [02:29:26]POST find Content-Length [02:29:26]Host: 172.17.57.71:8080 [02:29:26]Content-Length: 675 [02:29:26]Content-Type: application/json [02:29:26] [02:29:26]POST finish read [02:29:26]Found Content-Length = 675 [02:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:26]execute_script... [02:29: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)647259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:26]POST & json_proto [02:29:26]process_json_proto [02:29:26]json parsed OK: [02:29:26]protocol is kg_v1.0 [02:29:26]action value=close_receipt [02:29:26]process_action close_receipt [02:29:26]cmd_close_receipt [02:29:26]MH_GetDate [02:29:26]Write to MH i2c: F0 00 00 7F 02 70 [02:29:26]Write i2c OK [02:29:26]MH_I2C_Read... [02:29:26]Read from MH i2c: F0 [02:29:26]MH_I2C_Read... [02:29:26]Read from MH i2c: F0 09 00 [02:29:26]MH_I2C_Read... [02:29:26]Read from MH i2c: F0 09 00 7F 02 00 07 F5 E4 66 33 3A A4 66 36 [02:29:26]GetLastDocTimeStamp 1726280940 [02:29:26]current date 1726280967 [02:29:26]FM_GetShiftState [02:29:26]SAM_PROTO_GetShiftState [02:29:26]wFMCommunicate request_size=4 [02:29:26]MH_SAM_APDU [02:29:26]CAPDU: 80 13 01 00 [02:29:26]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [02:29:26]Write i2c OK [02:29:26]MH_I2C_Read... [02:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:26]Read from MH i2c: E2 [02:29:26]MH_I2C_Read... [02:29:26]Read from MH i2c: E2 0E 00 [02:29:26]MH_I2C_Read... [02:29:26]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 99 [02:29:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:29:26]wFMCommunicate OK [02:29:26]SAM_PROTO_GetShiftState done [02:29:26]FM_GetShiftState done [02:29:26]opened in 1726273389 [02:29:26]opened+sec_in_day 1726359789 [02:29:26]quantity*price = 100016 [02:29:26]sum+1 = 100018 [02:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 8 14.09.2024 02:29 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92357 ФПД: 171567992012305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92357&fm=171567992012305&tin=02508201610067®Number=0000000000091423&sum=100000 [02:29:27]StoreToDocumentArchive [02:29:27]shift 506 fd 92357 [02:29:27]save to /storage/0506/doc_00092357 [02:29:27]save last doc name /storage/0506/doc_00092357 to /storage/kkm_last_doc_name [02:29:27]save OK [02:29:27]Clear old archive folders... [02:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:29:27]tlvbuf is 00FAB300 [02:29:27]SAM_PROTO_ClearQueue [02:29:27]wFMCommunicate request_size=4 [02:29:27]MH_SAM_APDU [02:29:27]CAPDU: 80 09 00 00 [02:29:27]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [02:29:27]Write i2c OK [02:29:27]MH_I2C_Read... [02:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:29:27]Read from MH i2c: E2 [02:29:27]MH_I2C_Read... [02:29:27]Read from MH i2c: E2 03 00 [02:29:27]MH_I2C_Read... [02:29:27]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [02:29:27]RAPDU: 90 00 [02:29:27]wFMCommunicate OK [02:29:27]SAM_PROTO_ClearQueue done [02:29:27]KKMCreateOFDPacket [02:29:27]OFDProtocolAddRootSTLVToBuf [02:29:27]FM_MakeSignedData [02:29:27]FM_MakeSignedData [02:29:27]SAM_PROTO_SignData [02:29:27]wFMCommunicate request_size=4 [02:29:27]MH_SAM_APDU [02:29:27]CAPDU: 80 0D 01 02 [02:29:27]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [02:29:27]Write i2c OK [02:29:27]MH_I2C_Read... [02:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:29:28]Read from MH i2c: E2 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 03 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [02:29:28]RAPDU: 90 00 [02:29:28]wFMCommunicate OK [02:29:28]wFMCommunicate request_size=255 [02:29:28]MH_SAM_APDU [02:29:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 07 F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 68 01 00 35 04 06 00 [02:29:28]Write to MH i2c: E2 02 01 8F 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 07 F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 68 01 00 35 04 06 00 00 00 2C [02:29:28]Write i2c OK [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 [02:29:28]MH_I2C_Read... [02:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:28]Read from MH i2c: E2 03 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [02:29:28]RAPDU: 90 00 [02:29:28]wFMCommunicate OK [02:29:28]wFMCommunicate request_size=11 [02:29:28]MH_SAM_APDU [02:29:28]CAPDU: 80 0D 02 02 06 9C 0A 49 37 FE 11 [02:29:28]Write to MH i2c: E2 0E 00 90 02 80 0D 02 02 06 00 9C 0A 49 37 FE 11 00 00 4D [02:29:28]Write i2c OK [02:29:28]MH_I2C_Read... [02:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:28]Read from MH i2c: E2 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 03 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [02:29:28]RAPDU: 90 00 [02:29:28]wFMCommunicate OK [02:29:28]wFMCommunicate request_size=4 [02:29:28]MH_SAM_APDU [02:29:28]CAPDU: 80 0D 03 02 [02:29:28]Write to MH i2c: E2 08 00 91 02 80 0D 03 02 00 00 00 00 0E [02:29:28]Write i2c OK [02:29:28]MH_I2C_Read... [02:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:29:28]Read from MH i2c: E2 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 0B 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 0B 00 91 02 00 3F 2F A8 8F 04 AC D0 22 90 00 56 [02:29:28]RAPDU: 3F 2F A8 8F 04 AC D0 22 90 00 [02:29:28]wFMCommunicate OK [02:29:28]SAM_PROTO_SignData done [02:29:28]FM_MakeSignedData done [02:29:28]CreateOFDProtocolMessage [02:29:28]wFMCommunicate request_size=4 [02:29:28]MH_SAM_APDU [02:29:28]CAPDU: 80 11 00 00 [02:29:28]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [02:29:28]Write i2c OK [02:29:28]MH_I2C_Read... [02:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:28]Read from MH i2c: E2 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 17 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [02:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:29:28]wFMCommunicate OK [02:29:28]CreateOFDProtocolMessage done [02:29:28]OFDSenderStorePacket 92357 [02:29:28]StoreOFDPacket docnum=92357 [02:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 BA 47 08 01 BB DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 07 F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 68 01 00 35 04 06 00 9C 0A 49 37 FE 11 3F 2F A8 8F 04 AC D0 22 [02:29:28]CheckFolder [02:29:28]dirname=/storage/ofd_packets [02:29:28]CheckFolder done [02:29:28]ProducePacketName [02:29:28]name=ofd_packets/00092357 [02:29:28]NVStorageSaveData ofd_packets/00092357 [02:29:28]File name is /storage/ofd_packets/00092357 [02:29:28]Write 302 bytes [02:29:28]NVStorageSaveData done [02:29:28]OFDSenderStorePacket done [02:29:28]KKMCreateOFDPacket done [02:29:28]NVStorageSaveData kkm_last_timestamp [02:29:28]File name is /storage/kkm_last_timestamp [02:29:28]Write 4 bytes [02:29:28]NVStorageSaveData done [02:29:28]ExternCall_PrintAddStr [02:29:28]wPrintStart [02:29:28]Write to MH i2c: 01 00 00 93 02 95 [02:29:28]Write i2c OK [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: 01 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: 01 07 00 [02:29:28]MH_I2C_Read... [02:29:28]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [02:29:28]RasterBufferAndPrint [02:29:28]line Счет N : (1)647259 [02:29:28]line ИНН: 02508201610067 [02:29:28]line Контрольно-Кассовый Чек [02:29:28]line ПРОДАЖА [02:29:28]line ТРК (МРК, ГНК) : 21 [02:29:28]line Товар: 2710124130 [02:29:28]line SUPER 92-К-5 [02:29:28]line 14.730 * 67.90 [02:29:28]line = 1000.17 [02:29:28]line НДС 12% НСП 1% [02:29:28]line > о реализуемом товаре [02:29:28]line ОКРУГЛЕНИЕ: -0.17 [02:29:28]line ИТОГО: 1000.00 [02:29:28]line Внесено: 1000.00 [02:29:28]line СДАЧА: 0.00 [02:29:28]line НСП 1% : 8.85 [02:29:28]line НДС 12% : 106.21 [02:29:28]line Наличными: 1000.00 [02:29:28]line Безнал.: 0.00 [02:29:28]line Место: АЗС № 5 "Партнер Нефть" [02:29:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:29:28]line СНО: Общий режим [02:29:28]line Чек 8 14.09.2024 02:29 [02:29:28]line Смена: 506 ФФД: 1.0 [02:29:28]line ЗНМ: 03000000022 [02:29:28]line РНМ: 0000000000091423 [02:29:28]line Версия ККМ: 001 [02:29:28]line ФМ: 0000000000874692 [02:29:28]line ФД: 92357 [02:29:28]line ФПД: 171567992012305 [02:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T022927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92357&fm=171567992012305&tin=02508201610067®Number=0000000000091423&sum=100000 [02:29:28]OFD Sender: Processing packet 92357 [packets to send 63, broken 62] [02:29:28]ProducePacketName [02:29:28]name=ofd_packets/00092357 [02:29:28]OFD Sender: To server: pG, [02:29:28]CommunicateWithHost lk.salyk.kg:30040 [02:29:28]ConnectInit lk.salyk.kg [02:29:28]written 0, free lines is 4095 [02:29:28]Connected sock=10 [02:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 BA 47 08 01 BB DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 07 F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 68 01 00 35 04 06 00 9C 0A 49 37 FE 11 3F 2F A8 8F 04 AC D0 22 [02:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 55 11 47 00 C7 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C5 68 01 00 F4 03 04 00 84 9D E4 66 B6 04 01 00 00 CE 00 EC C7 B7 FF 67 89 [02:29:29]CommunicateWithHost err = 0 [02:29:29]CheckOFDResponse [02:29:29]1017 (14) - 77093643461234 [02:29:29]1041 (16) - 0000000000874692 [02:29:29]1040 (4) - 92357 [02:29:29]1012 (4) - 13.09.2024 20:16 [02:29:29]1206 (1) - 0 [02:29:29]OFD Sender: Remove packet 92357 [02:29:29]ProducePacketName [02:29:29]name=ofd_packets/00092357 [02:29:29]NVStorageDeleteData [02:29:29]Write to MH i2c: 01 00 00 BE 02 C0 [02:29:29]Write i2c OK [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: 01 [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: 01 07 00 [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FD 0C D0 [02:29:29]RasterBufferAndPrint [02:29:29]line [02:29:29]line [02:29:29]line [02:29:29]line [02:29:29]line [02:29:29]written 0, free lines is 3332 [02:29:29]MH_Cut [02:29:29]Write to MH i2c: D1 01 00 C5 02 01 99 [02:29:29]Write i2c OK [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: D1 [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: D1 01 00 [02:29:29]MH_I2C_Read... [02:29:29]Read from MH i2c: D1 01 00 C5 02 00 98 [02:29:29]Write to MH i2c: 01 00 00 C6 02 C8 [02:29:29]Write i2c OK [02:29:29]MH_I2C_Read... [02:29:29]OFD Sender: No OFD packet to send [02:29:29]*** Cut start [02:29:29]*** Purtial cut [02:29:29]*** Stage 1: CUTSNS_PIN = 1 [02:29:31]Read from MH i2c: 01 [02:29:31]MH_I2C_Read... [02:29:31]*** Stop cut motor [02:29:31]*** Cut end [02:29:31]Read from MH i2c: 01 07 00 [02:29:31]MH_I2C_Read... [02:29:31]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [02:29:31]process_action close_receipt done [02:29:31]requested_data is exist [02:29:31]produce_requested_data [02:29:31]requested_item fm.sn is exist - process it [02:29:31]wFMCommunicate request_size=4 [02:29:31]MH_SAM_APDU [02:29:31]CAPDU: 80 11 00 00 [02:29:31]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [02:29:31]Write i2c OK [02:29:31]MH_I2C_Read... [02:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:31]Read from MH i2c: E2 [02:29:31]MH_I2C_Read... [02:29:31]Read from MH i2c: E2 17 00 [02:29:31]MH_I2C_Read... [02:29:32]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [02:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:29:32]wFMCommunicate OK [02:29:32]requested_item fd.num is exist - process it [02:29:32]SAM_PROTO_GetFieldsCounters [02:29:32]wFMCommunicate request_size=4 [02:29:32]MH_SAM_APDU [02:29:32]CAPDU: 80 13 00 00 [02:29:32]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [02:29:32]Write i2c OK [02:29:32]MH_I2C_Read... [02:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:29:32]Read from MH i2c: E2 [02:29:32]MH_I2C_Read... [02:29:32]Read from MH i2c: E2 62 00 [02:29:32]MH_I2C_Read... [02:29:32]Read from MH i2c: E2 62 00 C8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C5 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [02:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C5 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:29:32]wFMCommunicate OK [02:29:32]SAM_PROTO_GetFieldsCounters done [02:29:32]requested_item shift.num is exist - process it [02:29:32]requested_item shift.opened is exist - process it [02:29:32]req_shift_opened [02:29:32]FM_GetShiftState [02:29:32]SAM_PROTO_GetShiftState [02:29:32]wFMCommunicate request_size=4 [02:29:32]MH_SAM_APDU [02:29:32]CAPDU: 80 13 01 00 [02:29:32]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [02:29:32]Write i2c OK [02:29:32]MH_I2C_Read... [02:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:32]Read from MH i2c: E2 [02:29:32]MH_I2C_Read... [02:29:32]Read from MH i2c: E2 0E 00 [02:29:32]MH_I2C_Read... [02:29:32]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E2 [02:29:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:29:32]wFMCommunicate OK [02:29:32]SAM_PROTO_GetShiftState done [02:29:32]FM_GetShiftState done [02:29:32]req_shift_opened done [02:29:32]requested_item shift.open_date is exist - process it [02:29:32]req_shift_open_date [02:29:32]req_shift_open_date done [02:29:32]produce_requested_data done [02:29:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92357,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:29:32]process_action_free close_receipt [02:29:32]json_value_free [02:29:32]json_value_free done [02:29:32]process_json_proto returns [02:29:32]Send response to host [02:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92357,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:29:32]free response buf [02:29:32]execute_script done [02:29:32]execute_script returns [02:29:32]free content buf [02:29:32]Sock 8.Close socket [02:29:32]Sock 8.Thread stoped [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:05]accept exits with 9 [02:30:05]New connection [02:30:05]New thread 3066658148 created [02:30:05]Thread 3066801508 joined [02:30:05]Waiting for new connection... [02:30:05] Sock 9.Parse request [02:30:05]Sock 9.Check first char [02:30:05]Sock 9.First char is OK [02:30:05]request: POST /json_proto HTTP/1.0 [02:30:05]Method: POST [02:30:05]URL: /json_proto [02:30:05]Method is POST - this is cgi request [02:30:05]url: /json_proto [02:30:05]query_string will be loaded in cgi processing [02:30:05]execute_cgi json_proto POST (null) [02:30:05]execute_cgi path=json_proto method=POST [02:30:05]POST find Content-Length [02:30:05]Host: 172.17.57.71:8080 [02:30:05]Content-Length: 674 [02:30:05]Content-Type: application/json [02:30:05] [02:30:05]POST finish read [02:30:05]Found Content-Length = 674 [02:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 36.90, "quantity" : 0.100, "sum" : 3.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 964.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:05]execute_script... [02:30: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)647258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 36.90, "quantity" : 0.100, "sum" : 3.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 964.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:05]POST & json_proto [02:30:05]process_json_proto [02:30:05]json parsed OK: [02:30:05]protocol is kg_v1.0 [02:30:05]action value=close_receipt [02:30:05]process_action close_receipt [02:30:05]cmd_close_receipt [02:30:05]MH_GetDate [02:30:05]Write to MH i2c: F0 00 00 CA 02 BB [02:30:05]Write i2c OK [02:30:05]MH_I2C_Read... [02:30:05]Read from MH i2c: F0 [02:30:05]MH_I2C_Read... [02:30:05]Read from MH i2c: F0 09 00 [02:30:05]MH_I2C_Read... [02:30:05]Read from MH i2c: F0 09 00 CA 02 00 2E F5 E4 66 33 3A A4 66 A8 [02:30:05]GetLastDocTimeStamp 1726280967 [02:30:05]current date 1726281006 [02:30:05]FM_GetShiftState [02:30:05]SAM_PROTO_GetShiftState [02:30:05]wFMCommunicate request_size=4 [02:30:05]MH_SAM_APDU [02:30:05]CAPDU: 80 13 01 00 [02:30:05]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [02:30:05]Write i2c OK [02:30:05]MH_I2C_Read... [02:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:05]Read from MH i2c: E2 [02:30:05]MH_I2C_Read... [02:30:05]Read from MH i2c: E2 0E 00 [02:30:05]MH_I2C_Read... [02:30:05]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E4 [02:30:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:30:05]wFMCommunicate OK [02:30:05]SAM_PROTO_GetShiftState done [02:30:05]FM_GetShiftState done [02:30:05]opened in 1726273389 [02:30:05]opened+sec_in_day 1726359789 [02:30:05]quantity*price = 369 [02:30:05]sum+1 = 370 [02:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 3.00 Внесено: 964.00 СДАЧА: 961.00 НСП 1% : 0.03 НДС 12% : 0.39 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 9 14.09.2024 02:30 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92358 ФПД: 207768657622379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T023006&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92358&fm=207768657622379&tin=02508201610067®Number=0000000000091423&sum=300 [02:30:06]StoreToDocumentArchive [02:30:06]shift 506 fd 92358 [02:30:06]save to /storage/0506/doc_00092358 [02:30:06]save last doc name /storage/0506/doc_00092358 to /storage/kkm_last_doc_name [02:30:06]save OK [02:30:06]Clear old archive folders... [02:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:30:06]tlvbuf is 00FBDD10 [02:30:06]SAM_PROTO_ClearQueue [02:30:06]wFMCommunicate request_size=4 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 09 00 00 [02:30:06]Write to MH i2c: E2 08 00 D8 02 80 09 00 00 00 00 00 00 4C [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [02:30:06]RAPDU: 90 00 [02:30:06]wFMCommunicate OK [02:30:06]SAM_PROTO_ClearQueue done [02:30:06]KKMCreateOFDPacket [02:30:06]OFDProtocolAddRootSTLVToBuf [02:30:06]FM_MakeSignedData [02:30:06]FM_MakeSignedData [02:30:06]SAM_PROTO_SignData [02:30:06]wFMCommunicate request_size=4 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 0D 01 02 [02:30:06]Write to MH i2c: E2 08 00 D9 02 80 0D 01 02 00 00 00 00 54 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [02:30:06]RAPDU: 90 00 [02:30:06]wFMCommunicate OK [02:30:06]wFMCommunicate request_size=255 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 71 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2E F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 68 01 00 35 04 06 00 BC F6 [02:30:06]Write to MH i2c: E2 02 01 DA 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 71 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2E F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 68 01 00 35 04 06 00 BC F6 00 00 27 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [02:30:06]RAPDU: 90 00 [02:30:06]wFMCommunicate OK [02:30:06]wFMCommunicate request_size=9 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 0D 02 02 04 E9 08 75 6B [02:30:06]Write to MH i2c: E2 0C 00 DB 02 80 0D 02 02 04 00 E9 08 75 6B 00 00 30 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [02:30:06]RAPDU: 90 00 [02:30:06]wFMCommunicate OK [02:30:06]wFMCommunicate request_size=4 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 0D 03 02 [02:30:06]Write to MH i2c: E2 08 00 DC 02 80 0D 03 02 00 00 00 00 59 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 0B 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 0B 00 DC 02 00 EE ED 14 D0 87 D7 C3 F2 90 00 2C [02:30:06]RAPDU: EE ED 14 D0 87 D7 C3 F2 90 00 [02:30:06]wFMCommunicate OK [02:30:06]SAM_PROTO_SignData done [02:30:06]FM_MakeSignedData done [02:30:06]CreateOFDProtocolMessage [02:30:06]wFMCommunicate request_size=4 [02:30:06]MH_SAM_APDU [02:30:06]CAPDU: 80 11 00 00 [02:30:06]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:06]Read from MH i2c: E2 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 17 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [02:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:30:06]wFMCommunicate OK [02:30:06]CreateOFDProtocolMessage done [02:30:06]OFDSenderStorePacket 92358 [02:30:06]StoreOFDPacket docnum=92358 [02:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 76 5F 06 01 EF 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 71 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2E F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 68 01 00 35 04 06 00 BC F6 E9 08 75 6B EE ED 14 D0 87 D7 C3 F2 [02:30:06]CheckFolder [02:30:06]dirname=/storage/ofd_packets [02:30:06]CheckFolder done [02:30:06]ProducePacketName [02:30:06]name=ofd_packets/00092358 [02:30:06]NVStorageSaveData ofd_packets/00092358 [02:30:06]File name is /storage/ofd_packets/00092358 [02:30:06]Write 300 bytes [02:30:06]NVStorageSaveData done [02:30:06]OFDSenderStorePacket done [02:30:06]KKMCreateOFDPacket done [02:30:06]NVStorageSaveData kkm_last_timestamp [02:30:06]File name is /storage/kkm_last_timestamp [02:30:06]Write 4 bytes [02:30:06]NVStorageSaveData done [02:30:06]ExternCall_PrintAddStr [02:30:06]wPrintStart [02:30:06]Write to MH i2c: 01 00 00 DE 02 E0 [02:30:06]Write i2c OK [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: 01 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: 01 07 00 [02:30:06]MH_I2C_Read... [02:30:06]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 FF 0F F5 [02:30:06]RasterBufferAndPrint [02:30:06]line Счет N : (1)647258 [02:30:06]line ИНН: 02508201610067 [02:30:06]line Контрольно-Кассовый Чек [02:30:06]line ПРОДАЖА [02:30:06]line ТРК (МРК, ГНК) : 71 [02:30:06]line Товар: 2711190000 [02:30:06]line ГАЗ-К-5 [02:30:06]line 0.100 * 36.90 [02:30:06]line = 3.69 [02:30:06]line НДС 12% НСП 1% [02:30:06]line > о реализуемом товаре [02:30:06]line ОКРУГЛЕНИЕ: -0.69 [02:30:06]line ИТОГО: 3.00 [02:30:06]line Внесено: 964.00 [02:30:06]line СДАЧА: 961.00 [02:30:06]line НСП 1% : 0.03 [02:30:06]line НДС 12% : 0.39 [02:30:06]line Наличными: 3.00 [02:30:06]line Безнал.: 0.00 [02:30:06]line Место: АЗС № 5 "Партнер Нефть" [02:30:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:30:06]line СНО: Общий режим [02:30:06]line Чек 9 14.09.2024 02:30 [02:30:06]line Смена: 506 ФФД: 1.0 [02:30:06]line ЗНМ: 03000000022 [02:30:06]line РНМ: 0000000000091423 [02:30:06]line Версия ККМ: 001 [02:30:06]line ФМ: 0000000000874692 [02:30:06]line ФД: 92358 [02:30:06]line ФПД: 207768657622379 [02:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T023006&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92358&fm=207768657622379&tin=02508201610067®Number=0000000000091423&sum=300 [02:30:07]OFD Sender: Processing packet 92358 [packets to send 63, broken 62] [02:30:07]ProducePacketName [02:30:07]name=ofd_packets/00092358 [02:30:07]OFD Sender: To server: pG, [02:30:07]CommunicateWithHost lk.salyk.kg:30040 [02:30:07]ConnectInit lk.salyk.kg [02:30:07]written 0, free lines is 4095 [02:30:07]Connected sock=10 [02:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 76 5F 06 01 EF 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 71 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2E F5 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C6 68 01 00 35 04 06 00 BC F6 E9 08 75 6B EE ED 14 D0 87 D7 C3 F2 [02:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F1 F2 47 00 A1 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 34 36 39 32 10 04 04 00 C6 68 01 00 F4 03 04 00 AA 9D E4 66 B6 04 01 00 00 01 5E 86 51 32 A3 93 6D [02:30:07]CommunicateWithHost err = 0 [02:30:07]CheckOFDResponse [02:30:07]1017 (14) - 77093643461234 [02:30:07]1041 (16) - 0000000000874692 [02:30:07]1040 (4) - 92358 [02:30:07]1012 (4) - 13.09.2024 20:16 [02:30:07]1206 (1) - 0 [02:30:07]OFD Sender: Remove packet 92358 [02:30:07]ProducePacketName [02:30:07]name=ofd_packets/00092358 [02:30:07]NVStorageDeleteData [02:30:07]Write to MH i2c: 01 00 00 09 03 0C [02:30:07]Write i2c OK [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: 01 [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: 01 07 00 [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 F8 0C 17 [02:30:07]RasterBufferAndPrint [02:30:07]line [02:30:07]line [02:30:07]line [02:30:07]line [02:30:07]line [02:30:07]written 0, free lines is 3327 [02:30:07]MH_Cut [02:30:07]Write to MH i2c: D1 01 00 10 03 01 E5 [02:30:07]Write i2c OK [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: D1 [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: D1 01 00 [02:30:07]MH_I2C_Read... [02:30:07]Read from MH i2c: D1 01 00 10 03 00 E4 [02:30:07]Write to MH i2c: 01 00 00 11 03 14 [02:30:07]Write i2c OK [02:30:07]MH_I2C_Read... [02:30:07]OFD Sender: No OFD packet to send [02:30:08]*** Cut start [02:30:08]*** Purtial cut [02:30:08]*** Stage 1: CUTSNS_PIN = 1 [02:30:10]Read from MH i2c: 01 [02:30:10]MH_I2C_Read... [02:30:10]*** Stop cut motor [02:30:10]*** Cut end [02:30:10]Read from MH i2c: 01 07 00 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [02:30:10]process_action close_receipt done [02:30:10]requested_data is exist [02:30:10]produce_requested_data [02:30:10]requested_item fm.sn is exist - process it [02:30:10]wFMCommunicate request_size=4 [02:30:10]MH_SAM_APDU [02:30:10]CAPDU: 80 11 00 00 [02:30:10]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [02:30:10]Write i2c OK [02:30:10]MH_I2C_Read... [02:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:10]Read from MH i2c: E2 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 17 00 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [02:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:30:10]wFMCommunicate OK [02:30:10]requested_item fd.num is exist - process it [02:30:10]SAM_PROTO_GetFieldsCounters [02:30:10]wFMCommunicate request_size=4 [02:30:10]MH_SAM_APDU [02:30:10]CAPDU: 80 13 00 00 [02:30:10]Write to MH i2c: E2 08 00 13 03 80 13 00 00 00 00 00 00 92 [02:30:10]Write i2c OK [02:30:10]MH_I2C_Read... [02:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:10]Read from MH i2c: E2 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 62 00 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 62 00 13 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [02:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C6 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:30:10]wFMCommunicate OK [02:30:10]SAM_PROTO_GetFieldsCounters done [02:30:10]requested_item shift.num is exist - process it [02:30:10]requested_item shift.opened is exist - process it [02:30:10]req_shift_opened [02:30:10]FM_GetShiftState [02:30:10]SAM_PROTO_GetShiftState [02:30:10]wFMCommunicate request_size=4 [02:30:10]MH_SAM_APDU [02:30:10]CAPDU: 80 13 01 00 [02:30:10]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [02:30:10]Write i2c OK [02:30:10]MH_I2C_Read... [02:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:10]Read from MH i2c: E2 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 0E 00 [02:30:10]MH_I2C_Read... [02:30:10]Read from MH i2c: E2 0E 00 14 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2E [02:30:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:30:10]wFMCommunicate OK [02:30:10]SAM_PROTO_GetShiftState done [02:30:10]FM_GetShiftState done [02:30:10]req_shift_opened done [02:30:10]requested_item shift.open_date is exist - process it [02:30:10]req_shift_open_date [02:30:10]req_shift_open_date done [02:30:10]produce_requested_data done [02:30:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92358,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:30:10]process_action_free close_receipt [02:30:10]json_value_free [02:30:10]json_value_free done [02:30:10]process_json_proto returns [02:30:10]Send response to host [02:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92358,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:30:10]free response buf [02:30:10]execute_script done [02:30:10]execute_script returns [02:30:10]free content buf [02:30:10]Sock 9.Close socket [02:30:10]Sock 9.Thread stoped [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:19]accept exits with 8 [02:38:19]New connection [02:38:19]New thread 3066801508 created [02:38:19]Thread 3066658148 joined [02:38:19]Waiting for new connection... [02:38:19] Sock 8.Parse request [02:38:19]Sock 8.Check first char [02:38:19]Sock 8.First char is OK [02:38:19]request: POST /json_proto HTTP/1.0 [02:38:19]Method: POST [02:38:19]URL: /json_proto [02:38:19]Method is POST - this is cgi request [02:38:19]url: /json_proto [02:38:19]query_string will be loaded in cgi processing [02:38:19]execute_cgi json_proto POST (null) [02:38:19]execute_cgi path=json_proto method=POST [02:38:19]POST find Content-Length [02:38:19]Host: 172.17.57.71:8080 [02:38:19]Content-Length: 728 [02:38:19]Content-Type: application/json [02:38:19] [02:38:19]POST finish read [02:38:19]Found Content-Length = 728 [02:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127280", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:19]execute_script... [02:38: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 : (3)127280", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:19]POST & json_proto [02:38:19]process_json_proto [02:38:19]json parsed OK: [02:38:19]protocol is kg_v1.0 [02:38:19]action value=close_receipt [02:38:19]process_action close_receipt [02:38:19]cmd_close_receipt [02:38:19]MH_GetDate [02:38:19]Write to MH i2c: F0 00 00 15 03 07 [02:38:19]Write i2c OK [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: F0 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: F0 09 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: F0 09 00 15 03 00 1C F7 E4 66 33 3A A4 66 E4 [02:38:19]GetLastDocTimeStamp 1726281006 [02:38:19]current date 1726281500 [02:38:19]FM_GetShiftState [02:38:19]SAM_PROTO_GetShiftState [02:38:19]wFMCommunicate request_size=4 [02:38:19]MH_SAM_APDU [02:38:19]CAPDU: 80 13 01 00 [02:38:19]Write to MH i2c: E2 08 00 16 03 80 13 01 00 00 00 00 00 96 [02:38:19]Write i2c OK [02:38:19]MH_I2C_Read... [02:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:19]Read from MH i2c: E2 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 0E 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 0E 00 16 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 30 [02:38:19]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:38:19]wFMCommunicate OK [02:38:19]SAM_PROTO_GetShiftState done [02:38:19]FM_GetShiftState done [02:38:19]opened in 1726273389 [02:38:19]opened+sec_in_day 1726359789 [02:38:19]quantity*price = 6000 [02:38:19]sum+1 = 6001 [02:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 10 14.09.2024 02:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92359 ФПД: 269980542735484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T023820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92359&fm=269980542735484&tin=02508201610067®Number=0000000000091423&sum=6000 0 [02:38:20]StoreToDocumentArchive [02:38:20]shift 506 fd 92359 [02:38:20]save to /storage/0506/doc_00092359 [02:38:20]save last doc name /storage/0506/doc_00092359 to /storage/kkm_last_doc_name [02:38:20]save OK [02:38:20]Clear old archive folders... [02:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=303 [02:38:20]tlvbuf is 00FB2900 [02:38:20]SAM_PROTO_ClearQueue [02:38:20]wFMCommunicate request_size=4 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 09 00 00 [02:38:20]Write to MH i2c: E2 08 00 23 03 80 09 00 00 00 00 00 00 98 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [02:38:20]RAPDU: 90 00 [02:38:20]wFMCommunicate OK [02:38:20]SAM_PROTO_ClearQueue done [02:38:20]KKMCreateOFDPacket [02:38:20]OFDProtocolAddRootSTLVToBuf [02:38:20]FM_MakeSignedData [02:38:20]FM_MakeSignedData [02:38:20]SAM_PROTO_SignData [02:38:20]wFMCommunicate request_size=4 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 0D 01 02 [02:38:20]Write to MH i2c: E2 08 00 24 03 80 0D 01 02 00 00 00 00 A0 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [02:38:20]RAPDU: 90 00 [02:38:20]wFMCommunicate OK [02:38:20]wFMCommunicate request_size=255 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 1C F7 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D [02:38:20]Write to MH i2c: E2 02 01 25 03 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 1C F7 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 00 00 E2 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [02:38:20]RAPDU: 90 00 [02:38:20]wFMCommunicate OK [02:38:20]wFMCommunicate request_size=62 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 68 01 00 35 04 06 00 F5 8B BE 58 94 7C [02:38:20]Write to MH i2c: E2 41 00 26 03 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 68 01 00 35 04 06 00 F5 8B BE 58 94 7C 00 00 B2 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [02:38:20]RAPDU: 90 00 [02:38:20]wFMCommunicate OK [02:38:20]wFMCommunicate request_size=4 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 0D 03 02 [02:38:20]Write to MH i2c: E2 08 00 27 03 80 0D 03 02 00 00 00 00 A5 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:20]Read from MH i2c: E2 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 0B 00 [02:38:20]MH_I2C_Read... [02:38:20]Read from MH i2c: E2 0B 00 27 03 00 32 4E 95 73 A0 70 F7 9B 90 00 D0 [02:38:20]RAPDU: 32 4E 95 73 A0 70 F7 9B 90 00 [02:38:20]wFMCommunicate OK [02:38:20]SAM_PROTO_SignData done [02:38:20]FM_MakeSignedData done [02:38:20]CreateOFDProtocolMessage [02:38:20]wFMCommunicate request_size=4 [02:38:20]MH_SAM_APDU [02:38:20]CAPDU: 80 11 00 00 [02:38:20]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [02:38:20]Write i2c OK [02:38:20]MH_I2C_Read... [02:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:21]Read from MH i2c: E2 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 17 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FC [02:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:38:21]wFMCommunicate OK [02:38:21]CreateOFDProtocolMessage done [02:38:21]OFDSenderStorePacket 92359 [02:38:21]StoreOFDPacket docnum=92359 [02:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 43 01 00 00 9E 65 3B 01 BD 0C 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 1C F7 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 68 01 00 35 04 06 00 F5 8B BE 58 94 7C 32 4E 95 73 A0 70 F7 9B [02:38:21]CheckFolder [02:38:21]dirname=/storage/ofd_packets [02:38:21]CheckFolder done [02:38:21]ProducePacketName [02:38:21]name=ofd_packets/00092359 [02:38:21]NVStorageSaveData ofd_packets/00092359 [02:38:21]File name is /storage/ofd_packets/00092359 [02:38:21]Write 353 bytes [02:38:21]NVStorageSaveData done [02:38:21]OFDSenderStorePacket done [02:38:21]KKMCreateOFDPacket done [02:38:21]NVStorageSaveData kkm_last_timestamp [02:38:21]File name is /storage/kkm_last_timestamp [02:38:21]Write 4 bytes [02:38:21]NVStorageSaveData done [02:38:21]ExternCall_PrintAddStr [02:38:21]wPrintStart [02:38:21]Write to MH i2c: 01 00 00 29 03 2C [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 07 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FF 0F 41 [02:38:21]RasterBufferAndPrint [02:38:21]line Счет N : (3)127280 [02:38:21]line ИНН: 02508201610067 [02:38:21]line Контрольно-Кассовый Чек [02:38:21]line ПРОДАЖА [02:38:21]line Товар: 4700000160792 [02:38:21]line Снек Курут классический (круглый) [02:38:21]line 1.000 * 60.00 [02:38:21]line = 60.00 [02:38:21]line НДС 12% НСП 1% [02:38:21]line > о реализуемом товаре [02:38:21]line ИТОГО: 60.00 [02:38:21]line НСП 1% : 0.53 [02:38:21]line НДС 12% : 6.37 [02:38:21]line Наличными: 60.00 [02:38:21]line Безнал.: 0.00 [02:38:21]line Место: АЗС № 5 "Партнер Нефть" [02:38:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:38:21]line СНО: Общий режим [02:38:21]line Чек 10 14.09.2024 02:38 [02:38:21]line Смена: 506 ФФД: 1.0 [02:38:21]line ЗНМ: 03000000022 [02:38:21]line РНМ: 0000000000091423 [02:38:21]line Версия ККМ: 001 [02:38:21]line ФМ: 0000000000874692 [02:38:21]line ФД: 92359 [02:38:21]line ФПД: 269980542735484 [02:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T023820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92359&fm=269980542735484&tin=02508201610067®Number=0000000000091423&sum=6000 [02:38:21]line 0 [02:38:21]OFD Sender: Processing packet 92359 [packets to send 63, broken 62] [02:38:21]ProducePacketName [02:38:21]name=ofd_packets/00092359 [02:38:21]OFD Sender: To server: pG, [02:38:21]CommunicateWithHost lk.salyk.kg:30040 [02:38:21]ConnectInit lk.salyk.kg [02:38:21]written 0, free lines is 4095 [02:38:21]Connected sock=10 [02:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 43 01 00 00 9E 65 3B 01 BD 0C 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 1C F7 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C7 68 01 00 35 04 06 00 F5 8B BE 58 94 7C 32 4E 95 73 A0 70 F7 9B [02:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BF 79 47 00 63 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 34 36 39 32 10 04 04 00 C7 68 01 00 F4 03 04 00 98 9F E4 66 B6 04 01 00 00 8D 5C 53 BC 0A 6A 42 78 [02:38:21]CommunicateWithHost err = 0 [02:38:21]CheckOFDResponse [02:38:21]1017 (14) - 77093643461234 [02:38:21]1041 (16) - 0000000000874692 [02:38:21]1040 (4) - 92359 [02:38:21]1012 (4) - 13.09.2024 20:24 [02:38:21]1206 (1) - 0 [02:38:21]OFD Sender: Remove packet 92359 [02:38:21]ProducePacketName [02:38:21]name=ofd_packets/00092359 [02:38:21]NVStorageDeleteData [02:38:21]Write to MH i2c: 01 00 00 52 03 55 [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 07 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 1E 0D 87 [02:38:21]RasterBufferAndPrint [02:38:21]line [02:38:21]line [02:38:21]line [02:38:21]line [02:38:21]line [02:38:21]written 0, free lines is 3364 [02:38:21]MH_Cut [02:38:21]Write to MH i2c: D1 01 00 59 03 01 2E [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: D1 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: D1 01 00 [02:38:21]MH_I2C_Read... [02:38:21]Read from MH i2c: D1 01 00 59 03 00 2D [02:38:21]Write to MH i2c: 01 00 00 5A 03 5D [02:38:21]Write i2c OK [02:38:21]MH_I2C_Read... [02:38:22]OFD Sender: No OFD packet to send [02:38:22]*** Cut start [02:38:22]*** Purtial cut [02:38:22]*** Stage 1: CUTSNS_PIN = 1 [02:38:24]Read from MH i2c: 01 [02:38:24]MH_I2C_Read... [02:38:24]*** Stop cut motor [02:38:24]*** Cut end [02:38:24]Read from MH i2c: 01 07 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FF 0F 72 [02:38:24]process_action close_receipt done [02:38:24]requested_data is exist [02:38:24]produce_requested_data [02:38:24]requested_item fm.sn is exist - process it [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 11 00 00 [02:38:24]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 17 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [02:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:38:24]wFMCommunicate OK [02:38:24]requested_item fd.num is exist - process it [02:38:24]SAM_PROTO_GetFieldsCounters [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 13 00 00 [02:38:24]Write to MH i2c: E2 08 00 5C 03 80 13 00 00 00 00 00 00 DB [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 62 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 62 00 5C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C7 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [02:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C7 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:24]wFMCommunicate OK [02:38:24]SAM_PROTO_GetFieldsCounters done [02:38:24]requested_item shift.num is exist - process it [02:38:24]requested_item shift.opened is exist - process it [02:38:24]req_shift_opened [02:38:24]FM_GetShiftState [02:38:24]SAM_PROTO_GetShiftState [02:38:24]wFMCommunicate request_size=4 [02:38:24]MH_SAM_APDU [02:38:24]CAPDU: 80 13 01 00 [02:38:24]Write to MH i2c: E2 08 00 5D 03 80 13 01 00 00 00 00 00 DD [02:38:24]Write i2c OK [02:38:24]MH_I2C_Read... [02:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:24]Read from MH i2c: E2 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 0E 00 [02:38:24]MH_I2C_Read... [02:38:24]Read from MH i2c: E2 0E 00 5D 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 77 [02:38:24]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:38:24]wFMCommunicate OK [02:38:24]SAM_PROTO_GetShiftState done [02:38:24]FM_GetShiftState done [02:38:24]req_shift_opened done [02:38:24]requested_item shift.open_date is exist - process it [02:38:24]req_shift_open_date [02:38:24]req_shift_open_date done [02:38:24]produce_requested_data done [02:38:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92359,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:38:24]process_action_free close_receipt [02:38:24]json_value_free [02:38:24]json_value_free done [02:38:24]process_json_proto returns [02:38:24]Send response to host [02:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92359,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:38:24]free response buf [02:38:24]execute_script done [02:38:24]execute_script returns [02:38:24]free content buf [02:38:24]Sock 8.Close socket [02:38:24]Sock 8.Thread stoped [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:38]accept exits with 9 [02:43:38]New connection [02:43:38]New thread 3066658148 created [02:43:38]Thread 3066801508 joined [02:43:38]Waiting for new connection... [02:43:38] Sock 9.Parse request [02:43:38]Sock 9.Check first char [02:43:38]Sock 9.First char is OK [02:43:38]request: POST /json_proto HTTP/1.0 [02:43:38]Method: POST [02:43:38]URL: /json_proto [02:43:38]Method is POST - this is cgi request [02:43:38]url: /json_proto [02:43:38]query_string will be loaded in cgi processing [02:43:38]execute_cgi json_proto POST (null) [02:43:38]execute_cgi path=json_proto method=POST [02:43:38]POST find Content-Length [02:43:38]Host: 172.17.57.71:8080 [02:43:38]Content-Length: 831 [02:43:38]Content-Type: application/json [02:43:38] [02:43:38]POST finish read [02:43:38]Found Content-Length = 831 [02:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127281", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:38]execute_script... [02:43: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 : (3)127281", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:38]POST & json_proto [02:43:38]process_json_proto [02:43:38]json parsed OK: [02:43:38]protocol is kg_v1.0 [02:43:38]action value=close_receipt [02:43:38]process_action close_receipt [02:43:38]cmd_close_receipt [02:43:38]MH_GetDate [02:43:38]Write to MH i2c: F0 00 00 5E 03 50 [02:43:38]Write i2c OK [02:43:38]MH_I2C_Read... [02:43:38]Read from MH i2c: F0 [02:43:38]MH_I2C_Read... [02:43:38]Read from MH i2c: F0 09 00 [02:43:38]MH_I2C_Read... [02:43:38]Read from MH i2c: F0 09 00 5E 03 00 5B F8 E4 66 33 3A A4 66 6D [02:43:38]GetLastDocTimeStamp 1726281500 [02:43:38]current date 1726281819 [02:43:38]FM_GetShiftState [02:43:38]SAM_PROTO_GetShiftState [02:43:38]wFMCommunicate request_size=4 [02:43:38]MH_SAM_APDU [02:43:38]CAPDU: 80 13 01 00 [02:43:38]Write to MH i2c: E2 08 00 5F 03 80 13 01 00 00 00 00 00 DF [02:43:38]Write i2c OK [02:43:38]MH_I2C_Read... [02:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:38]Read from MH i2c: E2 [02:43:38]MH_I2C_Read... [02:43:38]Read from MH i2c: E2 0E 00 [02:43:38]MH_I2C_Read... [02:43:38]Read from MH i2c: E2 0E 00 5F 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 79 [02:43:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:43:38]wFMCommunicate OK [02:43:38]SAM_PROTO_GetShiftState done [02:43:38]FM_GetShiftState done [02:43:38]opened in 1726273389 [02:43:38]opened+sec_in_day 1726359789 [02:43:38]quantity*price = 3700 [02:43:38]sum+1 = 3701 [02:43:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160181 Вода Байтик 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 11 14.09.2024 02:43 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92360 ФПД: 179225982354190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T024339&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92360&fm=179225982354190&tin=02508201610067®Number=0000000000091423&sum=8700 0 [02:43:39]StoreToDocumentArchive [02:43:39]shift 506 fd 92360 [02:43:39]save to /storage/0506/doc_00092360 [02:43:39]save last doc name /storage/0506/doc_00092360 to /storage/kkm_last_doc_name [02:43:39]save OK [02:43:39]Clear old archive folders... [02:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=362 [02:43:39]tlvbuf is 00FC1580 [02:43:39]SAM_PROTO_ClearQueue [02:43:39]wFMCommunicate request_size=4 [02:43:39]MH_SAM_APDU [02:43:39]CAPDU: 80 09 00 00 [02:43:39]Write to MH i2c: E2 08 00 6C 03 80 09 00 00 00 00 00 00 E1 [02:43:39]Write i2c OK [02:43:39]MH_I2C_Read... [02:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:39]Read from MH i2c: E2 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [02:43:39]RAPDU: 90 00 [02:43:39]wFMCommunicate OK [02:43:39]SAM_PROTO_ClearQueue done [02:43:39]KKMCreateOFDPacket [02:43:39]OFDProtocolAddRootSTLVToBuf [02:43:39]FM_MakeSignedData [02:43:39]FM_MakeSignedData [02:43:39]SAM_PROTO_SignData [02:43:39]wFMCommunicate request_size=4 [02:43:39]MH_SAM_APDU [02:43:39]CAPDU: 80 0D 01 02 [02:43:39]Write to MH i2c: E2 08 00 6D 03 80 0D 01 02 00 00 00 00 E9 [02:43:39]Write i2c OK [02:43:39]MH_I2C_Read... [02:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:39]Read from MH i2c: E2 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [02:43:39]RAPDU: 90 00 [02:43:39]wFMCommunicate OK [02:43:39]wFMCommunicate request_size=255 [02:43:39]MH_SAM_APDU [02:43:39]CAPDU: 80 0D 02 02 FA 03 00 6A 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 [02:43:39]Write to MH i2c: E2 02 01 6E 03 80 0D 02 02 FA 00 03 00 6A 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 B3 [02:43:39]Write i2c OK [02:43:39]MH_I2C_Read... [02:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:39]Read from MH i2c: E2 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 [02:43:39]MH_I2C_Read... [02:43:39]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [02:43:39]RAPDU: 90 00 [02:43:39]wFMCommunicate OK [02:43:39]wFMCommunicate request_size=121 [02:43:39]MH_SAM_APDU [02:43:39]CAPDU: 80 0D 02 02 74 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 68 01 00 35 04 06 00 A3 01 4D 03 43 0E [02:43:39]Write to MH i2c: E2 7C 00 6F 03 80 0D 02 02 74 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 68 01 00 35 04 06 00 A3 01 4D 03 43 0E 00 00 42 [02:43:40]Write i2c OK [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 [02:43:40]MH_I2C_Read... [02:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:40]Read from MH i2c: E2 03 00 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [02:43:40]RAPDU: 90 00 [02:43:40]wFMCommunicate OK [02:43:40]wFMCommunicate request_size=4 [02:43:40]MH_SAM_APDU [02:43:40]CAPDU: 80 0D 03 02 [02:43:40]Write to MH i2c: E2 08 00 70 03 80 0D 03 02 00 00 00 00 EE [02:43:40]Write i2c OK [02:43:40]MH_I2C_Read... [02:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:40]Read from MH i2c: E2 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 0B 00 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 0B 00 70 03 00 DD 75 8C 16 48 9F 01 AB 90 00 76 [02:43:40]RAPDU: DD 75 8C 16 48 9F 01 AB 90 00 [02:43:40]wFMCommunicate OK [02:43:40]SAM_PROTO_SignData done [02:43:40]FM_MakeSignedData done [02:43:40]CreateOFDProtocolMessage [02:43:40]wFMCommunicate request_size=4 [02:43:40]MH_SAM_APDU [02:43:40]CAPDU: 80 11 00 00 [02:43:40]Write to MH i2c: E2 08 00 71 03 80 11 00 00 00 00 00 00 EE [02:43:40]Write i2c OK [02:43:40]MH_I2C_Read... [02:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:40]Read from MH i2c: E2 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 17 00 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: E2 17 00 71 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 45 [02:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:43:40]wFMCommunicate OK [02:43:40]CreateOFDProtocolMessage done [02:43:40]OFDSenderStorePacket 92360 [02:43:40]StoreOFDPacket docnum=92360 [02:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 7E 01 00 00 71 8B 76 01 24 90 5A 03 01 00 03 00 6A 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 68 01 00 35 04 06 00 A3 01 4D 03 43 0E DD 75 8C 16 48 9F 01 AB [02:43:40]CheckFolder [02:43:40]dirname=/storage/ofd_packets [02:43:40]CheckFolder done [02:43:40]ProducePacketName [02:43:40]name=ofd_packets/00092360 [02:43:40]NVStorageSaveData ofd_packets/00092360 [02:43:40]File name is /storage/ofd_packets/00092360 [02:43:40]Write 412 bytes [02:43:40]NVStorageSaveData done [02:43:40]OFDSenderStorePacket done [02:43:40]KKMCreateOFDPacket done [02:43:40]NVStorageSaveData kkm_last_timestamp [02:43:40]File name is /storage/kkm_last_timestamp [02:43:40]Write 4 bytes [02:43:40]NVStorageSaveData done [02:43:40]ExternCall_PrintAddStr [02:43:40]wPrintStart [02:43:40]Write to MH i2c: 01 00 00 72 03 75 [02:43:40]Write i2c OK [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: 01 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: 01 07 00 [02:43:40]MH_I2C_Read... [02:43:40]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 FF 0F 8A [02:43:40]RasterBufferAndPrint [02:43:40]line Счет N : (3)127281 [02:43:40]line ИНН: 02508201610067 [02:43:40]line Контрольно-Кассовый Чек [02:43:40]line ПРОДАЖА [02:43:40]line Товар: 42113164 [02:43:40]line Жев Orbit White Spearmint [02:43:40]line 1.000 * 37.00 [02:43:40]line = 37.00 [02:43:40]line НДС 12% НСП 1% [02:43:40]line > о реализуемом товаре [02:43:40]line Товар: 4700000160181 [02:43:40]line Вода Байтик 1л [02:43:40]line 1.000 * 50.00 [02:43:40]line = 50.00 [02:43:40]line НДС 12% НСП 1% [02:43:40]line > о реализуемом товаре [02:43:40]line ИТОГО: 87.00 [02:43:40]line НСП 1% : 0.77 [02:43:40]line НДС 12% : 9.24 [02:43:40]line Наличными: 87.00 [02:43:40]line Безнал.: 0.00 [02:43:40]line Место: АЗС № 5 "Партнер Нефть" [02:43:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:43:40]line СНО: Общий режим [02:43:40]line Чек 11 14.09.2024 02:43 [02:43:40]line Смена: 506 ФФД: 1.0 [02:43:40]line ЗНМ: 03000000022 [02:43:40]line РНМ: 0000000000091423 [02:43:40]line Версия ККМ: 001 [02:43:40]line ФМ: 0000000000874692 [02:43:40]line ФД: 92360 [02:43:40]line ФПД: 179225982354190 [02:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T024339&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92360&fm=179225982354190&tin=02508201610067®Number=0000000000091423&sum=8700 [02:43:40]line 0 [02:43:40]OFD Sender: Processing packet 92360 [packets to send 63, broken 62] [02:43:40]ProducePacketName [02:43:40]name=ofd_packets/00092360 [02:43:40]OFD Sender: To server: pG, [02:43:40]CommunicateWithHost lk.salyk.kg:30040 [02:43:40]ConnectInit lk.salyk.kg [02:43:40]written 0, free lines is 4095 [02:43:40]Connected sock=10 [02:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 7E 01 00 00 71 8B 76 01 24 90 5A 03 01 00 03 00 6A 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C8 68 01 00 35 04 06 00 A3 01 4D 03 43 0E DD 75 8C 16 48 9F 01 AB [02:43:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 08 BC 47 00 93 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 34 36 39 32 10 04 04 00 C8 68 01 00 F4 03 04 00 D8 A0 E4 66 B6 04 01 00 00 66 26 72 5B C1 AE D4 A2 [02:43:40]CommunicateWithHost err = 0 [02:43:40]CheckOFDResponse [02:43:40]1017 (14) - 77093643461234 [02:43:40]1041 (16) - 0000000000874692 [02:43:40]1040 (4) - 92360 [02:43:40]1012 (4) - 13.09.2024 20:30 [02:43:40]1206 (1) - 0 [02:43:40]OFD Sender: Remove packet 92360 [02:43:40]ProducePacketName [02:43:40]name=ofd_packets/00092360 [02:43:40]NVStorageDeleteData [02:43:41]Write to MH i2c: 01 00 00 A0 03 A3 [02:43:41]Write i2c OK [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: 01 [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: 01 07 00 [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 BF 0C 75 [02:43:41]RasterBufferAndPrint [02:43:41]line [02:43:41]line [02:43:41]line [02:43:41]line [02:43:41]line [02:43:41]written 0, free lines is 3272 [02:43:41]MH_Cut [02:43:41]Write to MH i2c: D1 01 00 A7 03 01 7C [02:43:41]Write i2c OK [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: D1 [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: D1 01 00 [02:43:41]MH_I2C_Read... [02:43:41]Read from MH i2c: D1 01 00 A7 03 00 7B [02:43:41]Write to MH i2c: 01 00 00 A8 03 AB [02:43:41]Write i2c OK [02:43:41]MH_I2C_Read... [02:43:41]OFD Sender: No OFD packet to send [02:43:41]*** Cut start [02:43:41]*** Purtial cut [02:43:41]*** Stage 1: CUTSNS_PIN = 1 [02:43:43]Read from MH i2c: 01 [02:43:43]MH_I2C_Read... [02:43:43]*** Stop cut motor [02:43:43]*** Cut end [02:43:43]Read from MH i2c: 01 07 00 [02:43:43]MH_I2C_Read... [02:43:43]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [02:43:43]process_action close_receipt done [02:43:43]requested_data is exist [02:43:43]produce_requested_data [02:43:43]requested_item fm.sn is exist - process it [02:43:43]wFMCommunicate request_size=4 [02:43:43]MH_SAM_APDU [02:43:43]CAPDU: 80 11 00 00 [02:43:43]Write to MH i2c: E2 08 00 A9 03 80 11 00 00 00 00 00 00 26 [02:43:43]Write i2c OK [02:43:43]MH_I2C_Read... [02:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:43]Read from MH i2c: E2 [02:43:43]MH_I2C_Read... [02:43:43]Read from MH i2c: E2 17 00 [02:43:43]MH_I2C_Read... [02:43:43]Read from MH i2c: E2 17 00 A9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [02:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:43:43]wFMCommunicate OK [02:43:43]requested_item fd.num is exist - process it [02:43:43]SAM_PROTO_GetFieldsCounters [02:43:43]wFMCommunicate request_size=4 [02:43:43]MH_SAM_APDU [02:43:43]CAPDU: 80 13 00 00 [02:43:43]Write to MH i2c: E2 08 00 AA 03 80 13 00 00 00 00 00 00 29 [02:43:43]Write i2c OK [02:43:43]MH_I2C_Read... [02:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:43]Read from MH i2c: E2 [02:43:43]MH_I2C_Read... [02:43:43]Read from MH i2c: E2 62 00 [02:43:43]MH_I2C_Read... [02:43:43]Read from MH i2c: E2 62 00 AA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C8 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [02: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C8 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:43:43]wFMCommunicate OK [02:43:43]SAM_PROTO_GetFieldsCounters done [02:43:43]requested_item shift.num is exist - process it [02:43:43]requested_item shift.opened is exist - process it [02:43:43]req_shift_opened [02:43:43]FM_GetShiftState [02:43:43]SAM_PROTO_GetShiftState [02:43:43]wFMCommunicate request_size=4 [02:43:43]MH_SAM_APDU [02:43:43]CAPDU: 80 13 01 00 [02:43:43]Write to MH i2c: E2 08 00 AB 03 80 13 01 00 00 00 00 00 2B [02:43:43]Write i2c OK [02:43:43]MH_I2C_Read... [02:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:44]Read from MH i2c: E2 [02:43:44]MH_I2C_Read... [02:43:44]Read from MH i2c: E2 0E 00 [02:43:44]MH_I2C_Read... [02:43:44]Read from MH i2c: E2 0E 00 AB 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C5 [02:43:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:43:44]wFMCommunicate OK [02:43:44]SAM_PROTO_GetShiftState done [02:43:44]FM_GetShiftState done [02:43:44]req_shift_opened done [02:43:44]requested_item shift.open_date is exist - process it [02:43:44]req_shift_open_date [02:43:44]req_shift_open_date done [02:43:44]produce_requested_data done [02:43:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92360,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:43:44]process_action_free close_receipt [02:43:44]json_value_free [02:43:44]json_value_free done [02:43:44]process_json_proto returns [02:43:44]Send response to host [02:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92360,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:43:44]free response buf [02:43:44]execute_script done [02:43:44]execute_script returns [02:43:44]free content buf [02:43:44]Sock 9.Close socket [02:43:44]Sock 9.Thread stoped [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:29]accept exits with 8 [02:49:29]New connection [02:49:29]New thread 3066801508 created [02:49:29]Thread 3066658148 joined [02:49:29]Waiting for new connection... [02:49:29] Sock 8.Parse request [02:49:29]Sock 8.Check first char [02:49:29]Sock 8.First char is OK [02:49:29]request: POST /json_proto HTTP/1.0 [02:49:29]Method: POST [02:49:29]URL: /json_proto [02:49:29]Method is POST - this is cgi request [02:49:29]url: /json_proto [02:49:29]query_string will be loaded in cgi processing [02:49:29]execute_cgi json_proto POST (null) [02:49:29]execute_cgi path=json_proto method=POST [02:49:29]POST find Content-Length [02:49:29]Host: 172.17.57.71:8080 [02:49:29]Content-Length: 675 [02:49:29]Content-Type: application/json [02:49:29] [02:49:29]POST finish read [02:49:29]Found Content-Length = 675 [02:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127282", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:29]execute_script... [02: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 : (3)127282", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:29]POST & json_proto [02:49:29]process_json_proto [02:49:29]json parsed OK: [02:49:29]protocol is kg_v1.0 [02:49:29]action value=close_receipt [02:49:29]process_action close_receipt [02:49:29]cmd_close_receipt [02:49:29]MH_GetDate [02:49:29]Write to MH i2c: F0 00 00 AC 03 9E [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: F0 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: F0 09 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: F0 09 00 AC 03 00 BA F9 E4 66 33 3A A4 66 1B [02:49:29]GetLastDocTimeStamp 1726281819 [02:49:29]current date 1726282170 [02:49:29]FM_GetShiftState [02:49:29]SAM_PROTO_GetShiftState [02:49:29]wFMCommunicate request_size=4 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 13 01 00 [02:49:29]Write to MH i2c: E2 08 00 AD 03 80 13 01 00 00 00 00 00 2D [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 0E 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 0E 00 AD 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C7 [02:49:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:49:29]wFMCommunicate OK [02:49:29]SAM_PROTO_GetShiftState done [02:49:29]FM_GetShiftState done [02:49:29]opened in 1726273389 [02:49:29]opened+sec_in_day 1726359789 [02:49:29]quantity*price = 10500 [02:49:29]sum+1 = 10501 [02:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 12 14.09.2024 02:49 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92361 ФПД: 240630415939354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T024930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92361&fm=240630415939354&tin=02508201610067®Number=0000000000091423&sum=10500 0 [02:49:30]StoreToDocumentArchive [02:49:30]shift 506 fd 92361 [02:49:30]save to /storage/0506/doc_00092361 [02:49:30]save last doc name /storage/0506/doc_00092361 to /storage/kkm_last_doc_name [02:49:30]save OK [02:49:30]Clear old archive folders... [02:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=287 [02:49:30]tlvbuf is 00FB7CE0 [02:49:30]SAM_PROTO_ClearQueue [02:49:30]wFMCommunicate request_size=4 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 09 00 00 [02:49:30]Write to MH i2c: E2 08 00 BA 03 80 09 00 00 00 00 00 00 2F [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:30]Read from MH i2c: E2 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [02:49:30]RAPDU: 90 00 [02:49:30]wFMCommunicate OK [02:49:30]SAM_PROTO_ClearQueue done [02:49:30]KKMCreateOFDPacket [02:49:30]OFDProtocolAddRootSTLVToBuf [02:49:30]FM_MakeSignedData [02:49:30]FM_MakeSignedData [02:49:30]SAM_PROTO_SignData [02:49:30]wFMCommunicate request_size=4 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 0D 01 02 [02:49:30]Write to MH i2c: E2 08 00 BB 03 80 0D 01 02 00 00 00 00 37 [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:30]Read from MH i2c: E2 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [02:49:30]RAPDU: 90 00 [02:49:30]wFMCommunicate OK [02:49:30]wFMCommunicate request_size=255 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BA F9 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [02:49:30]Write to MH i2c: E2 02 01 BC 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BA F9 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 0F [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:30]Read from MH i2c: E2 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [02:49:30]RAPDU: 90 00 [02:49:30]wFMCommunicate OK [02:49:30]wFMCommunicate request_size=46 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 68 01 00 35 04 06 00 DA DA 22 76 D7 1A [02:49:30]Write to MH i2c: E2 31 00 BD 03 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 68 01 00 35 04 06 00 DA DA 22 76 D7 1A 00 00 34 [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:30]Read from MH i2c: E2 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [02:49:30]RAPDU: 90 00 [02:49:30]wFMCommunicate OK [02:49:30]wFMCommunicate request_size=4 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 0D 03 02 [02:49:30]Write to MH i2c: E2 08 00 BE 03 80 0D 03 02 00 00 00 00 3C [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:30]Read from MH i2c: E2 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 0B 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: E2 0B 00 BE 03 00 36 F2 9C 44 BA 45 8E F9 90 00 CB [02:49:30]RAPDU: 36 F2 9C 44 BA 45 8E F9 90 00 [02:49:30]wFMCommunicate OK [02:49:30]SAM_PROTO_SignData done [02:49:30]FM_MakeSignedData done [02:49:30]CreateOFDProtocolMessage [02:49:30]wFMCommunicate request_size=4 [02:49:30]MH_SAM_APDU [02:49:30]CAPDU: 80 11 00 00 [02:49:30]Write to MH i2c: E2 08 00 BF 03 80 11 00 00 00 00 00 00 3C [02:49:31]Write i2c OK [02:49:31]MH_I2C_Read... [02:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:31]Read from MH i2c: E2 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: E2 17 00 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: E2 17 00 BF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 93 [02:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:49:31]wFMCommunicate OK [02:49:31]CreateOFDProtocolMessage done [02:49:31]OFDSenderStorePacket 92361 [02:49:31]StoreOFDPacket docnum=92361 [02:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 C7 01 2B 01 C8 C9 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BA F9 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 68 01 00 35 04 06 00 DA DA 22 76 D7 1A 36 F2 9C 44 BA 45 8E F9 [02:49:31]CheckFolder [02:49:31]dirname=/storage/ofd_packets [02:49:31]CheckFolder done [02:49:31]ProducePacketName [02:49:31]name=ofd_packets/00092361 [02:49:31]NVStorageSaveData ofd_packets/00092361 [02:49:31]File name is /storage/ofd_packets/00092361 [02:49:31]Write 337 bytes [02:49:31]NVStorageSaveData done [02:49:31]OFDSenderStorePacket done [02:49:31]KKMCreateOFDPacket done [02:49:31]NVStorageSaveData kkm_last_timestamp [02:49:31]File name is /storage/kkm_last_timestamp [02:49:31]Write 4 bytes [02:49:31]NVStorageSaveData done [02:49:31]ExternCall_PrintAddStr [02:49:31]wPrintStart [02:49:31]Write to MH i2c: 01 00 00 C0 03 C3 [02:49:31]Write i2c OK [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 07 00 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 FF 0F D8 [02:49:31]RasterBufferAndPrint [02:49:31]line Счет N : (3)127282 [02:49:31]line ИНН: 02508201610067 [02:49:31]line Контрольно-Кассовый Чек [02:49:31]line ПРОДАЖА [02:49:31]line Товар: 5449000189332 [02:49:31]line Холодный чай Fuse персик 1л [02:49:31]line 1.000 * 105.00 [02:49:31]line = 105.00 [02:49:31]line НДС 12% НСП 1% [02:49:31]line > о реализуемом товаре [02:49:31]line ИТОГО: 105.00 [02:49:31]line НСП 1% : 0.93 [02:49:31]line НДС 12% : 11.15 [02:49:31]line Наличными: 105.00 [02:49:31]line Безнал.: 0.00 [02:49:31]line Место: АЗС № 5 "Партнер Нефть" [02:49:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:49:31]line СНО: Общий режим [02:49:31]line Чек 12 14.09.2024 02:49 [02:49:31]line Смена: 506 ФФД: 1.0 [02:49:31]line ЗНМ: 03000000022 [02:49:31]line РНМ: 0000000000091423 [02:49:31]line Версия ККМ: 001 [02:49:31]line ФМ: 0000000000874692 [02:49:31]line ФД: 92361 [02:49:31]line ФПД: 240630415939354 [02:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T024930&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92361&fm=240630415939354&tin=02508201610067®Number=0000000000091423&sum=10500 [02:49:31]line 0 [02:49:31]OFD Sender: Processing packet 92361 [packets to send 63, broken 62] [02:49:31]ProducePacketName [02:49:31]name=ofd_packets/00092361 [02:49:31]OFD Sender: To server: pG, [02:49:31]CommunicateWithHost lk.salyk.kg:30040 [02:49:31]ConnectInit lk.salyk.kg [02:49:31]written 0, free lines is 4095 [02:49:31]Connected sock=10 [02: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 34 36 39 32 33 01 00 00 C7 01 2B 01 C8 C9 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BA F9 E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 68 01 00 35 04 06 00 DA DA 22 76 D7 1A 36 F2 9C 44 BA 45 8E F9 [02:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A8 0B 47 00 81 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 C9 68 01 00 F4 03 04 00 36 A2 E4 66 B6 04 01 00 00 03 45 73 47 5E 20 61 A2 [02:49:31]CommunicateWithHost err = 0 [02:49:31]CheckOFDResponse [02:49:31]1017 (14) - 77093643461234 [02:49:31]1041 (16) - 0000000000874692 [02:49:31]1040 (4) - 92361 [02:49:31]1012 (4) - 13.09.2024 20:36 [02:49:31]1206 (1) - 0 [02:49:31]OFD Sender: Remove packet 92361 [02:49:31]ProducePacketName [02:49:31]name=ofd_packets/00092361 [02:49:31]NVStorageDeleteData [02:49:31]Write to MH i2c: 01 00 00 E8 03 EB [02:49:31]Write i2c OK [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 07 00 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 23 0D 22 [02:49:31]RasterBufferAndPrint [02:49:31]line [02:49:31]line [02:49:31]line [02:49:31]line [02:49:31]line [02:49:31]written 0, free lines is 3369 [02:49:31]MH_Cut [02:49:31]Write to MH i2c: D1 01 00 EF 03 01 C4 [02:49:31]Write i2c OK [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: D1 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: D1 01 00 [02:49:31]MH_I2C_Read... [02:49:31]Read from MH i2c: D1 01 00 EF 03 00 C3 [02:49:31]Write to MH i2c: 01 00 00 F0 03 F3 [02:49:31]Write i2c OK [02:49:31]MH_I2C_Read... [02:49:32]OFD Sender: No OFD packet to send [02:49:32]*** Cut start [02:49:32]*** Purtial cut [02:49:32]*** Stage 1: CUTSNS_PIN = 1 [02:49:34]Read from MH i2c: 01 [02:49:34]MH_I2C_Read... [02:49:34]*** Stop cut motor [02:49:34]*** Cut end [02:49:34]Read from MH i2c: 01 07 00 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [02:49:34]process_action close_receipt done [02:49:34]requested_data is exist [02:49:34]produce_requested_data [02:49:34]requested_item fm.sn is exist - process it [02:49:34]wFMCommunicate request_size=4 [02:49:34]MH_SAM_APDU [02:49:34]CAPDU: 80 11 00 00 [02:49:34]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [02:49:34]Write i2c OK [02:49:34]MH_I2C_Read... [02:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:34]Read from MH i2c: E2 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 17 00 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [02:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:49:34]wFMCommunicate OK [02:49:34]requested_item fd.num is exist - process it [02:49:34]SAM_PROTO_GetFieldsCounters [02:49:34]wFMCommunicate request_size=4 [02:49:34]MH_SAM_APDU [02:49:34]CAPDU: 80 13 00 00 [02:49:34]Write to MH i2c: E2 08 00 F2 03 80 13 00 00 00 00 00 00 71 [02:49:34]Write i2c OK [02:49:34]MH_I2C_Read... [02:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:34]Read from MH i2c: E2 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 62 00 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 62 00 F2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C9 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [02:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 C9 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:49:34]wFMCommunicate OK [02:49:34]SAM_PROTO_GetFieldsCounters done [02:49:34]requested_item shift.num is exist - process it [02:49:34]requested_item shift.opened is exist - process it [02:49:34]req_shift_opened [02:49:34]FM_GetShiftState [02:49:34]SAM_PROTO_GetShiftState [02:49:34]wFMCommunicate request_size=4 [02:49:34]MH_SAM_APDU [02:49:34]CAPDU: 80 13 01 00 [02:49:34]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [02:49:34]Write i2c OK [02:49:34]MH_I2C_Read... [02:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:34]Read from MH i2c: E2 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 0E 00 [02:49:34]MH_I2C_Read... [02:49:34]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0D [02:49:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:49:34]wFMCommunicate OK [02:49:34]SAM_PROTO_GetShiftState done [02:49:34]FM_GetShiftState done [02:49:34]req_shift_opened done [02:49:34]requested_item shift.open_date is exist - process it [02:49:34]req_shift_open_date [02:49:34]req_shift_open_date done [02:49:34]produce_requested_data done [02:49:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92361,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:49:34]process_action_free close_receipt [02:49:34]json_value_free [02:49:34]json_value_free done [02:49:34]process_json_proto returns [02:49:34]Send response to host [02:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92361,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:49:34]free response buf [02:49:34]execute_script done [02:49:34]execute_script returns [02:49:34]free content buf [02:49:34]Sock 8.Close socket [02:49:34]Sock 8.Thread stoped [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:20]accept exits with 9 [02:51:20]New connection [02:51:20]New thread 3066658148 created [02:51:20]Thread 3066801508 joined [02:51:20]Waiting for new connection... [02:51:20] Sock 9.Parse request [02:51:20]Sock 9.Check first char [02:51:20]Sock 9.First char is OK [02:51:20]request: POST /json_proto HTTP/1.0 [02:51:20]Method: POST [02:51:20]URL: /json_proto [02:51:20]Method is POST - this is cgi request [02:51:20]url: /json_proto [02:51:20]query_string will be loaded in cgi processing [02:51:20]execute_cgi json_proto POST (null) [02:51:20]execute_cgi path=json_proto method=POST [02:51:20]POST find Content-Length [02:51:20]Host: 172.17.57.71:8080 [02:51:20]Content-Length: 640 [02:51:20]Content-Type: application/json [02:51:20] [02:51:20]POST finish read [02:51:20]Found Content-Length = 640 [02:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127283", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:20]execute_script... [02:51: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 : (3)127283", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:20]POST & json_proto [02:51:20]process_json_proto [02:51:20]json parsed OK: [02:51:20]protocol is kg_v1.0 [02:51:20]action value=close_receipt [02:51:20]process_action close_receipt [02:51:20]cmd_close_receipt [02:51:20]MH_GetDate [02:51:20]Write to MH i2c: F0 00 00 F4 03 E6 [02:51:20]Write i2c OK [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 09 00 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 09 00 F4 03 00 29 FA E4 66 33 3A A4 66 D3 [02:51:20]GetLastDocTimeStamp 1726282170 [02:51:20]current date 1726282281 [02:51:20]FM_GetShiftState [02:51:20]SAM_PROTO_GetShiftState [02:51:20]wFMCommunicate request_size=4 [02:51:20]MH_SAM_APDU [02:51:20]CAPDU: 80 13 01 00 [02:51:20]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [02:51:20]Write i2c OK [02:51:20]MH_I2C_Read... [02:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:20]Read from MH i2c: E2 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: E2 0E 00 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0F [02:51:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:51:20]wFMCommunicate OK [02:51:20]SAM_PROTO_GetShiftState done [02:51:20]FM_GetShiftState done [02:51:20]opened in 1726273389 [02:51:20]opened+sec_in_day 1726359789 [02:51:20]quantity*price = 18000 [02:51:20]sum+1 = 18001 [02:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 13 14.09.2024 02:51 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92362 ФПД: 234651410071245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T025121&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92362&fm=234651410071245&tin=02508201610067®Number=0000000000091423&sum=18000 0 [02:51:21]StoreToDocumentArchive [02:51:21]shift 506 fd 92362 [02:51:21]save to /storage/0506/doc_00092362 [02:51:21]save last doc name /storage/0506/doc_00092362 to /storage/kkm_last_doc_name [02:51:21]save OK [02:51:21]Clear old archive folders... [02:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=272 [02:51:21]tlvbuf is 00FBB710 [02:51:21]SAM_PROTO_ClearQueue [02:51:21]wFMCommunicate request_size=4 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 09 00 00 [02:51:21]Write to MH i2c: E2 08 00 02 04 80 09 00 00 00 00 00 00 78 [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [02:51:21]RAPDU: 90 00 [02:51:21]wFMCommunicate OK [02:51:21]SAM_PROTO_ClearQueue done [02:51:21]KKMCreateOFDPacket [02:51:21]OFDProtocolAddRootSTLVToBuf [02:51:21]FM_MakeSignedData [02:51:21]FM_MakeSignedData [02:51:21]SAM_PROTO_SignData [02:51:21]wFMCommunicate request_size=4 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 0D 01 02 [02:51:21]Write to MH i2c: E2 08 00 03 04 80 0D 01 02 00 00 00 00 80 [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [02:51:21]RAPDU: 90 00 [02:51:21]wFMCommunicate OK [02:51:21]wFMCommunicate request_size=255 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 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 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 0D 00 00 00 F4 03 04 00 29 FA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [02:51:21]Write to MH i2c: E2 02 01 04 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 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 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 0D 00 00 00 F4 03 04 00 29 FA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 CC [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [02:51:21]RAPDU: 90 00 [02:51:21]wFMCommunicate OK [02:51:21]wFMCommunicate request_size=31 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 CA 68 01 00 35 04 06 00 D5 6A 09 F1 7E CD [02:51:21]Write to MH i2c: E2 22 00 05 04 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 CA 68 01 00 35 04 06 00 D5 6A 09 F1 7E CD 00 00 69 [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [02:51:21]RAPDU: 90 00 [02:51:21]wFMCommunicate OK [02:51:21]wFMCommunicate request_size=4 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 0D 03 02 [02:51:21]Write to MH i2c: E2 08 00 06 04 80 0D 03 02 00 00 00 00 85 [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 0B 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 0B 00 06 04 00 34 44 BC 70 2F EC 85 5B 90 00 25 [02:51:21]RAPDU: 34 44 BC 70 2F EC 85 5B 90 00 [02:51:21]wFMCommunicate OK [02:51:21]SAM_PROTO_SignData done [02:51:21]FM_MakeSignedData done [02:51:21]CreateOFDProtocolMessage [02:51:21]wFMCommunicate request_size=4 [02:51:21]MH_SAM_APDU [02:51:21]CAPDU: 80 11 00 00 [02:51:21]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 17 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DC [02:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:51:21]wFMCommunicate OK [02:51:21]CreateOFDProtocolMessage done [02:51:21]OFDSenderStorePacket 92362 [02:51:21]StoreOFDPacket docnum=92362 [02:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 48 E4 1C 01 06 C4 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 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 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 0D 00 00 00 F4 03 04 00 29 FA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 68 01 00 35 04 06 00 D5 6A 09 F1 7E CD 34 44 BC 70 2F EC 85 5B [02:51:21]CheckFolder [02:51:21]dirname=/storage/ofd_packets [02:51:21]CheckFolder done [02:51:21]ProducePacketName [02:51:21]name=ofd_packets/00092362 [02:51:21]NVStorageSaveData ofd_packets/00092362 [02:51:21]File name is /storage/ofd_packets/00092362 [02:51:21]Write 322 bytes [02:51:21]NVStorageSaveData done [02:51:21]OFDSenderStorePacket done [02:51:21]KKMCreateOFDPacket done [02:51:21]NVStorageSaveData kkm_last_timestamp [02:51:21]File name is /storage/kkm_last_timestamp [02:51:21]Write 4 bytes [02:51:21]NVStorageSaveData done [02:51:21]ExternCall_PrintAddStr [02:51:21]wPrintStart [02:51:21]Write to MH i2c: 01 00 00 08 04 0C [02:51:21]Write i2c OK [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: 01 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: 01 07 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 FF 0F 21 [02:51:21]RasterBufferAndPrint [02:51:21]line Счет N : (3)127283 [02:51:21]line ИНН: 02508201610067 [02:51:21]line Контрольно-Кассовый Чек [02:51:21]line ПРОДАЖА [02:51:21]line Товар: 4700000480517 [02:51:21]line Пиво Живое 1л ПЭТ [02:51:21]line 1.000 * 180.00 [02:51:21]line = 180.00 [02:51:21]line НДС 12% НСП 1% [02:51:21]line > о реализуемом товаре [02:51:21]line ИТОГО: 180.00 [02:51:21]line НСП 1% : 1.59 [02:51:21]line НДС 12% : 19.11 [02:51:21]line Наличными: 180.00 [02:51:21]line Безнал.: 0.00 [02:51:21]line Место: АЗС № 5 "Партнер Нефть" [02:51:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:51:21]line СНО: Общий режим [02:51:21]line Чек 13 14.09.2024 02:51 [02:51:21]line Смена: 506 ФФД: 1.0 [02:51:21]line ЗНМ: 03000000022 [02:51:22]line РНМ: 0000000000091423 [02:51:22]line Версия ККМ: 001 [02:51:22]line ФМ: 0000000000874692 [02:51:22]line ФД: 92362 [02:51:22]line ФПД: 234651410071245 [02:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T025121&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92362&fm=234651410071245&tin=02508201610067®Number=0000000000091423&sum=18000 [02:51:22]line 0 [02:51:22]OFD Sender: Processing packet 92362 [packets to send 63, broken 62] [02:51:22]ProducePacketName [02:51:22]name=ofd_packets/00092362 [02:51:22]OFD Sender: To server: pG, [02:51:22]CommunicateWithHost lk.salyk.kg:30040 [02:51:22]ConnectInit lk.salyk.kg [02:51:22]written 0, free lines is 4095 [02:51:22]Connected sock=10 [02:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 48 E4 1C 01 06 C4 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 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 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 0D 00 00 00 F4 03 04 00 29 FA E4 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 68 01 00 35 04 06 00 D5 6A 09 F1 7E CD 34 44 BC 70 2F EC 85 5B [02:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 87 05 47 00 E7 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CA 68 01 00 F4 03 04 00 A5 A2 E4 66 B6 04 01 00 00 FC 95 44 40 3A 1B E5 E0 [02:51:22]CommunicateWithHost err = 0 [02:51:22]CheckOFDResponse [02:51:22]1017 (14) - 77093643461234 [02:51:22]1041 (16) - 0000000000874692 [02:51:22]1040 (4) - 92362 [02:51:22]1012 (4) - 13.09.2024 20:37 [02:51:22]1206 (1) - 0 [02:51:22]OFD Sender: Remove packet 92362 [02:51:22]ProducePacketName [02:51:22]name=ofd_packets/00092362 [02:51:22]NVStorageDeleteData [02:51:22]Write to MH i2c: 01 00 00 30 04 34 [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 07 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 18 0D 60 [02:51:22]RasterBufferAndPrint [02:51:22]line [02:51:22]line [02:51:22]line [02:51:22]line [02:51:22]line [02:51:22]written 0, free lines is 3357 [02:51:22]MH_Cut [02:51:22]Write to MH i2c: D1 01 00 37 04 01 0D [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: D1 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: D1 01 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: D1 01 00 37 04 00 0C [02:51:22]Write to MH i2c: 01 00 00 38 04 3C [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:23]OFD Sender: No OFD packet to send [02:51:23]*** Cut start [02:51:23]*** Purtial cut [02:51:23]*** Stage 1: CUTSNS_PIN = 1 [02:51:25]Read from MH i2c: 01 [02:51:25]MH_I2C_Read... [02:51:25]*** Stop cut motor [02:51:25]*** Cut end [02:51:25]Read from MH i2c: 01 07 00 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [02:51:25]process_action close_receipt done [02:51:25]requested_data is exist [02:51:25]produce_requested_data [02:51:25]requested_item fm.sn is exist - process it [02:51:25]wFMCommunicate request_size=4 [02:51:25]MH_SAM_APDU [02:51:25]CAPDU: 80 11 00 00 [02:51:25]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [02:51:25]Write i2c OK [02:51:25]MH_I2C_Read... [02:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:25]Read from MH i2c: E2 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 17 00 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0E [02:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:51:25]wFMCommunicate OK [02:51:25]requested_item fd.num is exist - process it [02:51:25]SAM_PROTO_GetFieldsCounters [02:51:25]wFMCommunicate request_size=4 [02:51:25]MH_SAM_APDU [02:51:25]CAPDU: 80 13 00 00 [02:51:25]Write to MH i2c: E2 08 00 3A 04 80 13 00 00 00 00 00 00 BA [02:51:25]Write i2c OK [02:51:25]MH_I2C_Read... [02:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:25]Read from MH i2c: E2 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 62 00 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 62 00 3A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CA 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [02:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CA 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:51:25]wFMCommunicate OK [02:51:25]SAM_PROTO_GetFieldsCounters done [02:51:25]requested_item shift.num is exist - process it [02:51:25]requested_item shift.opened is exist - process it [02:51:25]req_shift_opened [02:51:25]FM_GetShiftState [02:51:25]SAM_PROTO_GetShiftState [02:51:25]wFMCommunicate request_size=4 [02:51:25]MH_SAM_APDU [02:51:25]CAPDU: 80 13 01 00 [02:51:25]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [02:51:25]Write i2c OK [02:51:25]MH_I2C_Read... [02:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:25]Read from MH i2c: E2 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 0E 00 [02:51:25]MH_I2C_Read... [02:51:25]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 56 [02:51:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [02:51:25]wFMCommunicate OK [02:51:25]SAM_PROTO_GetShiftState done [02:51:25]FM_GetShiftState done [02:51:25]req_shift_opened done [02:51:25]requested_item shift.open_date is exist - process it [02:51:25]req_shift_open_date [02:51:25]req_shift_open_date done [02:51:25]produce_requested_data done [02:51:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92362,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [02:51:25]process_action_free close_receipt [02:51:25]json_value_free [02:51:25]json_value_free done [02:51:25]process_json_proto returns [02:51:25]Send response to host [02:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92362,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [02:51:25]free response buf [02:51:25]execute_script done [02:51:25]execute_script returns [02:51:25]free content buf [02:51:25]Sock 9.Close socket [02:51:25]Sock 9.Thread stoped [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send